MCPcopy Create free account

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

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

↓ 4 callersMethodevent
event passes one event of a response through its check.
relay/requestplugin/socket.go:570
↓ 4 callersFunctionexceedsMaxCharacters
(s string, max int)
setting/console_setting/validation.go:34
↓ 4 callersFunctionexpressionDependencies
(node: ExpressionNode)
web/src/features/pricing/lib/billing-expression/types.ts:202
↓ 4 callersFunctionfetchFromPluginSite
( input: RequestInfo | URL, init?: RequestInit )
web/src/features/task-plugins/lib/plugin-site.ts:40
↓ 4 callersFunctionfetchMarketplaceIndex
( indexUrl: string )
web/src/features/task-plugins/lib/marketplace.ts:481
↓ 4 callersFunctionfinalizeMessage
( message: Message, apiReasoningContent?: string | null )
web/src/features/playground/lib/message/message-streaming-utils.ts:121
↓ 4 callersMethodfinish
finish ends the checks of the attempt: an answer still waiting is checked and written, a stream's outputs end and its events go out. After a stop the
relay/requestplugin/reply.go:1531
↓ 4 callersFunctionfirstImage
(req)
plugins/tasks/alibaba/plugin.js:436
↓ 4 callersFunctionfirstValues
(header http.Header)
relay/channel/providerplugin/adaptor.go:777
↓ 4 callersFunctionflowPathForStages
( row: FlowQuotaDataItem, stages: FlowNodeKind[], ctx: FlowPathContext = EMPTY_FLOW_PATH_CONTEXT )
web/src/features/dashboard/lib/flow.ts:275
↓ 4 callersFunctionformatChannelBalanceSummary
( result: ChannelBalanceResult | null | undefined, usdBalance: number, options: CurrencyFormatOptions =
web/src/features/channels/lib/channel-balance.ts:77
↓ 4 callersFunctionformatCompactNumber
( value: number | null | undefined, locales?: Intl.LocalesArgument )
web/src/lib/format.ts:58
↓ 4 callersFunctionformatDateTimeObject
(date: Date)
web/src/lib/time.ts:152
↓ 4 callersFunctionformatJsonForTextarea
(value: string)
web/src/features/system-settings/models/utils.ts:19
↓ 4 callersFunctionfromRequestPluginConfigDraft
( schema: RequestPluginConfigShape | undefined, draft: RequestPluginConfigDraft, prefix = '' )
web/src/features/task-plugins/lib/request-plugins.ts:324
↓ 4 callersFunctiongeminiCapabilitiesFor
(model string)
relaykit/relayconvert/reasoning/gemini.go:35
↓ 4 callersFunctiongetCachePricingMode
( variables: Iterable<string>, modelName?: string )
web/src/features/pricing/lib/cache-pricing.ts:67
↓ 4 callersFunctiongetCookie
(name: string)
web/src/lib/cookies.ts:29
↓ 4 callersFunctiongetDefaultAdvancedCustomIncomingPath
( converter: AdvancedCustomConverter )
web/src/features/channels/lib/advanced-custom.ts:526
↓ 4 callersFunctiongetDefaultDays
(granularity?: TimeGranularity)
web/src/features/dashboard/lib/filters.ts:138
↓ 4 callersFunctiongetDefaultTimeRange
()
web/src/features/usage-logs/lib/utils.ts:80
↓ 4 callersFunctiongetJSONList
(jsonStr string)
setting/console_setting/validation.go:79
↓ 4 callersFunctiongetLogTypeConfig
(type: number)
web/src/features/usage-logs/lib/utils.ts:66
↓ 4 callersFunctiongetMinTopupAmount
(topupInfo: TopupInfo | null)
web/src/features/wallet/lib/payment.ts:171
↓ 4 callersFunctiongetModelListGroups
(c *gin.Context)
controller/model.go:203
↓ 4 callersFunctiongetModuleAccessForGuard
( queryClient: QueryClient, module: HeaderNavModule )
web/src/lib/nav-modules.ts:184
↓ 4 callersFunctiongetNameRuleConfig
( t: TFunction )
web/src/features/models/constants.ts:42
↓ 4 callersFunctiongetRollingDateRange
( days: number, fromDate: Date = new Date() )
web/src/lib/time.ts:90
↓ 4 callersFunctiongetSuccessRateDotClass
(rate: number)
web/src/features/performance-metrics/lib/format.ts:92
↓ 4 callersFunctiongetSyncPriceKind
( values?: PricingSyncValues )
web/src/features/system-settings/models/upstream-ratio-sync-helpers.ts:71
↓ 4 callersFunctiongetSyncPriceLines
( values: PricingSyncValues, t: (key: string) => string, currency = USD_PRICING_CURRENCY )
web/src/features/system-settings/models/upstream-ratio-sync-helpers.ts:115
↓ 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 callersFunctiongetTieredBillingSummary
( other: LogOtherData | null, modelName?: string )
web/src/features/usage-logs/lib/format.ts:349
↓ 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:482
↓ 4 callersFunctionhailuoH3SubmitContext
(requestBody map[string]any)
plugins/hailuo_responses_test.go:192
↓ 4 callersFunctionhasAnyCacheTokens
( other: LogOtherData | null | undefined )
web/src/features/usage-logs/lib/format.ts:335
↓ 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:1626
↓ 4 callersFunctionimageURLEntries
(body)
plugins/tasks/doubao/plugin.js:649
↓ 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
pluginkit/engine.go:620
↓ 4 callersFunctioninvalidateModelPricing
(client: QueryClient)
web/src/features/model-pricing/api.ts:151
↓ 4 callersFunctionisAdvancedCustomManagementPath
(path: string)
web/src/features/channels/lib/advanced-custom.ts:350
↓ 4 callersFunctionisConverterPathAllowed
( incomingPath: string, converter: AdvancedCustomConverter )
web/src/features/channels/lib/advanced-custom.ts:951
↓ 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 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
()
pluginkit/host.go:140
↓ 4 callersFunctionmediaKind
mediaKind is the kind utils.media and the record give a file.
relay/requestplugin/attachments.go:135
↓ 4 callersMethodmediaSource
()
pluginkit/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
pluginkit/v1.d.ts:40
↓ 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:430
↓ 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 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:208
↓ 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
← previousnext →1,901–2,000 of 15,592, ranked by callers