MCPcopy Create free account

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

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

↓ 1 callersFunctionqueryReqKey
(ctx)
plugins/tasks/jimeng/plugin.js:274
↓ 1 callersMethodqueue
queue adds a result's output: events for a streaming client, chunks or the body for a non-streaming one.
relay/channel/providerplugin/stream.go:276
↓ 1 callersFunctionqueuedHeaders
queuedHeaders are the business headers queued header.patch effects set, as a stage hook reads them. The adaptor builds its own headers after the body,
relay/requestplugin/plan.go:578
↓ 1 callersFunctionquotaConversion
quotaConversion converts raw expression output to quota based on the expression version. This is the central dispatch point for future versions that m
pkg/billingexpr/settle.go:12
↓ 1 callersFunctionquotaSaturationKindLabel
( kind: 'overflow' | 'underflow' | 'nan', t: (key: string) => string )
web/src/features/usage-logs/components/dialogs/details-dialog.tsx:164
↓ 1 callersFunctionquotaText
(value: unknown, t: Translate)
web/src/features/usage-logs/lib/quota-audit-operation.ts:38
↓ 1 callersFunctionquotaUnitsToEditableAmount
(units: number)
web/src/lib/format.ts:143
↓ 1 callersFunctionrandomIntInRange
( rand: () => number, min: number, max: number )
web/src/features/pricing/lib/seed.ts:57
↓ 1 callersFunctionrandomURLToken
()
service/provider_plugin_login.go:126
↓ 1 callersFunctionrangeFromSeed
( rand: () => number, [min, max]: [number, number] )
web/src/features/pricing/lib/mock-stats.ts:284
↓ 1 callersFunctionrank
(name)
plugins/tasks/content-moderation/plugin.js:246
↓ 1 callersFunctionrankingBucketExpr
(bucketSize int64)
model/usedata_rankings.go:51
↓ 1 callersFunctionrankingConfig
(period string)
service/rankings.go:167
↓ 1 callersFunctionrankingRankMap
(totals []model.RankingQuotaTotal)
service/rankings.go:532
↓ 1 callersFunctionrankingTimeRange
(config rankingPeriodConfig, now time.Time)
service/rankings.go:223
↓ 1 callersFunctionrankingTokenMap
(totals []model.RankingQuotaTotal)
service/rankings.go:540
↓ 1 callersFunctionrateLimitCapacity
(count int, durationSeconds int64)
middleware/model-rate-limit.go:222
↓ 1 callersFunctionrateLimitDurationSeconds
(durationMinutes int)
middleware/model-rate-limit.go:211
↓ 1 callersFunctionratioToBasePrice
(ratio: unknown)
web/src/features/system-settings/models/model-pricing-core.ts:210
↓ 1 callersFunctionrawBoolPointer
(raw json.RawMessage)
relaykit/relayconvert/internal/toolconv/decode.go:641
↓ 1 callersFunctionreadAnonymousRequestBody
(body io.Reader, maxBytes int64)
middleware/request_body_limit.go:38
↓ 1 callersFunctionreadBytes
(url, start, length)
plugins/tasks/xai/plugin.js:580
↓ 1 callersMethodreadCgroupCPUQuotaCores
readCgroupCPUQuotaCores 返回 cgroup CPU 配额(核)。ok=false 表示未限制或不可读。
common/container_usage.go:109
↓ 1 callersMethodreadCgroupCPUUsageUsec
()
common/container_usage.go:139
↓ 1 callersFunctionreadColumnSizing
( storageKey: string | undefined, bounds: ColumnSizingBounds )
web/src/components/data-table/hooks/use-data-table.ts:247
↓ 1 callersFunctionreadColumnVisibility
(storageKey: string | undefined)
web/src/components/data-table/hooks/use-data-table.ts:148
↓ 1 callersFunctionreadConditionalTaskPricing
( source: string, schema: BillingUsageSchema )
web/src/features/pricing/lib/billing-expression/task-display.ts:245
↓ 1 callersFunctionreadCookie
(cookieHeader: string, name: string)
web/src/lib/session-hint.ts:40
↓ 1 callersFunctionreadCreds
()
web/src/features/system-settings/integrations/waffo-pancake-settings-section.tsx:260
↓ 1 callersFunctionreadDownload
(download: Download)
web/src/features/redemption-codes/components/__tests__/redemptions-export.test.tsx:63
↓ 1 callersFunctionreadEnvRevision
()
web/src/lib/build-metadata.ts:63
↓ 1 callersFunctionreadFetchModelsResponse
(response *http.Response)
controller/channel_upstream_update.go:347
↓ 1 callersMethodreadFiles
()
relay/requestplugin/attachments.go:308
↓ 1 callersFunctionreadForm
readForm reads the text fields of a multipart/form-data body and the JSON object the stage hooks read for them: field name to value, an array of value
relay/requestplugin/form.go:64
↓ 1 callersMethodreadForm
(resources pdf.Value, name string, depth int)
relay/requestplugin/pdf.go:301
↓ 1 callersMethodreadInPart
readInPart reports whether the call read only part of the text of ref.
relay/requestplugin/attachments.go:576
↓ 1 callersFunctionreadIncomingBillingExprBody
(c *gin.Context)
relay/helper/billing_expr_request.go:93
↓ 1 callersMethodreadLine
readLine reads one line without its line ending, bounded by the stream buffer limit. It returns io.EOF with the last line.
relay/channel/providerplugin/stream.go:395
↓ 1 callersFunctionreadRequestPath
(body: unknown, rawPath: string)
web/src/features/pricing/lib/billing-expression/runtime.ts:35
↓ 1 callersFunctionreadRunes
(dict []string)
service/str.go:120
↓ 1 callersFunctionreadStaticValue
( source: string, node: SyntaxNode, context: StaticContext, depth = 0 )
web/src/features/task-plugins/lib/plugin-meta-preview.ts:269
↓ 1 callersMethodreadStep
readStep turns the response to one request of a chain into its outcome. A success response to a nativeResponse request goes to the route's handler as
relay/channel/providerplugin/chain.go:204
↓ 1 callersFunctionreadStoredMessagesValue
()
web/src/features/playground/lib/storage/storage.ts:69
↓ 1 callersFunctionreadStoredState
(key?: string)
web/src/components/floating-window.tsx:109
↓ 1 callersFunctionreadSyncTargetValue
(doc *ojson.Doc, context map[string]any, target syncTarget)
relay/common/override.go:1545
↓ 1 callersFunctionreadTaskPricingTiers
Display explicit conditions for a fallback only when its complement is unique. * Unlike the editor matrix, unrelated schema fields do not expand the
web/src/features/pricing/lib/task-matrix-display.ts:87
↓ 1 callersFunctionreadTaskTierChain
( node: ExpressionNode, schema: BillingUsageSchema, includeBoolean: boolean )
web/src/features/pricing/lib/billing-expression/display.ts:432
↓ 1 callersFunctionreadTelegramNumber
(value: unknown)
web/src/features/auth/lib/telegram-login.ts:34
↓ 1 callersFunctionreadTestResponseBody
(body io.ReadCloser, isStream bool)
controller/channel-test.go:642
↓ 1 callersFunctionreadViewMode
( storageKey: string | undefined, fallback: DataTableViewMode )
web/src/components/data-table/hooks/use-data-table-view-mode.ts:36
↓ 1 callersFunctionreadVisualCondition
(node: ExpressionNode)
web/src/features/pricing/lib/billing-expression/visual.ts:94
↓ 1 callersFunctionreadVisualPricing
(node: ExpressionNode)
web/src/features/pricing/lib/billing-expression/visual.ts:143
↓ 1 callersFunctionreadZstdBody
(t *testing.T, body []byte)
middleware/gzip_test.go:25
↓ 1 callersMethodreaders
()
relay/channel/volcengine/protocols.go:422
↓ 1 callersFunctionreadmeCalls
()
web/src/features/task-plugins/__tests__/marketplace-install-dialog.test.tsx:930
↓ 1 callersMethodready
ready reports an event whose text the instances read, or, for an event without text, whose earlier text they all released.
relay/requestplugin/reply.go:1349
↓ 1 callersFunctionrealtimeItemFields
realtimeItemFields are the text parts of a Realtime message item at prefix. known reads only parts whose output the answer already has, found by item
relay/requestplugin/reply.go:1316
↓ 1 callersFunctionrealtimeView
realtimeView is the Responses-shaped body of a client event's text: members maps each view member to its path in the event. The audio of input items s
relay/requestplugin/socket.go:306
↓ 1 callersFunctionrealtimeWriteBack
realtimeWriteBack writes the patched view members back to the client event, with the audio the view left out.
relay/requestplugin/socket.go:342
↓ 1 callersFunctionreasoningEffortFromBudgetValue
(value ojson.Result)
relay/common/override.go:330
↓ 1 callersFunctionreasoningPluginContext
reasoningPluginContext installs a request plugin that sets effort high and returns a request context holding the request's plan.
relay/helper/reasoning_suffix_test.go:619
↓ 1 callersMethodrebuild
rebuild writes the form body again with the text field values of view, a view check accepted: the parts whose value did not change, files included, st
relay/requestplugin/form.go:188
↓ 1 callersFunctionrebuildGeminiToolGroups
(definitions []Definition)
relaykit/relayconvert/internal/toolconv/encode.go:836
↓ 1 callersFunctionrebuildTaskAliasView
()
model/task_model_alias.go:91
↓ 1 callersMethodreceive
(connection net.Conn)
controller/security_account_test.go:286
↓ 1 callersFunctionrecentRange
()
web/src/features/usage-logs/components/__tests__/export-dialog.test.tsx:122
↓ 1 callersMethodreclaimSlot
reclaimSlot takes an execution slot back for the call's JavaScript, waiting no longer than the caller and fetchTimeout allow.
pkg/jsplugin/fetch.go:310
↓ 1 callersFunctionrecordBatchResult
(result: TestResult)
web/src/features/channels/components/dialogs/channel-test-dialog.tsx:680
↓ 1 callersFunctionrecordBuiltinBalance
recordBuiltinBalance stores the detail of a built-in balance query, whose function already wrote the USD balance: the amount in USD, or the failure on
controller/channel_balance.go:49
↓ 1 callersFunctionrecordPollFailureForTasks
(ctx context.Context, adaptor TaskPollingAdaptor, tasks []*model.Task, class string, statusCode int, detail st
service/task_polling.go:885
↓ 1 callersFunctionrecordRedis
(key bucketKey, sample Sample)
pkg/perf_metrics/metrics.go:570
↓ 1 callersFunctionrecordResponsesWSPluginError
recordResponsesWSPluginError writes the error log of a create a request plugin stopped; it shows what the plugins did.
relay/responses_websocket.go:760
↓ 1 callersFunctionredactAttachments
(rules, finalCheck, effects)
plugins/tasks/request-redact/plugin.js:411
↓ 1 callersFunctionredeemTopupCode
( request: RedemptionRequest )
web/src/features/wallet/api.ts:66
↓ 1 callersFunctionredemption
(id: number, quota = 500001)
web/src/features/redemption-codes/components/__tests__/redemptions-mutate-drawer.test.tsx:71
↓ 1 callersFunctionredirectToSignIn
()
web/src/lib/http-client.ts:77
↓ 1 callersFunctionredisCounters
(values map[string]string)
pkg/perf_metrics/flush.go:79
↓ 1 callersFunctionredisEmailVerificationRateLimiter
(c *gin.Context)
middleware/email-verification-rate-limit.go:17
↓ 1 callersFunctionredisRateLimiter
(c *gin.Context, maxRequestNum int, duration int64, mark string)
middleware/rate-limit.go:110
↓ 1 callersFunctionredisReplyInteger
(value any)
middleware/rate-limit.go:53
↓ 1 callersFunctionreduceAspectRatio
(width, height int)
relay/channel/minimax/image.go:130
↓ 1 callersFunctionreduceRatio
(w, h int)
relay/channel/replicate/adaptor.go:365
↓ 1 callersFunctionrefreshBillingTime
()
web/src/features/pricing/hooks/use-billing-time.ts:28
↓ 1 callersFunctionrefreshCodexCredential
( channelId: number )
web/src/features/channels/api.ts:431
↓ 1 callersFunctionrefreshCodexOAuthToken
( ctx context.Context, client *http.Client, tokenURL string, clientID string, refreshToken string, )
service/codex_oauth.go:41
↓ 1 callersFunctionrefreshPluginCredentialLine
(channelID, keyIndex int, used string)
service/provider_plugin.go:182
↓ 1 callersFunctionrefreshRequestPolicySnapshot
()
model/request_policy.go:193
↓ 1 callersFunctionrefreshTieredBillingGroup
(relayInfo *relaycommon.RelayInfo)
service/tiered_settle.go:178
↓ 1 callersFunctionrefreshedPluginCredential
refreshedPluginCredential is stored after a refresh: its result replaces the credential's data, headers, query and expiry; an omitted account id or la
service/provider_plugin.go:409
↓ 1 callersMethodrefund
(stage string)
controller/task_plugin_debug.go:51
↓ 1 callersFunctionrefundWithRetry
refundWithRetry 尝试多次执行退款操作以提高成功率,只能用于基于事务的退款函数!!!!!! try to refund with retries, only for refund functions based on transactions!!!
service/funding_source.go:133
↓ 1 callersFunctionrefuseCallback
(body)
plugins/tasks/hailuo/plugin.js:549
↓ 1 callersFunctionregenerate2FABackupCodes
( proofToken: string, signal?: AbortSignal )
web/src/lib/api.ts:117
↓ 1 callersFunctionregexReplaceStringValue
(doc *ojson.Doc, path, pattern, replacement string)
relay/common/override.go:1910
↓ 1 callersFunctionregion
(ctx, model)
plugins/tasks/vertex-ai/plugin.js:320
↓ 1 callersFunctionregisterAuthzRoutes
registerAuthzRoutes mounts the authorization API under its own /authz namespace. GET /authz/catalog returns the permission schema (resources, actions,
router/authz-router.go:13
↓ 1 callersFunctionregisterBuiltinRequestConverter
(spec RequestConverterSpec)
relaykit/relayconvert/request_registry.go:91
↓ 1 callersFunctionregisterBuiltinResponseConverter
(spec ResponseConverterSpec)
relaykit/relayconvert/response_registry.go:139
↓ 1 callersFunctionregisterBuiltinTextConverter
(spec TextConverterSpec)
relaykit/relayconvert/text_converter_registry.go:272
↓ 1 callersMethodregisterChannelClose
(channelID int)
relay/responses_websocket.go:914
← previousnext →7,801–7,900 of 15,409, ranked by callers