Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/QuantumNous/new-api
/ functions
Functions
15,409 in github.com/QuantumNous/new-api
⨍
Functions
15,409
◇
Types & classes
2,241
↓ 1 callers
Function
appendVertexAPIVersion
(baseURL, version string)
relay/channel/vertex/url_builder.go:27
↓ 1 callers
Function
apply
(name: string)
web/src/main.tsx:74
↓ 1 callers
Function
applyAttribute
(name: string, value: string | null)
web/src/context/theme-customization-provider.tsx:49
↓ 1 callers
Method
applyBlockMetadata
(block *responsesClaudeStreamBlock, event *dto.ResponsesStreamResponse)
relaykit/relayconvert/internal/oai_responses/to_claude_messages_stream_resp.go:257
↓ 1 callers
Method
applyChannelContext
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 callers
Function
applyChannelStatusFilter
(query *gorm.DB, statusFilter int)
controller/channel.go:169
↓ 1 callers
Function
applyChatCompletionChoice
( message: Message, choice: ChatCompletionChoice )
web/src/features/playground/lib/message/message-streaming-utils.ts:187
↓ 1 callers
Function
applyClaudeHeaders
(c *gin.Context, header *http.Header, info *relaycommon.RelayInfo)
relay/channel/advancedcustom/adaptor.go:546
↓ 1 callers
Function
applyDeepSeekV4OpenAIThinkingSuffix
(info *relaycommon.RelayInfo, request *dto.GeneralOpenAIRequest)
relay/channel/deepseek/adaptor.go:123
↓ 1 callers
Function
applyDeepSeekV4ResponsesThinkingSuffix
(info *relaycommon.RelayInfo, request *dto.OpenAIResponsesRequest)
relay/channel/deepseek/adaptor.go:212
↓ 1 callers
Method
applyFinishReason
(finishReason string)
relaykit/relayconvert/internal/oai_chat/to_oai_responses_stream_resp.go:757
↓ 1 callers
Function
applyFlowHighlights
( nodes: Iterable<DashboardFlowNode>, links: Iterable<DashboardFlowLink>, highlightSets: FlowHighlightSe
web/src/features/dashboard/lib/flow.ts:723
↓ 1 callers
Function
applyFont
(font: string)
web/src/context/font-provider.tsx:44
↓ 1 callers
Function
applyGroupFactor
(value: number, factor: number)
web/src/features/pricing/lib/mock-stats.ts:291
↓ 1 callers
Function
applyHTTP1Force
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 callers
Function
applyHeader
(text)
web/scripts/add-copyright.mjs:152
↓ 1 callers
Function
applyHeaderOverridePlaceholders
(template string, c *gin.Context, apiKey string)
relay/channel/api_request.go:154
↓ 1 callers
Function
applyHeaderPassthrough
(value: boolean)
web/src/features/channels/components/channel-quick-options.tsx:98
↓ 1 callers
Function
applyHeaderPatch
(header http.Header, effect Effect, protected func(name string) bool)
pkg/requestpatch/patch.go:370
↓ 1 callers
Method
applyItemMetadata
(idx int, item *responsesBufferedItem, event *dto.ResponsesStreamResponse)
relaykit/relayconvert/internal/oai_responses/to_oai_chat_stream_resp.go:839
↓ 1 callers
Function
applyMessageEdit
( messages: Message[], messageKey: string, content: string, shouldSubmit: boolean )
web/src/features/playground/lib/message/conversation-message-utils.ts:112
↓ 1 callers
Function
applyMessageStateUpdate
( previousMessages: Message[], updater: MessageStateUpdater )
web/src/features/playground/lib/state/playground-state-utils.ts:43
↓ 1 callers
Function
applyModelControls
(req dto.Request, parsed parsedModelModifiers)
relay/helper/model_modifier.go:179
↓ 1 callers
Function
applyOperation
(root *node, operation Operation, size *int64)
pkg/requestpatch/patch.go:635
↓ 1 callers
Function
applyOperations
(document *node, operations []Operation, size *int64)
pkg/requestpatch/patch.go:623
↓ 1 callers
Function
applyOperations
applyOperations 在同一个 ojson.Doc 上依次应用所有 param override 操作, 返回最终的请求体。 旧实现每个操作都调用一次 sjson.SetBytes,每次都要复制整个请求体, 对大 base64 payload(如 Gemini inlineData.da
relay/common/override.go:868
↓ 1 callers
Function
applyOperationsLegacy
applyOperationsLegacy 原参数覆盖方法。 旧实现把整个 jsonData unmarshal 成 map[string]interface{} 再 marshal 回来, 对包含大 base64 字段(如 Gemini inlineData.data)的请求会放大数倍内存 (i
relay/common/override.go:829
↓ 1 callers
Method
applyResponseMetadata
(response *dto.OpenAIResponsesResponse)
relaykit/relayconvert/internal/oai_responses/to_oai_chat_stream_resp.go:140
↓ 1 callers
Function
applyResponsesTextToGemini
(c context.Context, raw []byte, geminiRequest *dto.GeminiChatRequest, jsonSchema bool)
relaykit/relayconvert/internal/oai_responses/to_gemini_chat_req.go:187
↓ 1 callers
Function
applySelection
(mode: 'append' | 'replace')
web/src/features/channels/components/dialogs/ollama-models-dialog.tsx:198
↓ 1 callers
Function
applyStep
( state: PluginLoginState, step: PluginLoginStep )
web/src/features/channels/lib/plugin-login.ts:110
↓ 1 callers
Function
applyTheme
()
web/src/context/theme-provider.tsx:92
↓ 1 callers
Method
applyToolMetadata
(tool *responsesBufferedTool, event *dto.ResponsesStreamResponse)
relaykit/relayconvert/internal/oai_responses/to_oai_chat_stream_resp.go:899
↓ 1 callers
Function
applyTopNodeLimit
( path: FlowPathNode[], topNodeSets: Map<FlowNodeKind, Set<string>> | undefined, mode: FlowOverflowMode,
web/src/features/dashboard/lib/flow.ts:613
↓ 1 callers
Function
applyUpstreamPathTemplate
(upstreamPath string, info *relaycommon.RelayInfo)
relay/channel/advancedcustom/adaptor.go:516
↓ 1 callers
Function
applyVendorOperation
( operation: VendorOperation )
web/src/features/models/vendor-api.ts:117
↓ 1 callers
Function
arrayBufferToBase64
(buffer: ArrayBuffer)
web/src/features/auth/lib/password-encryption.ts:189
↓ 1 callers
Function
artifactContentUrl
( artifactKey: string, baseUrl = 'https://media.example.com/media-prefix' )
web/src/features/usage-logs/__tests__/artifacts.test.ts:35
↓ 1 callers
Function
artifactData
(ctx)
plugins/tasks/google/plugin.js:301
↓ 1 callers
Function
artifactData
(ctx)
plugins/tasks/vidu/plugin.js:436
↓ 1 callers
Function
artifactData
(ctx)
plugins/tasks/kling/plugin.js:636
↓ 1 callers
Function
artifactIcon
(type: TaskArtifactType)
web/src/features/usage-logs/components/task-artifacts.tsx:75
↓ 1 callers
Function
artifactTypeLabel
(type: TaskArtifactType)
web/src/features/usage-logs/components/task-artifacts.tsx:88
↓ 1 callers
Function
aspectForSize
(size)
plugins/tasks/google/plugin.js:135
↓ 1 callers
Function
aspectRatioFromImageRequest
(request dto.ImageRequest)
relay/channel/minimax/image.go:71
↓ 1 callers
Function
aspectRatioFromSize
(size)
plugins/tasks/jimeng/plugin.js:237
↓ 1 callers
Function
assertConfigRoundTrip
(config: TaskVisualConfig)
web/src/features/pricing/__tests__/task-expr.test.ts:43
↓ 1 callers
Function
assertRequestCloneIsolation
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 callers
Function
assertUserAuthVersion
(t *testing.T, userID int, expected int64)
model/user_authentication_test.go:385
↓ 1 callers
Function
assignLinkDisplayColors
(links: DashboardFlowLink[])
web/src/features/dashboard/lib/flow.ts:475
↓ 1 callers
Function
attachClaudeHostedResponse
(response any, set HostedResponseSet)
relaykit/relayconvert/internal/toolconv/response_artifacts.go:421
↓ 1 callers
Function
attachClaudeRequest
(request any, set Set, options *convmeta.Options)
relaykit/relayconvert/internal/toolconv/encode.go:539
↓ 1 callers
Function
attachGeminiRequest
(request any, set Set, options *convmeta.Options)
relaykit/relayconvert/internal/toolconv/encode.go:674
↓ 1 callers
Function
attachOpenAIChatRequest
(request any, set Set, options *convmeta.Options)
relaykit/relayconvert/internal/toolconv/encode.go:52
↓ 1 callers
Function
attachOpenAIHostedResponse
(response any, set HostedResponseSet)
relaykit/relayconvert/internal/toolconv/response_artifacts.go:277
↓ 1 callers
Function
attachOpenAIResponsesRequest
(request any, set Set, options *convmeta.Options)
relaykit/relayconvert/internal/toolconv/encode.go:423
↓ 1 callers
Function
attachTestBillingRequestInput
(info *relaycommon.RelayInfo, request dto.Request)
controller/channel-test.go:570
↓ 1 callers
Function
attachmentTexts
()
plugins/tasks/request-filter/plugin.js:372
↓ 1 callers
Method
attempt
(attempt int, channel *model.Channel, locked bool)
controller/task_plugin_debug.go:78
↓ 1 callers
Method
attemptFailed
(attempt int, channel *model.Channel, taskErr *dto.TaskError, willRetry bool)
controller/task_plugin_debug.go:112
↓ 1 callers
Method
audioUnchecked
audioUnchecked records, once per session, that the ingress instances do not check its audio input.
relay/requestplugin/socket.go:396
↓ 1 callers
Function
auditAuthMethod
(c *gin.Context)
middleware/audit.go:181
↓ 1 callers
Function
auditAuthMethod
(c *gin.Context)
controller/audit.go:129
↓ 1 callers
Function
authSessionErrorCode
(err error)
service/auth_session.go:463
↓ 1 callers
Function
authenticateDashboardRequest
(c *gin.Context)
middleware/auth.go:194
↓ 1 callers
Function
awsHandler
(c *gin.Context, info *relaycommon.RelayInfo, a *Adaptor)
relay/channel/aws/relay-aws.go:235
↓ 1 callers
Function
awsModelCanCrossRegion
(awsModelId, awsRegionPrefix string)
relay/channel/aws/relay-aws.go:215
↓ 1 callers
Function
awsModelCrossRegion
(awsModelId, awsRegionPrefix string)
relay/channel/aws/relay-aws.go:220
↓ 1 callers
Function
badgedEntries
()
web/src/hooks/__tests__/sidebar-config.test.tsx:260
↓ 1 callers
Function
baiduEmbeddingHandler
(c *gin.Context, info *relaycommon.RelayInfo, resp *http.Response)
relay/channel/baidu/relay-baidu.go:166
↓ 1 callers
Function
baiduHandler
(c *gin.Context, info *relaycommon.RelayInfo, resp *http.Response)
relay/channel/baidu/relay-baidu.go:141
↓ 1 callers
Function
baiduStreamHandler
(c *gin.Context, info *relaycommon.RelayInfo, resp *http.Response)
relay/channel/baidu/relay-baidu.go:117
↓ 1 callers
Function
balanceServer
balanceServer answers the balance request of each key with the reply set for it.
controller/channel_plugin_gaps_test.go:180
↓ 1 callers
Function
balanceURL
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 callers
Function
base64Data
base64Data reports a long string of base64 characters only: encoded media, not text.
relay/requestplugin/task_report.go:268
↓ 1 callers
Function
baseLanguage
"zhCN", "zh-TW" and "zh" are all "zh"; "en-US" is "en".
web/src/features/task-plugins/lib/request-plugin-samples.ts:25
↓ 1 callers
Function
batchDeleteApiKeys
( ids: number[] )
web/src/features/keys/api.ts:95
↓ 1 callers
Function
batchDeleteChannels
( data: BatchDeleteParams )
web/src/features/channels/api.ts:300
↓ 1 callers
Function
batchDeleteRedemptions
( ids: number[] )
web/src/features/redemption-codes/api.ts:102
↓ 1 callers
Function
batchRedirectExistingModel
( user: ReturnType<typeof userEvent.setup>, model: string, suffix: string )
web/src/features/channels/components/__tests__/channel-configuration.test.tsx:2595
↓ 1 callers
Function
batchSetChannelTag
( data: BatchSetTagParams )
web/src/features/channels/api.ts:310
↓ 1 callers
Function
be32
(bytes, offset)
plugins/tasks/xai/plugin.js:591
↓ 1 callers
Function
begin
()
web/src/features/channels/hooks/use-channel-priority-order.ts:96
↓ 1 callers
Function
beginAdminAudit
beginAdminAudit 在管理/root 写操作进入 handler 前包装 ResponseWriter, 以便事后解析响应判断业务是否成功。仅对写方法(POST/PUT/PATCH/DELETE)生效; 只读请求返回 nil,调用方据此跳过事后兜底记录。 该函数由 authHelper
middleware/audit.go:108
↓ 1 callers
Function
beginPasskeyLogin
( rpID?: string, signal?: AbortSignal )
web/src/features/auth/passkey/api.ts:83
↓ 1 callers
Function
beginPasskeyRegistration
( proofToken: string, signal?: AbortSignal )
web/src/features/auth/passkey/api.ts:37
↓ 1 callers
Function
beginPasskeyVerification
( operation: VerificationOperation, signal?: AbortSignal, rpID?: string )
web/src/features/auth/passkey/api.ts:109
↓ 1 callers
Function
billingIntentFromModifiers
(spec kitreasoning.ModelModifierSpec)
setting/reasoning/suffix.go:137
↓ 1 callers
Function
billingString
Match fmt.Sprint for JSON values passed to the backend's has() helper.
web/src/features/pricing/lib/billing-expression/runtime.ts:83
↓ 1 callers
Method
binary
( node: Extract<ExpressionNode, { kind: 'binary' }> )
web/src/features/pricing/lib/billing-expression/runtime.ts:337
↓ 1 callers
Function
bindEmail
( flowToken: string, newCode: string, oldCode = '', signal?: AbortSignal )
web/src/features/auth/api.ts:269
↓ 1 callers
Function
bindWeChat
( code: string, proofToken: string, signal: AbortSignal )
web/src/features/profile/api.ts:199
↓ 1 callers
Function
blockingCategories
(results, listed)
plugins/tasks/content-moderation/plugin.js:235
↓ 1 callers
Function
boolToString
(b bool)
controller/setup.go:139
↓ 1 callers
Function
bound
(value: number)
web/src/features/task-plugins/lib/request-plugins.ts:482
↓ 1 callers
Function
breakdownPriceFieldLabel
( field: BreakdownPriceField, t: (key: string) => string )
web/src/features/pricing/components/dynamic-pricing-breakdown.tsx:114
↓ 1 callers
Function
bucketPoint
(ts int64, value counters)
pkg/perf_metrics/metrics.go:539
↓ 1 callers
Function
bufferedOutputItemAdded
(outputIndex int, itemID string, itemType string)
relaykit/relayconvert/internal/oai_responses/to_oai_chat_resp_test.go:556
↓ 1 callers
Function
buildAnthropicSample
(lang: Lang, ctx: SampleContext)
web/src/features/pricing/components/model-details-api.tsx:161
↓ 1 callers
Function
buildAppRankings
( model: PricingModel, count = 12 )
web/src/features/pricing/lib/mock-stats.ts:431
← previous
next →
5,801–5,900 of 15,409, ranked by callers