MCPcopy Create free account

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

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

↓ 4 callersFunctiongetTaskEnumCombinations
( schema: BillingUsageSchema | null | undefined )
web/src/features/pricing/lib/task-expr.ts:88
↓ 4 callersFunctiongetTaskForArtifactRequest
(c *gin.Context, taskID string)
controller/task.go:273
↓ 4 callersFunctiongetUserGroups
()
web/src/features/playground/api.ts:67
↓ 4 callersFunctiongetUserModels
(group: string)
web/src/features/playground/api.ts:47
↓ 4 callersFunctiongetUserQuotaFromDB
(t *testing.T, id int)
model/quota_reserve_test.go:44
↓ 4 callersFunctiongetUserSessionCache
(sid string)
model/user_session.go:266
↓ 4 callersFunctiongetUserStorageKey
(key: string)
web/src/features/playground/lib/storage/storage.ts:51
↓ 4 callersFunctionh3QueryTask
(body)
plugins/tasks/hailuo/plugin.js:452
↓ 4 callersFunctionhailuoH3SubmitContext
(requestBody map[string]any)
plugins/hailuo_responses_test.go:187
↓ 4 callersFunctionhasAnyCacheTokens
( other: LogOtherData | null | undefined )
web/src/features/usage-logs/lib/format.ts:331
↓ 4 callersFunctionhasKeywords
(config)
plugins/tasks/request-filter/plugin.js:345
↓ 4 callersFunctionhasMessageContent
(message: Message)
web/src/features/playground/lib/message/message-utils.ts:56
↓ 4 callersFunctionimageProtocolTestEndpoint
(t *testing.T)
controller/plugin_protocol_test.go:1622
↓ 4 callersFunctionimageURLEntries
(body)
plugins/tasks/doubao/plugin.js:619
↓ 4 callersFunctioninferResponseRelayFormat
(response any)
relaykit/relayconvert/response_registry.go:813
↓ 4 callersFunctioninterruptCause
interruptCause is what stopped a runtime: the context cause watchRuntimeContext interrupted it with, so errors.Is sees a caller's cancellation through
pkg/jsplugin/engine.go:622
↓ 4 callersFunctioninvalidateModelPricing
(client: QueryClient)
web/src/features/model-pricing/api.ts:151
↓ 4 callersFunctionisAdvancedCustomManagementPath
(path: string)
web/src/features/channels/lib/advanced-custom.ts:345
↓ 4 callersFunctionisConverterPathAllowed
( incomingPath: string, converter: AdvancedCustomConverter )
web/src/features/channels/lib/advanced-custom.ts:943
↓ 4 callersFunctionisEpayWebhookEnabled
()
controller/payment_webhook_availability.go:113
↓ 4 callersFunctionisKling4Task
(ctx)
plugins/tasks/kling/plugin.js:572
↓ 4 callersFunctionisPDFSpace
(char byte)
relay/requestplugin/pdf.go:562
↓ 4 callersFunctionisPlainObject
(value: unknown)
web/src/features/system-settings/hooks/use-settings-form.ts:34
↓ 4 callersFunctionisRedemptionExpired
( expired_time: number, status: number )
web/src/features/redemption-codes/lib/utils.ts:40
↓ 4 callersFunctionisResponsesToolOutputType
(outputType string)
relaykit/relayconvert/internal/oai_responses/to_oai_chat_resp.go:354
↓ 4 callersFunctionisTimingLogType
(type: number)
web/src/features/usage-logs/lib/utils.ts:59
↓ 4 callersFunctionisWaffoPancakeTopUpEnabled
()
controller/payment_webhook_availability.go:76
↓ 4 callersFunctionissueAuthBundle
(session *model.UserSession, rawRefreshToken string, current bool)
service/auth_session.go:403
↓ 4 callersFunctionjsonRequest
jsonRequest reports a client body the gateway parses as JSON: a Content-Type that starts with application/json, as the request parser checks it (appli
relay/requestplugin/relay.go:467
↓ 4 callersFunctionkling4Entry
(reply, taskId)
plugins/tasks/kling/plugin.js:378
↓ 4 callersFunctionkling4Videos
(entry)
plugins/tasks/kling/plugin.js:395
↓ 4 callersMethodlate
late reports whether the deadline has passed, after which every read fails.
relay/requestplugin/pdf.go:100
↓ 4 callersFunctionlinkStableKey
(link: Pick<DashboardFlowLink, 'source' | 'target'>)
web/src/features/dashboard/lib/flow.ts:507
↓ 4 callersFunctionloadConfig
()
web/src/features/playground/lib/storage/storage.ts:298
↓ 4 callersFunctionloadJimengPlugin
(t *testing.T)
plugins/jimeng_responses_test.go:37
↓ 4 callersFunctionloadKeyStatus
( page: number = currentPage, size: number = pageSize, status: number | null = statusFilter )
web/src/features/channels/components/dialogs/multi-key-manage-dialog.tsx:150
↓ 4 callersFunctionlogHelper
(ctx context.Context, level string, msg string)
logger/logger.go:99
↓ 4 callersMethodlogRejectedUsage
(hook string, _ error)
relay/channel/task/jsplugin/adaptor.go:2143
↓ 4 callersFunctionmakeLog
(logOther: LogOtherData = other)
web/src/features/usage-logs/components/__tests__/request-plugin-record.test.tsx:115
↓ 4 callersMethodmark
mark records what the call did with an attachment: ref, or "url:" and the pointer of a file named by URL. A better status stays: checked over truncate
relay/requestplugin/attachments.go:540
↓ 4 callersFunctionmarkAuditLogged
markAuditLogged 标记当前请求已在 handler 内手动记录审计日志, 使鉴权链路中的审计兜底(finishAdminAudit)跳过兜底记录,避免重复。
controller/audit.go:138
↓ 4 callersFunctionmaxBodyBytes
()
relay/channel/providerplugin/adaptor.go:502
↓ 4 callersFunctionmaxConvertedEventBytes
()
pkg/jsplugin/provider.go:1407
↓ 4 callersFunctionmediaKind
mediaKind is the kind utils.media and the record give a file.
relay/requestplugin/attachments.go:135
↓ 4 callersMethodmediaSource
()
pkg/jsplugin/media.go:89
↓ 4 callersMethodmediaText
Stage hooks only: the text of a text, PDF or DOCX file, read once per request, with the hook's clock stopped. maxChars is 1 to 131072 (the default) UT
docs/plugin-api/v1.d.ts:35
↓ 4 callersFunctionmemoryRateLimitHandler
内存限流处理器
middleware/model-rate-limit.go:136
↓ 4 callersFunctionmergeOptions
( options?: CurrencyFormatOptions )
web/src/lib/currency.ts:231
↓ 4 callersFunctionmiddlewareBearerRequest
(router *gin.Engine, path, token string)
middleware/auth_test.go:380
↓ 4 callersFunctionmodelMeta
(modelName string, meta map[string]rankingModelMeta)
service/rankings.go:257
↓ 4 callersFunctionmodelModifierDiagnostic
(code string, key string, message string)
relay/helper/model_modifier.go:170
↓ 4 callersFunctionmustConvertResponsesToGemini
(t *testing.T, req dto.OpenAIResponsesRequest)
relay/channel/gemini/adaptor_responses_test.go:175
↓ 4 callersFunctionmustGeminiRawMessage
(t *testing.T, value any)
relay/channel/gemini/adaptor_responses_test.go:190
↓ 4 callersFunctionnewAccessTokenTestAdaptor
(keyID string)
relay/channel/vertex/service_account_test.go:33
↓ 4 callersFunctionnewAccessTokenTestInfo
(channelID int)
relay/channel/vertex/service_account_test.go:29
↓ 4 callersFunctionnewAwsInvokeContext
(parent context.Context)
relay/channel/aws/relay-aws.go:44
↓ 4 callersFunctionnewAwsTestRelayInfo
()
relay/channel/aws/relay_aws_test.go:91
↓ 4 callersFunctionnewH2PriorKnowledgeClient
(ln net.Listener)
relay/channel/api_request_getbody_test.go:431
↓ 4 callersFunctionnewImageProtocolTestContext
(responseFormat string)
controller/plugin_protocol_test.go:1635
↓ 4 callersFunctionnewPluginProtocolSDKTestServer
( t *testing.T, pinned pluginruntime.PinnedEndpoint, deps pluginProtocolBridgeDeps, )
controller/plugin_protocol_sdk_test.go:268
↓ 4 callersFunctionnewProtectedFetchHTTPClientWithProxy
(resolver ssrfResolver, dialContext func(ctx context.Context, network, address string) (net.Conn, error), getP
service/protected_fetch_client.go:66
↓ 4 callersFunctionnewReplyCheck
(ctx context.Context, plan *Plan, instances []*request_plugin_setting.Instance)
relay/requestplugin/reply.go:204
↓ 4 callersFunctionnewResponsesWSTestRunner
(t *testing.T, token *model.Token)
controller/responses_websocket_test.go:105
↓ 4 callersFunctionnewTaskPluginSubmitDiagnostics
(c *gin.Context)
controller/task_plugin_debug.go:21
↓ 4 callersFunctionnewTestContainerUsage
newTestContainerUsage 在临时目录中构造 cgroup 文件,避免依赖运行环境的真实 cgroup。
common/system_monitor_test.go:14
↓ 4 callersFunctionnewWaffoPancakeClientFromCreds
(merchantID, privateKey string)
service/waffo_pancake.go:86
↓ 4 callersFunctionnewWebSearchCall
newWebSearchCall describes one hosted web-search definition for the host encoder; the caller sets the typed target request.
relaykit/relayconvert/internal/toolconv/encode.go:159
↓ 4 callersFunctionnewXAIPlugin
(t *testing.T)
plugins/xai_responses_test.go:27
↓ 4 callersMethodnext
()
relay/channel/providerplugin/stream.go:30
↓ 4 callersFunctionnormalizeJsonString
(value: string, fallback = '[]')
web/src/features/system-settings/content/utils.ts:29
↓ 4 callersFunctionnormalizeLang
normalizeLang normalizes language code to supported format
i18n/i18n.go:190
↓ 4 callersFunctionnormalizeResolution
(value)
plugins/tasks/alibaba/plugin.js:818
↓ 4 callersFunctionnormalizeRouteMethod
(method string)
pkg/jsplugin/routing.go:783
↓ 4 callersFunctionnormalizedReply
(text string)
router/provider_plugin_relay_test.go:234
↓ 4 callersMethodobject
(number int, body string)
relay/requestplugin/pdf_test.go:30
↓ 4 callersMethodobserve
()
web/src/test-setup.ts:91
↓ 4 callersMethodoutput
(index int)
relay/requestplugin/reply.go:212
↓ 4 callersFunctionparseChannelSettings
( settingStr: string | null | undefined )
web/src/features/channels/lib/channel-utils.ts:280
↓ 4 callersFunctionparseJSONArray
(jsonStr string, formatErrorKey string)
setting/console_setting/validation.go:26
↓ 4 callersFunctionparseJsonArray
(data: unknown)
web/src/features/wallet/hooks/use-topup-info.ts:41
↓ 4 callersFunctionparseJsonToRows
(json: string)
web/src/components/json-editor.tsx:86
↓ 4 callersFunctionparseJsonToRows
(json: string)
web/src/features/channels/components/model-mapping-editor.tsx:141
↓ 4 callersFunctionparseLooseValue
(valueText: string)
web/src/features/channels/components/dialogs/param-override-editor-dialog.tsx:468
↓ 4 callersFunctionparseModelsString
(modelsStr: string)
web/src/features/channels/lib/model-mapping-validation.ts:26
↓ 4 callersFunctionparsePasskeyFinishRequest
(c *gin.Context)
controller/passkey.go:34
↓ 4 callersMethodparseTaskCredential
A key line of a task plugin channel may be a credential its plugin's login stored. Task requests then carry the credential's headers and query instead
relay/channel/task/jsplugin/credential.go:32
↓ 4 callersFunctionparseUserSettings
(settingsJson?: string)
web/src/features/profile/lib/format.ts:28
↓ 4 callersFunctionpdfStream
(dictionary, data string)
relay/requestplugin/pdf_test.go:97
↓ 4 callersFunctionpdfText
pdfText reads the text of a PDF: its first maxPDFPages pages, at most maxChars UTF-16 code units, until deadline. Encrypted files are unreadable.
relay/requestplugin/pdf.go:59
↓ 4 callersFunctionperformVerifiedManageUserRequest
performVerifiedManageUserRequest drives ManageUser as the root operator from a dashboard login session, carrying the step-up proof status or role chan
controller/user_manage_test.go:91
↓ 4 callersFunctionpinnedTaskPluginIdentities
(c *gin.Context, expected string)
service/channel_select.go:215
↓ 4 callersMethodpluginAndAdvancedCustom
pluginAndAdvancedCustom registers a plugin whose converter routes send each incoming path to /vendor plus the path, and returns its channel and an Adv
router/provider_plugin_relay_test.go:1478
↓ 4 callersFunctionpluginTaskStatus
(taskStatus string)
relay/plugin_protocol.go:1056
↓ 4 callersFunctionprocessChannelError
(c *gin.Context, channelError types.ChannelError, err *types.NewAPIError, relayInfo *relaycommon.RelayInfo)
controller/relay.go:362
↓ 4 callersFunctionprocessNegativeIndex
(doc *ojson.Doc, path string)
relay/common/override.go:702
↓ 4 callersFunctionproductionPluginRouteHandlers
(generation *jsplugin.RoutingGeneration, group jsplugin.RouteGroup)
router/plugin-router.go:108
↓ 4 callersFunctionprojectTaskArtifacts
(task *model.Task)
controller/task.go:167
↓ 4 callersMethodputRuntime
Idle runtimes are bounded by the execution limit and survive GC. Start with one instance and grow only when concurrent work actually needs more.
pkg/jsplugin/engine.go:763
↓ 4 callersFunctionqueryWindow
queryWindow covers the current partial hour plus the preceding complete hours, so every reader shares the same hourly buckets.
pkg/perf_metrics/metrics.go:151
↓ 4 callersFunctionquotaResultFromLua
(result int, err error)
model/quota_reserve.go:67
← previousnext →1,901–2,000 of 15,409, ranked by callers