MCPcopy Create free account

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

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

↓ 1 callersMethodensureToolForEvent
(event *dto.ResponsesStreamResponse)
relaykit/relayconvert/internal/oai_responses/to_oai_chat_stream_resp.go:347
↓ 1 callersFunctionensureUserQuotaColumns
ensureUserQuotaColumns rejects a legacy 32-bit wallet schema before any migrations run. The 64-bit-only build intentionally does not auto-upgrade an e
model/main.go:284
↓ 1 callersFunctionensureVendorAggregate
(aggregates map[string]*vendorAggregate, meta rankingModelMeta)
service/rankings.go:341
↓ 1 callersFunctionentryChannelIDs
(entries []*entry)
pkg/wsmanager/wsmanager.go:197
↓ 1 callersFunctionentryKindCounts
(entries []*entry)
pkg/wsmanager/wsmanager.go:207
↓ 1 callersFunctionequal
equal compares two values as RFC 6902 test does: objects by member set, numbers by value and strings after unescaping.
pkg/requestpatch/patch.go:803
↓ 1 callersFunctionequalPriority
(a, b *int64)
model/channel_priority.go:242
↓ 1 callersFunctionerrorFor
(path: string)
web/src/features/task-plugins/components/request-plugin-config-form.tsx:67
↓ 1 callersFunctionescapeSjsonLiteralKey
escapeSjsonLiteralKey 把可能被 ojson 误判为路径或通配符的字符转义, 用于把字面 key 安全地传给 ojson.Doc.Set。
relay/common/override.go:842
↓ 1 callersFunctionescapedAttribute
(value)
plugins/tasks/sunoapi/plugin.js:233
↓ 1 callersFunctionevaluateAccessCondition
(body string, cond accessCondition)
oauth/generic.go:454
↓ 1 callersFunctionevaluateAccessPolicy
(body string, policy *accessPolicy)
oauth/generic.go:401
↓ 1 callersFunctionevaluateBillingCondition
( compiled: CompiledBillingExpression, node: ExpressionNode, now: Date )
web/src/features/pricing/lib/billing-expression/runtime.ts:521
↓ 1 callersMethodevaluateNode
(node: ExpressionNode)
web/src/features/pricing/lib/billing-expression/runtime.ts:246
↓ 1 callersMethodevent
event takes one stream event: its text goes to the instances, and the event waits in order until they released it.
relay/requestplugin/reply.go:1011
↓ 1 callersMethodevent
event keeps one WebSocket message the client got, as an event stream event. Only whole events are kept; once one does not fit, written past kept marks
relay/requestplugin/report.go:60
↓ 1 callersFunctioneventStreamFrame
eventStreamFrame is one AWS event stream message: the prelude with its CRC, string headers, the payload and the message CRC. An exception message name
router/provider_plugin_gaps_test.go:566
↓ 1 callersFunctioneventStreamHeaders
eventStreamHeaders reads the string headers of a message and skips the values of the other types.
relay/channel/providerplugin/eventstream.go:89
↓ 1 callersMethodevents
events reads the whole events of the buffer.
relay/requestplugin/reply.go:994
↓ 1 callersFunctionexchangeJwtForAccessToken
exchangeJwtForAccessToken trades a signed service-account JWT for an access token at Google's OAuth endpoint. It goes through the channel proxy only a
relay/channel/vertex/service_account.go:162
↓ 1 callersFunctionexecuteRequestStep
(c context.Context, info convmeta.Meta, spec RequestConverterSpec, request any)
relaykit/relayconvert/request_registry.go:354
↓ 1 callersFunctionexecuteResponseStep
(c context.Context, info convmeta.Meta, spec ResponseConverterSpec, response any)
relaykit/relayconvert/response_registry.go:526
↓ 1 callersFunctionexecuteResponseSteps
(c context.Context, info convmeta.Meta, from types.RelayFormat, target types.RelayFormat, response any, conver
relaykit/relayconvert/response_registry.go:483
↓ 1 callersFunctionexecuteResponseStreamStep
(c context.Context, info convmeta.Meta, spec ResponseConverterSpec, state any, response any)
relaykit/relayconvert/response_registry.go:646
↓ 1 callersFunctionexecuteStatelessStreamResponseSpec
(c context.Context, info convmeta.Meta, from types.RelayFormat, target types.RelayFormat, response any, spec R
relaykit/relayconvert/response_registry.go:542
↓ 1 callersMethodexists
exists reports whether index names inline media or a form file of the call.
relay/requestplugin/attachments.go:571
↓ 1 callersFunctionexpandDotPaths
( values: T | undefined )
web/src/features/system-settings/hooks/use-settings-form.ts:137
↓ 1 callersFunctionexpandRequestConverterSteps
(spec RequestConverterSpec)
relaykit/relayconvert/request_registry.go:321
↓ 1 callersFunctionexpandWildcardPaths
(doc *ojson.Doc, path string)
relay/common/override.go:1720
↓ 1 callersFunctionexpiresAt
()
web/src/features/security/__tests__/enrollment.test.tsx:45
↓ 1 callersFunctionexplicitIntentFromRequest
(req dto.Request)
relay/helper/reasoning_suffix.go:257
↓ 1 callersFunctionexportLogs
( params: GetLogsParams, isAdmin: boolean, options: { signal: AbortSignal; onLog: (log: UsageLog) => voi
web/src/features/usage-logs/api.ts:96
↓ 1 callersFunctionexportedRequestIds
(lines []map[string]any)
controller/log_export_test.go:45
↓ 1 callersFunctionexprUsesExtraVars
(exprStr: string)
web/src/features/pricing/lib/tier-expr.ts:363
↓ 1 callersFunctionextendDeployment
( id: string | number, durationHours: number )
web/src/features/models/api.ts:608
↓ 1 callersFunctionextensionOf
(path)
web/scripts/format-with-protected-headers.mjs:54
↓ 1 callersFunctionextractAllTags
(models: PricingModel[])
web/src/features/pricing/lib/filters.ts:270
↓ 1 callersFunctionextractCachedTokensFromBody
(body []byte)
relay/channel/openai/usage.go:53
↓ 1 callersFunctionextractChats
(status: SystemStatus | null)
web/src/features/chat/hooks/use-chat-presets.ts:60
↓ 1 callersFunctionextractClaudeHostedHistory
(messages []dto.ClaudeMessage)
relaykit/relayconvert/internal/toolconv/decode.go:1036
↓ 1 callersFunctionextractClaudeHostedResponse
(response any)
relaykit/relayconvert/internal/toolconv/response_artifacts.go:110
↓ 1 callersFunctionextractClaudeRequest
(request any)
relaykit/relayconvert/internal/toolconv/decode.go:299
↓ 1 callersFunctionextractErrorPosition
( error: unknown, jsonString: string )
web/src/features/system-settings/utils/json-parser.ts:43
↓ 1 callersFunctionextractErrorPosition
( error: unknown, jsonString: string )
web/src/features/system-settings/integrations/utils.ts:45
↓ 1 callersFunctionextractGeminiHostedResponse
(response any)
relaykit/relayconvert/internal/toolconv/response_artifacts.go:237
↓ 1 callersFunctionextractGeminiRequest
(request any)
relaykit/relayconvert/internal/toolconv/decode.go:355
↓ 1 callersFunctionextractLlamaCachedTokensFromBody
extractLlamaCachedTokensFromBody 从llama.cpp的非标准位置提取cache_n
relay/channel/openai/usage.go:114
↓ 1 callersFunctionextractMappingSourceModels
(modelMapping: string)
web/src/features/channels/lib/model-mapping-validation.ts:53
↓ 1 callersFunctionextractModelNameFromGeminiPath
extractModelNameFromGeminiPath 从 Gemini API URL 路径中提取模型名 输入格式: /v1beta/models/gemini-2.0-flash:generateContent 输出: gemini-2.0-flash
middleware/distributor.go:756
↓ 1 callersFunctionextractMoonshotCachedTokensFromBody
extractMoonshotCachedTokensFromBody 从Moonshot的非标准位置提取cached_tokens Moonshot的流式响应格式: {"choices":[{"usage":{"cached_tokens":111}}]}
relay/channel/openai/usage.go:86
↓ 1 callersFunctionextractOpenAIChatRequest
(request any)
relaykit/relayconvert/internal/toolconv/decode.go:32
↓ 1 callersFunctionextractOpenAIHostedResponse
(response any)
relaykit/relayconvert/internal/toolconv/response_artifacts.go:189
↓ 1 callersFunctionextractOpenAIImageStreamErrorMessage
(data []byte)
relay/channel/openai/relay_image.go:229
↓ 1 callersFunctionextractOpenAIResponsesAdditionalTools
extractOpenAIResponsesAdditionalTools removes the additional_tools input items Codex uses to declare tools and returns their definitions. No target pr
relaykit/relayconvert/internal/toolconv/decode.go:206
↓ 1 callersFunctionextractOpenAIResponsesHostedHistory
(input json.RawMessage)
relaykit/relayconvert/internal/toolconv/decode.go:967
↓ 1 callersFunctionextractOpenAIResponsesRequest
(request any)
relaykit/relayconvert/internal/toolconv/decode.go:128
↓ 1 callersFunctionextractParamOperations
(value any)
service/channel_affinity.go:477
↓ 1 callersFunctionextractServerAddress
(status: SystemStatus | null)
web/src/features/chat/hooks/use-chat-presets.ts:42
↓ 1 callersFunctionextractTemperature
(req dto.Request)
relay/helper/model_modifier.go:126
↓ 1 callersFunctionextractTextFromGeminiParts
(parts []dto.GeminiPart)
relaykit/relayconvert/internal/gemini_chat/to_oai_chat_req.go:370
↓ 1 callersFunctionextractTopP
(req dto.Request)
relay/helper/model_modifier.go:148
↓ 1 callersFunctionextractUsedUsageKeys
(prog *vm.Program)
pkg/billingexpr/compile.go:273
↓ 1 callersFunctionextractUsedVars
(prog *vm.Program)
pkg/billingexpr/compile.go:257
↓ 1 callersFunctionfactoryMeta
(key: string, version: string)
web/src/features/task-plugins/__tests__/marketplace.test.ts:59
↓ 1 callersFunctionfailSystemTask
(task *model.SystemTask, runnerID string, err error)
service/system_task.go:512
↓ 1 callersFunctionfailTasksFromPoll
(ctx context.Context, adaptor TaskPollingAdaptor, tasks []*model.Task, reason string)
service/task_polling.go:917
↓ 1 callersMethodfailed
(stage, reason string, taskErr *dto.TaskError, durable bool)
controller/task_plugin_debug.go:131
↓ 1 callersFunctionfakeStorage
(initial: Record<string, string> = {})
web/src/features/auth/lib/__tests__/oauth-callback-mode.test.ts:28
↓ 1 callersFunctionfakeTimerRuntime
()
web/src/features/auth/lib/oauth-bind-window.test.ts:28
↓ 1 callersFunctionfallbackCallID
(event *dto.ResponsesStreamResponse)
relaykit/relayconvert/internal/oai_responses/to_oai_chat_resp.go:383
↓ 1 callersFunctionfallbackCopyToClipboard
* Fallback copy method using document.execCommand (works in HTTP)
web/src/lib/copy-to-clipboard.ts:22
↓ 1 callersFunctionfallbackToolKey
(itemID string, callID string, outputIndex *int)
relaykit/relayconvert/internal/oai_responses/to_oai_chat_resp.go:370
↓ 1 callersFunctionfetchAdvancedCustomBalance
(channel *model.Channel)
controller/channel-billing.go:541
↓ 1 callersFunctionfetchAdvancedCustomUpstreamModelIDs
(channel *model.Channel, baseURL string)
controller/channel_upstream_update.go:483
↓ 1 callersFunctionfetchCodexChannelModels
( ctx context.Context, channel *model.Channel, baseURL string, client *http.Client, clientVersion string,
service/codex_channel_models.go:49
↓ 1 callersFunctionfetchCurrentLogCleanupTask
()
web/src/features/system-settings/maintenance/history-log-cleanup.tsx:95
↓ 1 callersFunctionfetchGroupData
(ctx context.Context, client *http.Client, groupConfig map[string]any)
controller/uptime_kuma.go:57
↓ 1 callersFunctionfetchJSON
(ctx context.Context, url string, out *upstreamEnvelope[T])
controller/model_sync.go:127
↓ 1 callersFunctionfetchLatestCodexClientVersion
(ctx context.Context, client *http.Client, releaseURL string)
service/codex_models.go:55
↓ 1 callersFunctionfetchLatestSystemRelease
( signal: AbortSignal )
web/src/features/system-update/api.ts:34
↓ 1 callersFunctionfetchLogsByCategory
( config: FetchLogsConfig )
web/src/features/usage-logs/lib/utils.ts:243
↓ 1 callersFunctionfetchProviderPluginUpstreamModelIDs
fetchProviderPluginUpstreamModelIDs lists the models of a channel through its plugin's /v1/models relay route, as on an Advanced Custom channel. A rou
controller/channel_upstream_update.go:523
↓ 1 callersFunctionfetchRequest
fetchRequest reads the utils.fetch argument: {url, method?, headers?, responseType?}, plus body when allowPost is set. wantBytes is a responseType of
pkg/jsplugin/fetch.go:195
↓ 1 callersFunctionfetchTokenKeysBatch
(ids: number[])
web/src/features/keys/api.ts:120
↓ 1 callersFunctionfetchUpstreamRatios
(request: FetchUpstreamRatiosRequest)
web/src/features/system-settings/api.ts:121
↓ 1 callersFunctionfieldValue
(field []byte)
relay/requestplugin/pdf.go:1120
↓ 1 callersMethodfieldsInput
fieldsInput checks submitted fields against the fields step.
service/provider_plugin_login.go:432
↓ 1 callersMethodfileContent
fileContent is the content of a file part, a slice of the raw body.
relay/requestplugin/form.go:223
↓ 1 callersFunctionfileMarkers
fileMarkers appends the $file markers in value, a JSON object or array, by offsets from the start of the root value. An object with a $file member mus
relay/channel/providerplugin/adaptor.go:471
↓ 1 callersFunctionfillTimePoints
(times: string[])
web/src/features/dashboard/lib/charts.ts:285
↓ 1 callersFunctionfilterAndSortModels
( models: PricingModel[], filters: { search: string vendor: string group: string quotaType
web/src/features/pricing/lib/filters.ts:233
↓ 1 callersFunctionfilterByEndpointType
( models: PricingModel[], endpointType: string )
web/src/features/pricing/lib/filters.ts:134
↓ 1 callersFunctionfilterByGroup
( models: PricingModel[], group: string )
web/src/features/pricing/lib/filters.ts:78
↓ 1 callersFunctionfilterBySearch
( models: PricingModel[], query: string )
web/src/features/pricing/lib/filters.ts:48
↓ 1 callersFunctionfilterBySelectedValues
( rowValue: unknown, filterValue: unknown )
web/src/features/system-settings/models/model-ratio-table-columns.tsx:42
↓ 1 callersFunctionfilterByTag
( models: PricingModel[], tag: string )
web/src/features/pricing/lib/filters.ts:288
↓ 1 callersFunctionfilterByVendor
( models: PricingModel[], vendor: string )
web/src/features/pricing/lib/filters.ts:67
↓ 1 callersFunctionfilterNavItems
* Filter navigation items
web/src/hooks/use-sidebar-config.ts:240
↓ 1 callersFunctionfilterPricingByUsableGroups
(pricing []model.Pricing, usableGroup map[string]string)
controller/pricing.go:14
↓ 1 callersFunctionfilterRows
( rows: FlowQuotaDataItem[], options: FlowBuildOptions = {} )
web/src/features/dashboard/lib/flow.ts:332
← previousnext →6,401–6,500 of 15,409, ranked by callers