MCPcopy Create free account

hub / github.com/QuantumNous/new-api / functions

Functions15,409 in github.com/QuantumNous/new-api

↓ 1 callersFunctionUsesSubmitEventDelta
UsesSubmitEventDelta reports whether SSE submissions go through parseSubmitEventDelta: the plugin declares submit-sse-delta@1, or exports parseSubmitE
pkg/jsplugin/registry.go:398
↓ 1 callersFunctionValidAuditCategory
(category string)
model/audit_log.go:265
↓ 1 callersFunctionValidTokenFingerprint
(value string)
model/audit_log.go:269
↓ 1 callersMethodValidateBackupCodeAndUpdateUsage
ValidateBackupCodeAndUpdateUsage 验证备用码并更新使用记录
model/twofa.go:306
↓ 1 callersFunctionValidateBasicTaskRequest
(c *gin.Context, info *RelayInfo, action string)
relay/common/relay_utils.go:283
↓ 1 callersFunctionValidateEpaySignOption
ValidateEpaySignOption checks a change to the Epay signing settings against the saved ones. While RSA is active, both keys must parse; under MD5 only
setting/operation_setting/payment_setting.go:63
↓ 1 callersFunctionValidateLogMaxRangeDays
(value string)
setting/operation_setting/log_setting.go:39
↓ 1 callersFunctionValidateQuotaOption
ValidateQuotaOption validates reservation settings before they are persisted.
setting/operation_setting/quota_setting.go:34
↓ 1 callersFunctionValidateServiceURL
ValidateServiceURL checks a utils.fetch URL of a hook that runs without a channel: its host must be one of hosts, each `host` or `host:port`.
pkg/jsplugin/request.go:31
↓ 1 callersFunctionValidateSystemTaskRetentionDays
(value string)
setting/operation_setting/system_task_setting.go:31
↓ 1 callersMethodValidateTOTPAndUpdateUsage
ValidateTOTPAndUpdateUsage 验证TOTP并更新使用记录
model/twofa.go:277
↓ 1 callersMethodValidateURL
ValidateURL 验证URL是否安全
common/ssrf_protection.go:323
↓ 1 callersFunctionValidateUserToken
(key string)
model/token.go:224
↓ 1 callersMethodValue
()
model/audit_other.go:65
↓ 1 callersFunctionVerifyConfiguredWaffoPancakeWebhook
VerifyConfiguredWaffoPancakeWebhook verifies the signature header. The SDK picks the matching test / prod public key from the payload's `mode` field.
service/waffo_pancake.go:167
↓ 1 callersFunctionVerifyLogin
(c *gin.Context)
controller/login_verification.go:17
↓ 1 callersFunctionVerifyLoginCode
(token, code, ip, userAgent string)
service/login_verification.go:130
↓ 1 callersFunctionVersion
()
middleware/cors.go:18
↓ 1 callersFunctionWaffoPayMethods2JsonString
WaffoPayMethods2JsonString 将默认 WaffoPayMethods 序列化为 JSON 字符串(供 InitOptionMap 使用)
setting/payment_waffo.go:61
↓ 1 callersMethodWebAuthnName
()
service/passkey/user.go:29
↓ 1 callersFunctionWithPluginCredentialRefreshLock
WithPluginCredentialRefreshLock runs refresh while no other node or goroutine refreshes a credential of the channel, so a refresh token goes out once
model/channel.go:749
↓ 1 callersMethodWithRuntime
WithRuntime returns a shallow immutable copy carrying the prepared inner handler. Callers use it before publication; published generations must not be
pkg/jsplugin/routing.go:763
↓ 1 callersFunctionWrapAsViolationFeeGrokCSAM
(err *types.NewAPIError)
service/violation_fee.go:41
↓ 1 callersMethodWrite
(data []byte)
middleware/distributor.go:355
↓ 1 callersMethodWrite
(data []byte)
relay/channel/aws/relay_aws_test.go:60
↓ 1 callersMethodWriteContentType
(w http.ResponseWriter)
common/custom-event.go:80
↓ 1 callersFunctionWriteDiskCacheFile
WriteDiskCacheFile 写入数据到磁盘缓存文件 返回文件路径
common/disk_cache.go:61
↓ 1 callersFunctionWriteDiskCacheFileString
WriteDiskCacheFileString 写入字符串到磁盘缓存文件
common/disk_cache.go:83
↓ 1 callersFunctionWssHelper
(c *gin.Context, info *relaycommon.RelayInfo)
relay/websocket.go:18
↓ 1 callersFunctionWssObject
(c *gin.Context, ws *websocket.Conn, object any)
relay/helper/common.go:308
↓ 1 callersFunctionWssString
(c *gin.Context, ws *websocket.Conn, str string)
relay/helper/common.go:299
↓ 1 callersFunctionabs
(value int)
relay/requestplugin/pdf.go:1399
↓ 1 callersFunctionabsoluteRequestURL
absoluteRequestURL reports whether text is an address a hook may send a request to: an absolute http(s) URL with a host, without credentials or fragme
pkg/jsplugin/provider.go:832
↓ 1 callersFunctionacKey
(dict []string)
service/str.go:75
↓ 1 callersFunctionaccessTokenEdit
(description string)
service/access_token_scope.go:48
↓ 1 callersFunctionaccessTokenView
(description string)
service/access_token_scope.go:44
↓ 1 callersMethodacquireCallSlot
(ctx context.Context, admissionTimeout time.Duration)
pkg/jsplugin/engine.go:594
↓ 1 callersFunctionacquireSystemTaskLock
(taskType string, taskID string, lockedBy string, now int64, lockUntil int64)
model/system_task.go:408
↓ 1 callersMethodactivate
()
router/plugin-router.go:520
↓ 1 callersFunctionadd
(root *node, tokens []string, value *node)
pkg/requestpatch/patch.go:747
↓ 1 callersMethodadd
(call *dto.FunctionCall)
relaykit/relayconvert/internal/gemini_chat/to_oai_chat_req.go:310
↓ 1 callersFunctionaddCondition
(group: boolean)
web/src/features/system-settings/models/visual-condition-tree.tsx:146
↓ 1 callersMethodaddCounters
(c counters)
pkg/perf_metrics/types.go:156
↓ 1 callersFunctionaddExternalLinkAttributes
(html: string, baseUrl?: string)
web/src/components/ui/markdown.tsx:723
↓ 1 callersFunctionaddGeminiInputTokenDetail
(details *InputTokenDetails, detail GeminiPromptTokensDetails)
relaykit/dto/billing_usage.go:375
↓ 1 callersFunctionaddLink
( map: Map<string, DashboardFlowLink>, source: FlowPathNode, target: FlowPathNode, metrics: FlowMetric
web/src/features/dashboard/lib/flow.ts:442
↓ 1 callersFunctionaddNode
( map: Map<string, DashboardFlowNode>, pathNode: FlowPathNode, metrics: FlowMetrics, metric: FlowMetri
web/src/features/dashboard/lib/flow.ts:416
↓ 1 callersFunctionaddParticipant
(name: string)
web/src/components/ui/markdown.tsx:479
↓ 1 callersFunctionaddRequiredIssue
( ctx: z.RefinementCtx, path: string, message: string )
web/src/features/channels/lib/channel-form.ts:193
↓ 1 callersFunctionaddRoute
(incomingPath: string | null)
web/src/features/channels/components/dialogs/advanced-custom-editor-dialog.tsx:404
↓ 1 callersFunctionaddRouteForIncomingPath
(incomingPath: string)
web/src/features/channels/components/dialogs/advanced-custom-editor-dialog.tsx:424
↓ 1 callersFunctionaddSensitiveWordInstance
addSensitiveWordInstance appends the instance to the saved instance list. The old check matched words in any letter case.
model/sensitive_word_migration.go:100
↓ 1 callersFunctionaddTimeToDate
( months: number, days: number, hours: number, baseDate: Date = new Date() )
web/src/lib/time.ts:187
↓ 1 callersFunctionadjustForMinimum
( value: number, digits: number, minimumNonZero: number )
web/src/lib/currency.ts:285
↓ 1 callersFunctionadjustPriceAmount
( amount: number, mode: PriceAdjustment, rate: number )
web/src/features/system-settings/models/upstream-price-adjustment.ts:131
↓ 1 callersFunctionadjustUserQuota
( payload: ManageUserQuotaPayload )
web/src/features/users/api.ts:168
↓ 1 callersFunctionadminClearUserBinding
( userId: number, bindingType: string, proofToken: string )
web/src/features/users/api.ts:243
↓ 1 callersFunctionadminResetPlanSubscriptionsTx
(tx *gorm.DB, plan *SubscriptionPlan, now int64, advanceResetTime bool)
model/subscription.go:1090
↓ 1 callersFunctionadminResetUserSubscriptionsByPlanTx
(tx *gorm.DB, userId int, plan *SubscriptionPlan, now int64, advanceResetTime bool)
model/subscription.go:1068
↓ 1 callersFunctionadminUnbindCustomOAuth
( userId: number, providerId: number, proofToken: string )
web/src/features/users/api.ts:259
↓ 1 callersMethodadmitPlugins
( candidate, current *jsplugin.RoutingGeneration, blocked map[*jsplugin.LoadedPlugin]string, )
router/plugin-router.go:189
↓ 1 callersFunctionadvancedCustomConfigUsesRelativeUpstreamPath
( config: AdvancedCustomConfig | null )
web/src/features/channels/lib/advanced-custom.ts:751
↓ 1 callersFunctionadvancedCustomEndpointTypeFromIncomingPath
(incomingPath string)
relaykit/dto/channel_settings.go:357
↓ 1 callersFunctionaffinityFingerprint
(s string)
service/channel_affinity.go:415
↓ 1 callersFunctionaggregateChannelsByTag
( channels: Channel[] )
web/src/features/channels/lib/channel-utils.ts:635
↓ 1 callersFunctionaggregateUptime
(points: UptimeDayPoint[])
web/src/features/pricing/lib/mock-stats.ts:466
↓ 1 callersFunctionaliAnthropicMessagesModelPatterns
()
relay/channel/ali/adaptor.go:41
↓ 1 callersFunctionalphaColor
( color: string, alpha: number )
web/src/features/dashboard/lib/flow.ts:299
↓ 1 callersFunctionanimateDragTransform
( element: HTMLElement, transform: string, transition: ValueAnimationTransition<string> )
web/src/features/channels/hooks/use-channel-priority-drag.ts:52
↓ 1 callersFunctionannotationIndex
(value any)
relaykit/relayconvert/internal/oai_chat/citations.go:69
↓ 1 callersMethodannotationRawDelta
(raw []byte)
relaykit/relayconvert/internal/oai_responses/to_oai_chat_stream_resp.go:224
↓ 1 callersMethodanswerFields
answerFields reads the answer texts of a non-stream body in format. It returns false when the host cannot read the answer.
relay/requestplugin/reply.go:593
↓ 1 callersFunctionapiBase
(baseUrl, project, location)
plugins/tasks/vertex-ai/plugin.js:330
↓ 1 callersFunctionapiVersion2domain
(apiVersion string)
relay/channel/xunfei/relay-xunfei.go:250
↓ 1 callersMethodappendAnnotationDelta
(raw []byte)
relaykit/relayconvert/internal/oai_chat/to_oai_responses_stream_resp.go:452
↓ 1 callersFunctionappendBillingInfo
(relayInfo *relaycommon.RelayInfo, other *model.LogOther)
service/log_info_generate.go:200
↓ 1 callersFunctionappendChannelAffinityTemplateAdminInfo
(c *gin.Context, meta channelAffinityMeta)
service/channel_affinity.go:497
↓ 1 callersFunctionappendClaudeToolResult
(messages []dto.ClaudeMessage, toolResult dto.ClaudeMediaMessage)
relaykit/relayconvert/internal/oai_responses/to_claude_messages_req.go:299
↓ 1 callersFunctionappendClaudeToolUse
(messages []dto.ClaudeMessage, toolUse dto.ClaudeMediaMessage)
relaykit/relayconvert/internal/oai_responses/to_claude_messages_req.go:284
↓ 1 callersFunctionappendCliTemplates
()
web/src/features/system-settings/general/channel-affinity/index.tsx:121
↓ 1 callersMethodappendContent
(content dto.GeminiChatContent, rendered string)
relaykit/relayconvert/internal/gemini_chat/grounding.go:141
↓ 1 callersMethodappendDelta
(block *responsesClaudeStreamBlock, delta string, estimatedInputTokens int)
relaykit/relayconvert/internal/oai_responses/to_claude_messages_stream_resp.go:311
↓ 1 callersFunctionappendFinalRequestFormat
(relayInfo *relaycommon.RelayInfo, other *model.LogOther)
service/log_info_generate.go:279
↓ 1 callersFunctionappendGeminiContentPart
(req *dto.GeminiChatRequest, role string, part dto.GeminiPart)
relaykit/relayconvert/internal/oai_responses/to_gemini_chat_req.go:397
↓ 1 callersMethodappendGroundingChunks
(metadata *dto.GeminiGroundingMetadata)
relaykit/relayconvert/internal/gemini_chat/grounding.go:181
↓ 1 callersFunctionappendHostedHistoryToClaude
(target *dto.ClaudeRequest, set Set)
relaykit/relayconvert/internal/toolconv/encode.go:1117
↓ 1 callersFunctionappendHostedHistoryToOpenAIResponses
(target *dto.OpenAIResponsesRequest, set Set)
relaykit/relayconvert/internal/toolconv/encode.go:874
↓ 1 callersFunctionappendMarkdownExampleFence
( output: string[], block: MarkdownExampleFence )
web/src/components/ai-elements/response-content.ts:68
↓ 1 callersMethodappendOutput
(text string)
relay/plugin_protocol.go:854
↓ 1 callersFunctionappendParamOverrideInfo
(relayInfo *relaycommon.RelayInfo, other *model.LogOther)
service/log_info_generate.go:153
↓ 1 callersMethodappendPartialFunctionCall
(candidateIndex int64, call *dto.FunctionCall)
relaykit/relayconvert/internal/gemini_chat/to_oai_chat_resp.go:499
↓ 1 callersFunctionappendPricingEndpoint
(endpoints []string, endpoint string)
model/pricing.go:210
↓ 1 callersMethodappendReasoningDelta
(delta string)
relaykit/relayconvert/internal/oai_chat/to_oai_responses_stream_resp.go:477
↓ 1 callersFunctionappendRequestConversionChain
(relayInfo *relaycommon.RelayInfo, other *model.LogOther)
service/log_info_generate.go:251
↓ 1 callersFunctionappendStreamStatus
(relayInfo *relaycommon.RelayInfo, other *model.LogOther)
service/log_info_generate.go:170
↓ 1 callersMethodappendTextDelta
(delta string)
relaykit/relayconvert/internal/oai_chat/to_oai_responses_stream_resp.go:412
↓ 1 callersMethodappendToolCallDelta
(choiceIndex int, toolCall dto.ToolCallResponse)
relaykit/relayconvert/internal/oai_chat/to_gemini_chat_resp.go:401
↓ 1 callersMethodappendToolCallDelta
(toolCall dto.ToolCallResponse)
relaykit/relayconvert/internal/oai_chat/to_oai_responses_stream_resp.go:518
↓ 1 callersFunctionappendToolCallToLastAssistant
(messages []dto.Message, toolCall dto.ToolCallRequest)
relaykit/relayconvert/internal/oai_responses/to_oai_chat_req.go:367
↓ 1 callersFunctionappendUserMessagePair
( messages: Message[], content: string )
web/src/features/playground/lib/message/conversation-message-utils.ts:57
← previousnext →5,701–5,800 of 15,409, ranked by callers