MCPcopy Create free account

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

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

↓ 1 callersFunctionappendVertexAPIVersion
(baseURL, version string)
relay/channel/vertex/url_builder.go:27
↓ 1 callersFunctionapply
(name: string)
web/src/main.tsx:74
↓ 1 callersFunctionapplyAttribute
(name: string, value: string | null)
web/src/context/theme-customization-provider.tsx:49
↓ 1 callersMethodapplyBlockMetadata
(block *responsesClaudeStreamBlock, event *dto.ResponsesStreamResponse)
relaykit/relayconvert/internal/oai_responses/to_claude_messages_stream_resp.go:257
↓ 1 callersMethodapplyChannelContext
applyChannelContext gives a hook ctx the plugin config of the executing task plugin channel, {} elsewhere, and on a built-in channel type the plugin s
relay/channel/task/jsplugin/adaptor.go:1587
↓ 1 callersFunctionapplyChannelStatusFilter
(query *gorm.DB, statusFilter int)
controller/channel.go:169
↓ 1 callersFunctionapplyChatCompletionChoice
( message: Message, choice: ChatCompletionChoice )
web/src/features/playground/lib/message/message-streaming-utils.ts:187
↓ 1 callersFunctionapplyClaudeHeaders
(c *gin.Context, header *http.Header, info *relaycommon.RelayInfo)
relay/channel/advancedcustom/adaptor.go:546
↓ 1 callersFunctionapplyDeepSeekV4OpenAIThinkingSuffix
(info *relaycommon.RelayInfo, request *dto.GeneralOpenAIRequest)
relay/channel/deepseek/adaptor.go:123
↓ 1 callersFunctionapplyDeepSeekV4ResponsesThinkingSuffix
(info *relaycommon.RelayInfo, request *dto.OpenAIResponsesRequest)
relay/channel/deepseek/adaptor.go:212
↓ 1 callersMethodapplyFinishReason
(finishReason string)
relaykit/relayconvert/internal/oai_chat/to_oai_responses_stream_resp.go:757
↓ 1 callersFunctionapplyFlowHighlights
( nodes: Iterable<DashboardFlowNode>, links: Iterable<DashboardFlowLink>, highlightSets: FlowHighlightSe
web/src/features/dashboard/lib/flow.ts:723
↓ 1 callersFunctionapplyFont
(font: string)
web/src/context/font-provider.tsx:44
↓ 1 callersFunctionapplyGroupFactor
(value: number, factor: number)
web/src/features/pricing/lib/mock-stats.ts:291
↓ 1 callersFunctionapplyHTTP1Force
applyHTTP1Force disables automatic HTTP/2 on a never-used transport. ForceAttemptHTTP2=false alone is insufficient; a non-nil empty TLSNextProto map p
service/http_transport_sharded.go:101
↓ 1 callersFunctionapplyHeader
(text)
web/scripts/add-copyright.mjs:152
↓ 1 callersFunctionapplyHeaderOverridePlaceholders
(template string, c *gin.Context, apiKey string)
relay/channel/api_request.go:154
↓ 1 callersFunctionapplyHeaderPassthrough
(value: boolean)
web/src/features/channels/components/channel-quick-options.tsx:98
↓ 1 callersFunctionapplyHeaderPatch
(header http.Header, effect Effect, protected func(name string) bool)
pkg/requestpatch/patch.go:370
↓ 1 callersMethodapplyItemMetadata
(idx int, item *responsesBufferedItem, event *dto.ResponsesStreamResponse)
relaykit/relayconvert/internal/oai_responses/to_oai_chat_stream_resp.go:839
↓ 1 callersFunctionapplyMessageEdit
( messages: Message[], messageKey: string, content: string, shouldSubmit: boolean )
web/src/features/playground/lib/message/conversation-message-utils.ts:112
↓ 1 callersFunctionapplyMessageStateUpdate
( previousMessages: Message[], updater: MessageStateUpdater )
web/src/features/playground/lib/state/playground-state-utils.ts:43
↓ 1 callersFunctionapplyModelControls
(req dto.Request, parsed parsedModelModifiers)
relay/helper/model_modifier.go:179
↓ 1 callersFunctionapplyOperation
(root *node, operation Operation, size *int64)
pkg/requestpatch/patch.go:635
↓ 1 callersFunctionapplyOperations
(document *node, operations []Operation, size *int64)
pkg/requestpatch/patch.go:623
↓ 1 callersFunctionapplyOperations
applyOperations 在同一个 ojson.Doc 上依次应用所有 param override 操作, 返回最终的请求体。 旧实现每个操作都调用一次 sjson.SetBytes,每次都要复制整个请求体, 对大 base64 payload(如 Gemini inlineData.da
relay/common/override.go:868
↓ 1 callersFunctionapplyOperationsLegacy
applyOperationsLegacy 原参数覆盖方法。 旧实现把整个 jsonData unmarshal 成 map[string]interface{} 再 marshal 回来, 对包含大 base64 字段(如 Gemini inlineData.data)的请求会放大数倍内存 (i
relay/common/override.go:829
↓ 1 callersMethodapplyResponseMetadata
(response *dto.OpenAIResponsesResponse)
relaykit/relayconvert/internal/oai_responses/to_oai_chat_stream_resp.go:140
↓ 1 callersFunctionapplyResponsesTextToGemini
(c context.Context, raw []byte, geminiRequest *dto.GeminiChatRequest, jsonSchema bool)
relaykit/relayconvert/internal/oai_responses/to_gemini_chat_req.go:187
↓ 1 callersFunctionapplySelection
(mode: 'append' | 'replace')
web/src/features/channels/components/dialogs/ollama-models-dialog.tsx:198
↓ 1 callersFunctionapplyStep
( state: PluginLoginState, step: PluginLoginStep )
web/src/features/channels/lib/plugin-login.ts:110
↓ 1 callersFunctionapplyTheme
()
web/src/context/theme-provider.tsx:92
↓ 1 callersMethodapplyToolMetadata
(tool *responsesBufferedTool, event *dto.ResponsesStreamResponse)
relaykit/relayconvert/internal/oai_responses/to_oai_chat_stream_resp.go:899
↓ 1 callersFunctionapplyTopNodeLimit
( path: FlowPathNode[], topNodeSets: Map<FlowNodeKind, Set<string>> | undefined, mode: FlowOverflowMode,
web/src/features/dashboard/lib/flow.ts:613
↓ 1 callersFunctionapplyUpstreamPathTemplate
(upstreamPath string, info *relaycommon.RelayInfo)
relay/channel/advancedcustom/adaptor.go:516
↓ 1 callersFunctionapplyVendorOperation
( operation: VendorOperation )
web/src/features/models/vendor-api.ts:117
↓ 1 callersFunctionarrayBufferToBase64
(buffer: ArrayBuffer)
web/src/features/auth/lib/password-encryption.ts:189
↓ 1 callersFunctionartifactContentUrl
( artifactKey: string, baseUrl = 'https://media.example.com/media-prefix' )
web/src/features/usage-logs/__tests__/artifacts.test.ts:35
↓ 1 callersFunctionartifactData
(ctx)
plugins/tasks/google/plugin.js:301
↓ 1 callersFunctionartifactData
(ctx)
plugins/tasks/vidu/plugin.js:436
↓ 1 callersFunctionartifactData
(ctx)
plugins/tasks/kling/plugin.js:636
↓ 1 callersFunctionartifactIcon
(type: TaskArtifactType)
web/src/features/usage-logs/components/task-artifacts.tsx:75
↓ 1 callersFunctionartifactTypeLabel
(type: TaskArtifactType)
web/src/features/usage-logs/components/task-artifacts.tsx:88
↓ 1 callersFunctionaspectForSize
(size)
plugins/tasks/google/plugin.js:135
↓ 1 callersFunctionaspectRatioFromImageRequest
(request dto.ImageRequest)
relay/channel/minimax/image.go:71
↓ 1 callersFunctionaspectRatioFromSize
(size)
plugins/tasks/jimeng/plugin.js:237
↓ 1 callersFunctionassertConfigRoundTrip
(config: TaskVisualConfig)
web/src/features/pricing/__tests__/task-expr.test.ts:43
↓ 1 callersFunctionassertRequestCloneIsolation
A channel attempt may mutate its clone without changing the request used by later attempts. Decode the expected request independently to avoid aliases
relay/request_clone_test.go:264
↓ 1 callersFunctionassertUserAuthVersion
(t *testing.T, userID int, expected int64)
model/user_authentication_test.go:385
↓ 1 callersFunctionassignLinkDisplayColors
(links: DashboardFlowLink[])
web/src/features/dashboard/lib/flow.ts:475
↓ 1 callersFunctionattachClaudeHostedResponse
(response any, set HostedResponseSet)
relaykit/relayconvert/internal/toolconv/response_artifacts.go:421
↓ 1 callersFunctionattachClaudeRequest
(request any, set Set, options *convmeta.Options)
relaykit/relayconvert/internal/toolconv/encode.go:539
↓ 1 callersFunctionattachGeminiRequest
(request any, set Set, options *convmeta.Options)
relaykit/relayconvert/internal/toolconv/encode.go:674
↓ 1 callersFunctionattachOpenAIChatRequest
(request any, set Set, options *convmeta.Options)
relaykit/relayconvert/internal/toolconv/encode.go:52
↓ 1 callersFunctionattachOpenAIHostedResponse
(response any, set HostedResponseSet)
relaykit/relayconvert/internal/toolconv/response_artifacts.go:277
↓ 1 callersFunctionattachOpenAIResponsesRequest
(request any, set Set, options *convmeta.Options)
relaykit/relayconvert/internal/toolconv/encode.go:423
↓ 1 callersFunctionattachTestBillingRequestInput
(info *relaycommon.RelayInfo, request dto.Request)
controller/channel-test.go:570
↓ 1 callersFunctionattachmentTexts
()
plugins/tasks/request-filter/plugin.js:372
↓ 1 callersMethodattempt
(attempt int, channel *model.Channel, locked bool)
controller/task_plugin_debug.go:78
↓ 1 callersMethodattemptFailed
(attempt int, channel *model.Channel, taskErr *dto.TaskError, willRetry bool)
controller/task_plugin_debug.go:112
↓ 1 callersMethodaudioUnchecked
audioUnchecked records, once per session, that the ingress instances do not check its audio input.
relay/requestplugin/socket.go:396
↓ 1 callersFunctionauditAuthMethod
(c *gin.Context)
middleware/audit.go:181
↓ 1 callersFunctionauditAuthMethod
(c *gin.Context)
controller/audit.go:129
↓ 1 callersFunctionauthSessionErrorCode
(err error)
service/auth_session.go:463
↓ 1 callersFunctionauthenticateDashboardRequest
(c *gin.Context)
middleware/auth.go:194
↓ 1 callersFunctionawsHandler
(c *gin.Context, info *relaycommon.RelayInfo, a *Adaptor)
relay/channel/aws/relay-aws.go:235
↓ 1 callersFunctionawsModelCanCrossRegion
(awsModelId, awsRegionPrefix string)
relay/channel/aws/relay-aws.go:215
↓ 1 callersFunctionawsModelCrossRegion
(awsModelId, awsRegionPrefix string)
relay/channel/aws/relay-aws.go:220
↓ 1 callersFunctionbadgedEntries
()
web/src/hooks/__tests__/sidebar-config.test.tsx:260
↓ 1 callersFunctionbaiduEmbeddingHandler
(c *gin.Context, info *relaycommon.RelayInfo, resp *http.Response)
relay/channel/baidu/relay-baidu.go:166
↓ 1 callersFunctionbaiduHandler
(c *gin.Context, info *relaycommon.RelayInfo, resp *http.Response)
relay/channel/baidu/relay-baidu.go:141
↓ 1 callersFunctionbaiduStreamHandler
(c *gin.Context, info *relaycommon.RelayInfo, resp *http.Response)
relay/channel/baidu/relay-baidu.go:117
↓ 1 callersFunctionbalanceServer
balanceServer answers the balance request of each key with the reply set for it.
controller/channel_plugin_gaps_test.go:180
↓ 1 callersFunctionbalanceURL
balanceURL is the address of a balance request: its url, or its path on the channel base URL.
relay/channel/providerplugin/management.go:213
↓ 1 callersFunctionbase64Data
base64Data reports a long string of base64 characters only: encoded media, not text.
relay/requestplugin/task_report.go:268
↓ 1 callersFunctionbaseLanguage
"zhCN", "zh-TW" and "zh" are all "zh"; "en-US" is "en".
web/src/features/task-plugins/lib/request-plugin-samples.ts:25
↓ 1 callersFunctionbatchDeleteApiKeys
( ids: number[] )
web/src/features/keys/api.ts:95
↓ 1 callersFunctionbatchDeleteChannels
( data: BatchDeleteParams )
web/src/features/channels/api.ts:300
↓ 1 callersFunctionbatchDeleteRedemptions
( ids: number[] )
web/src/features/redemption-codes/api.ts:102
↓ 1 callersFunctionbatchRedirectExistingModel
( user: ReturnType<typeof userEvent.setup>, model: string, suffix: string )
web/src/features/channels/components/__tests__/channel-configuration.test.tsx:2595
↓ 1 callersFunctionbatchSetChannelTag
( data: BatchSetTagParams )
web/src/features/channels/api.ts:310
↓ 1 callersFunctionbe32
(bytes, offset)
plugins/tasks/xai/plugin.js:591
↓ 1 callersFunctionbegin
()
web/src/features/channels/hooks/use-channel-priority-order.ts:96
↓ 1 callersFunctionbeginAdminAudit
beginAdminAudit 在管理/root 写操作进入 handler 前包装 ResponseWriter, 以便事后解析响应判断业务是否成功。仅对写方法(POST/PUT/PATCH/DELETE)生效; 只读请求返回 nil,调用方据此跳过事后兜底记录。 该函数由 authHelper
middleware/audit.go:108
↓ 1 callersFunctionbeginPasskeyLogin
( rpID?: string, signal?: AbortSignal )
web/src/features/auth/passkey/api.ts:83
↓ 1 callersFunctionbeginPasskeyRegistration
( proofToken: string, signal?: AbortSignal )
web/src/features/auth/passkey/api.ts:37
↓ 1 callersFunctionbeginPasskeyVerification
( operation: VerificationOperation, signal?: AbortSignal, rpID?: string )
web/src/features/auth/passkey/api.ts:109
↓ 1 callersFunctionbillingIntentFromModifiers
(spec kitreasoning.ModelModifierSpec)
setting/reasoning/suffix.go:137
↓ 1 callersFunctionbillingString
Match fmt.Sprint for JSON values passed to the backend's has() helper.
web/src/features/pricing/lib/billing-expression/runtime.ts:83
↓ 1 callersMethodbinary
( node: Extract<ExpressionNode, { kind: 'binary' }> )
web/src/features/pricing/lib/billing-expression/runtime.ts:337
↓ 1 callersFunctionbindEmail
( flowToken: string, newCode: string, oldCode = '', signal?: AbortSignal )
web/src/features/auth/api.ts:269
↓ 1 callersFunctionbindWeChat
( code: string, proofToken: string, signal: AbortSignal )
web/src/features/profile/api.ts:199
↓ 1 callersFunctionblockingCategories
(results, listed)
plugins/tasks/content-moderation/plugin.js:235
↓ 1 callersFunctionboolToString
(b bool)
controller/setup.go:139
↓ 1 callersFunctionbound
(value: number)
web/src/features/task-plugins/lib/request-plugins.ts:482
↓ 1 callersFunctionbreakdownPriceFieldLabel
( field: BreakdownPriceField, t: (key: string) => string )
web/src/features/pricing/components/dynamic-pricing-breakdown.tsx:114
↓ 1 callersFunctionbucketPoint
(ts int64, value counters)
pkg/perf_metrics/metrics.go:539
↓ 1 callersFunctionbufferedOutputItemAdded
(outputIndex int, itemID string, itemType string)
relaykit/relayconvert/internal/oai_responses/to_oai_chat_resp_test.go:556
↓ 1 callersFunctionbuildAnthropicSample
(lang: Lang, ctx: SampleContext)
web/src/features/pricing/components/model-details-api.tsx:161
↓ 1 callersFunctionbuildAppRankings
( model: PricingModel, count = 12 )
web/src/features/pricing/lib/mock-stats.ts:431
← previousnext →5,801–5,900 of 15,409, ranked by callers