MCPcopy Create free account

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

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

↓ 1 callersFunctionprocessTokenData
(info *relaycommon.RelayInfo, data string, responseTextBuilder *strings.Builder, toolCount *int)
relay/channel/openai/helper.go:140
↓ 1 callersFunctionprocessType
(value: unknown)
web/src/features/usage-logs/lib/utils.ts:167
↓ 1 callersMethodprogressEvent
()
relay/plugin_protocol.go:974
↓ 1 callersFunctionprogressOf
(status: string, processed: number, error = '')
web/src/features/channels/lib/__tests__/update-all-balances.test.ts:60
↓ 1 callersFunctionprotocolPluginSource
(key, models, protocols, exports string)
pluginkit/protocol_supports_contract_test.go:210
↓ 1 callersFunctionprotocolPluginSource
(key, models, protocols, exports string)
pkg/jsplugin/protocol_supports_test.go:37
↓ 1 callersFunctionproviderConverterPath
providerConverterPath reports whether the convert hooks can serve the client endpoint of route: every relayed one but realtime, which is a WebSocket s
pluginkit/meta.go:1535
↓ 1 callersFunctionpruneObjects
pruneObjects 在原 Doc 上删除 path(为空时为整个请求体)下满足条件的对象, 其余内容保持原样。
relay/common/override.go:1957
↓ 1 callersFunctionptr
(value T)
relay/common/relay_info_test.go:398
↓ 1 callersFunctionpullModel
()
web/src/features/channels/components/dialogs/ollama-models-dialog.tsx:227
↓ 1 callersFunctionpush
(kind: TextDiffPart['kind'], text: string)
web/src/features/task-plugins/lib/text-diff.ts:54
↓ 1 callersFunctionpushSegmentedParts
(parts: string[], token: string)
web/src/components/ai-elements/response-fade.ts:88
↓ 1 callersFunctionputUpdateChannel
(t *testing.T, userID, role int, body string)
controller/channel_task_plugin_bind_test.go:168
↓ 1 callersFunctionqueryPluginKeyBalance
queryPluginKeyBalance queries the balance of one key line of a task plugin channel through the channel's proxy, TLS setting and header overrides.
controller/channel_balance.go:141
↓ 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:637
↓ 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:169
↓ 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:70
↓ 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:1569
↓ 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:643
↓ 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:1353
↓ 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:1320
↓ 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:345
↓ 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:843
↓ 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.
pluginkit/fetch.go:333
↓ 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 callersFunctionreencodeMedia
reencodeMedia decodes an inline image and encodes it again as a media.reencode effect asks. It returns the json.patch operations that replace the medi
relay/requestplugin/media.go:234
↓ 1 callersFunctionrefreshBillingTime
()
web/src/features/pricing/hooks/use-billing-time.ts:28
↓ 1 callersFunctionrefreshCodexCredential
( channelId: number )
web/src/features/channels/api.ts:447
↓ 1 callersFunctionrefreshCodexOAuthToken
( ctx context.Context, client *http.Client, tokenURL string, clientID string, refreshToken string, )
service/codex_oauth.go:41
← previousnext →7,901–8,000 of 15,592, ranked by callers