MCPcopy Create free account

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

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

↓ 2 callersFunctionemailBindingData
(token string, flow *model.AuthFlow, state *model.EmailBindingState)
service/email_binding.go:201
↓ 2 callersFunctionencodePluginIconFile
(file: File)
web/src/features/task-plugins/lib/plugin-icon-file.ts:61
↓ 2 callersFunctionencodeReturnedPluginState
(value any)
relay/channel/task/jsplugin/adaptor.go:1617
↓ 2 callersFunctionencodeWebSearch
encodeWebSearch runs the host web-search encoder for one definition. handled is false when no encoder is set or it returned nil; the caller then keeps
relaykit/relayconvert/internal/toolconv/encode.go:182
↓ 2 callersFunctionendpoint
(ctx, action)
plugins/tasks/jimeng/plugin.js:142
↓ 2 callersFunctionenforceAccessTokenRoute
enforceAccessTokenRoute applies the route's access token rule (fail closed: scoped tokens cannot call undeclared routes). With abort set it writes the
middleware/auth.go:289
↓ 2 callersMethodensureBlock
(event *dto.ResponsesStreamResponse, kind string)
relaykit/relayconvert/internal/oai_responses/to_claude_messages_stream_resp.go:219
↓ 2 callersMethodensureItem
(event *dto.ResponsesStreamResponse, itemType string)
relaykit/relayconvert/internal/oai_responses/to_oai_chat_stream_resp.go:816
↓ 2 callersFunctionensureLogRequestId
(log *Log)
model/log.go:94
↓ 2 callersFunctionensureStatus
( queryClient: QueryClient )
web/src/lib/status-query.ts:179
↓ 2 callersFunctionequalStringPtr
equalStringPtr 比较两个 *string 是否相等(均为 nil 视为相等)。
controller/channel.go:1556
↓ 2 callersFunctionescapePointer
(token string)
relay/requestplugin/media.go:164
↓ 2 callersFunctionestimatePrice
(params: { location_ids: Array<string | number> hardware_id: string | number gpus_per_container: number
web/src/features/models/api.ts:490
↓ 2 callersFunctionestimateTokens
(seconds, resolution)
plugins/tasks/doubao/plugin.js:439
↓ 2 callersFunctionevalExprLocally
( exprStr: string, promptTokens: number, completionTokens: number, extraTokenValues: ExtraTokenValues,
web/src/features/pricing/lib/tier-expr.ts:287
↓ 2 callersFunctionevaluateTaskUsageExamples
( expression: string | null | undefined, schema: BillingUsageSchema | null | undefined, examples: Billin
web/src/features/pricing/lib/task-expr.ts:289
↓ 2 callersMethodeventFields
eventFields reads the text of a stream event in the client's format: delta fields, full-text fields, the outputs it ends, and whether it ends them all
relay/requestplugin/reply.go:1146
↓ 2 callersFunctioneventStreamMessage
eventStreamMessage encodes one AWS event stream message with string headers.
relay/channel/providerplugin/eventstream_test.go:17
↓ 2 callersFunctionexceedsThreshold
exceedsThreshold 判断采样值是否超过阈值;阈值 <= 0 表示不检查该项。
common/system_monitor.go:110
↓ 2 callersFunctionexecuteLogout
( runtime: LogoutRuntime, allowMismatchRecovery = true )
web/src/features/auth/api.ts:103
↓ 2 callersFunctionexecuteRequestSpec
(c context.Context, info convmeta.Meta, from types.RelayFormat, target types.RelayFormat, request any, spec Re
relaykit/relayconvert/request_registry.go:236
↓ 2 callersFunctionexecuteRequestSteps
(c context.Context, info convmeta.Meta, from types.RelayFormat, target types.RelayFormat, request any, convert
relaykit/relayconvert/request_registry.go:244
↓ 2 callersFunctionexecuteResponseSpec
(c context.Context, info convmeta.Meta, from types.RelayFormat, target types.RelayFormat, response any, spec R
relaykit/relayconvert/response_registry.go:475
↓ 2 callersFunctionexecuteResponseStreamSteps
(c context.Context, info convmeta.Meta, state *ResponseStreamState, values []any, start int)
relaykit/relayconvert/response_registry.go:607
↓ 2 callersFunctionexecuteTaskSubmission
executeTaskSubmission owns the retry, billing, and persistence lifecycle. It deliberately performs no client response writes so JSON and protocol pres
controller/relay.go:596
↓ 2 callersFunctionexecutionFromNativeType
(toolType string)
relaykit/relayconvert/internal/toolconv/decode.go:960
↓ 2 callersMethodexpect
(text: string)
web/src/features/pricing/lib/billing-expression/parser.ts:209
↓ 2 callersFunctionexplicitSubjectEffect
(e *casbin.SyncedEnforcer, subject string, permission Permission)
service/authz/resolver.go:58
↓ 2 callersFunctionexportLogs
exportLogs writes one JSON log per line, newest first, and ends with an API response object: success with the log count, or the failure. Each user run
controller/log.go:115
↓ 2 callersMethodexportWithMemberJSON
exportWithMemberJSON is Export that also returns members of the export as the text JSON.stringify writes for them, which keeps the member order of the
pkg/jsplugin/engine.go:227
↓ 2 callersMethodexpression
(minimum = 0)
web/src/features/pricing/lib/billing-expression/parser.ts:232
↓ 2 callersFunctionexpressionFailure
(error: unknown)
web/src/features/pricing/lib/billing-expression/types.ts:150
↓ 2 callersFunctionextractErrorPosition
( error: unknown, jsonString: string )
web/src/features/system-settings/models/utils.ts:60
↓ 2 callersFunctionextractRedirectModels
(modelMapping: string)
web/src/features/channels/lib/model-mapping-validation.ts:77
↓ 2 callersFunctionfail
(error: unknown)
web/src/features/auth/lib/oauth-popup.ts:72
↓ 2 callersMethodfail
(code, message string)
relay/plugin_protocol.go:955
↓ 2 callersFunctionfailureReason
(data)
plugins/tasks/xai/plugin.js:345
↓ 2 callersFunctionfetchActiveChatKey
()
web/src/features/chat/hooks/use-active-chat-key.ts:30
↓ 2 callersFunctionfetchLogStats
( endpoint: string, params: T, isAdmin: boolean )
web/src/features/usage-logs/api.ts:60
↓ 2 callersFunctionfetchMetadataCatalog
(c *gin.Context, locale string)
controller/model_sync.go:255
↓ 2 callersFunctionfetchModels
(data: { base_url: string type: number key?: string channel_id?: number task_plugin_key?: string a
web/src/features/channels/api.ts:712
↓ 2 callersFunctionfetchOperation
(ctx, name)
plugins/tasks/vertex-ai/plugin.js:353
↓ 2 callersFunctionfetchPluginReadme
(options: { indexUrl: string plugin: MarketplacePlugin version: string language: string signal: Abor
web/src/features/task-plugins/lib/plugin-readme.ts:129
↓ 2 callersFunctionfilePlaceholder
(image)
plugins/tasks/kling/plugin.js:277
↓ 2 callersFunctionfillFields
fillFields writes each output's released text into its fields. Text that passed unchanged leaves them as they are. A whole answer splits it at the out
relay/requestplugin/reply.go:707
↓ 2 callersFunctionfillFlowChannelNames
(rows []*FlowQuotaData)
model/usedata_flow.go:132
↓ 2 callersFunctionfillFlowTokenNames
(rows []*FlowQuotaData)
model/usedata_flow.go:94
↓ 2 callersFunctionfilterAbilitiesByConstraints
filterAbilitiesByConstraints applies the same ChannelSatisfiesFilters predicate used by the memory-cache path. A failed channel lookup fails closed wh
model/ability.go:178
↓ 2 callersFunctionfilterByQuotaType
( models: PricingModel[], quotaType: string )
web/src/features/pricing/lib/filters.ts:123
↓ 2 callersFunctionfilterRowsByNodes
( rows: FlowQuotaDataItem[], selectedNodes: readonly FlowNodeFilter[] | undefined, stages: FlowNodeKind[
web/src/features/dashboard/lib/flow.ts:392
↓ 2 callersFunctionfilteredOutput
(data)
plugins/tasks/xai/plugin.js:321
↓ 2 callersMethodfinalResponse
()
relaykit/relayconvert/internal/oai_chat/to_oai_responses_stream_resp.go:764
↓ 2 callersMethodfinalize
(response *dto.OpenAIResponsesResponse)
relaykit/relayconvert/internal/oai_responses/to_oai_chat_stream_resp.go:522
↓ 2 callersFunctionfindButton
(text: string, required = true)
web/src/features/keys/components/__tests__/api-keys-mutate-drawer.test.tsx:146
↓ 2 callersFunctionfindOrCreateOAuthUser
findOrCreateOAuthUser finds the existing user or creates a new one. For a legacy GitHub binding that still waits for the login verification, it also r
controller/oauth.go:399
↓ 2 callersFunctionfindRevokedEntry
( index: MarketplaceIndex | undefined, sourceHash: string | undefined )
web/src/features/task-plugins/lib/marketplace.ts:548
↓ 2 callersMethodfindToolForEvent
(event *dto.ResponsesStreamResponse)
relaykit/relayconvert/internal/oai_responses/to_oai_chat_stream_resp.go:410
↓ 2 callersMethodfindToolIndex
(event *dto.ResponsesStreamResponse)
relaykit/relayconvert/internal/oai_responses/to_oai_chat_stream_resp.go:916
↓ 2 callersFunctionfindVariable
(node, sourceCode)
web/scripts/oxlint/intl-locale.mjs:47
↓ 2 callersFunctionfindingsOf
(blocking)
plugins/tasks/content-moderation/plugin.js:314
↓ 2 callersMethodfinish
(response *dto.OpenAIResponsesResponse, estimatedInputTokens int)
relaykit/relayconvert/internal/oai_responses/to_claude_messages_stream_resp.go:456
↓ 2 callersFunctionfinishAppliedSyncTasks
finishAppliedSyncTasks runs on the master with the system tasks. A sync task is done once every online node that keeps its topic has applied it or a n
service/node_sync.go:337
↓ 2 callersMethodfinishChoice
(choiceIndex int)
relaykit/relayconvert/internal/oai_chat/to_gemini_chat_resp.go:450
↓ 2 callersMethodfinishInsert
(inviterId int)
model/user.go:701
↓ 2 callersMethodfinishWhole
finishWhole checks a non-stream answer and writes what the client gets.
relay/requestplugin/reply.go:932
↓ 2 callersFunctionfirstMatch
(config, rules, texts)
plugins/tasks/request-filter/plugin.js:351
↓ 2 callersFunctionfitWithin
fitWithin scales an image down so neither side exceeds limit, rounding the shorter side down. Smaller images are not enlarged.
tokenkit/image.go:266
↓ 2 callersFunctionflattenValues
( values: T, parentKey?: string, result: Record<string, unknown> = {} )
web/src/features/system-settings/hooks/use-settings-form.ts:38
↓ 2 callersFunctionflowDisplayState
(options: { isLoading: boolean isError: boolean linkCount: number themeReady: boolean })
web/src/features/dashboard/lib/flow-selection.ts:43
↓ 2 callersFunctionflowNodeFilterKey
(filter: FlowNodeFilter)
web/src/features/dashboard/components/flow/flow-charts.tsx:223
↓ 2 callersFunctionflowRow
(t *testing.T, token string)
service/provider_plugin_login_test.go:50
↓ 2 callersFunctionflowSankeyDatumValue
(datum: unknown, key: string)
web/src/features/dashboard/lib/flow.ts:1057
↓ 2 callersFunctionflushCompletedBuckets
()
pkg/perf_metrics/flush.go:25
↓ 2 callersFunctionfollowChannelModelMapping
followChannelModelMapping walks one channel's mapping the same way ModelMappedHelper does: visited-set cycle detection, self-map stops at the current
model/task_model_alias.go:216
↓ 2 callersFunctionfooterButton
The dialog chrome also renders an sr-only "Close", so scope to the footer.
web/src/features/task-plugins/__tests__/upload-dialog.test.tsx:72
↓ 2 callersFunctionforcedWebSearch
(choice *Choice)
relaykit/relayconvert/internal/toolconv/encode.go:173
↓ 2 callersFunctionformatBytes
(bytes: number, decimals = 2)
web/src/features/system-settings/maintenance/server-log-files.tsx:60
↓ 2 callersFunctionformatCurrency
(amount: number | string)
web/src/features/wallet/lib/format.ts:55
↓ 2 callersFunctionformatDuration
( submitTime?: number, finishTime?: number, unit: 'seconds' | 'milliseconds' = 'milliseconds' )
web/src/features/usage-logs/lib/format.ts:429
↓ 2 callersFunctionformatDuration
( plan: Partial<SubscriptionPlan>, t: TFunction )
web/src/features/subscriptions/lib/format.ts:25
↓ 2 callersFunctionformatDurationSeconds
( seconds: unknown, t: (key: string) => string )
web/src/features/channels/components/dialogs/codex-usage-dialog.tsx:189
↓ 2 callersFunctionformatFixedPrice
( model: PricingModel, group: string, showWithRecharge = false, priceRate = 1, usdExchangeRate = 1,
web/src/features/pricing/lib/price.ts:215
↓ 2 callersFunctionformatGroupPrice
( model: PricingModel, group: string, type: PriceType, tokenUnit: TokenUnit, showWithRecharge = fals
web/src/features/pricing/lib/price.ts:180
↓ 2 callersFunctionformatGroups
(groups: string[])
web/src/features/channels/lib/channel-form.ts:1074
↓ 2 callersFunctionformatJsonDraft
(value: string)
web/src/components/json-code-editor/json-code-editor-utils.ts:70
↓ 2 callersFunctionformatJsonForEditor
(value: string, fallback = '[]')
web/src/features/system-settings/content/utils.ts:19
↓ 2 callersFunctionformatModelName
(log: UsageLog)
web/src/features/usage-logs/lib/format.ts:239
↓ 2 callersFunctionformatNumberWithSuffix
( value: number, digitsLarge: number, digitsSmall: number, abbreviate: boolean )
web/src/lib/currency.ts:269
↓ 2 callersFunctionformatQuotaValue
(value: number)
web/src/features/dashboard/lib/charts.ts:81
↓ 2 callersFunctionformatRatioCompact
(ratio: number | undefined)
web/src/features/usage-logs/components/columns/common-logs-columns.tsx:89
↓ 2 callersFunctionformatRequestPrice
( model: PricingModel, showWithRecharge = false, priceRate = 1, usdExchangeRate = 1, selectedGroup?:
web/src/features/pricing/lib/price.ts:247
↓ 2 callersFunctionformatResponseTime
(timeMs: number, t?: TFunction)
web/src/features/channels/lib/channel-utils.ts:371
↓ 2 callersFunctionformatSyncPriceAmount
( value: number, currency: PricingCurrency )
web/src/features/system-settings/models/upstream-ratio-sync-helpers.ts:97
↓ 2 callersFunctionformatTimestamp
(ts: number)
web/src/features/subscriptions/lib/format.ts:65
↓ 2 callersFunctionformatUseTime
(seconds: number)
web/src/lib/format.ts:274
↓ 2 callersFunctionformatWaffoPancakeAmount
(payMoney float64)
controller/topup_waffo_pancake.go:94
↓ 2 callersFunctionfulfillOrder
fulfillOrder is the shared logic for crediting quota after payment is confirmed.
controller/topup_stripe.go:276
↓ 2 callersFunctiongemini25BudgetForEffort
gemini25BudgetForEffort follows Google's OpenAI-compatible mapping, where high is 24576; xhigh and max, which that mapping lacks, take the model's lar
relaykit/relayconvert/reasoning/gemini.go:486
↓ 2 callersFunctiongeminiCodeExecutionRequest
(t *testing.T)
relaykit/relayconvert/internal/toolconv/policy_test.go:14
↓ 2 callersFunctiongeminiFields
geminiFields are the text parts of a candidate, thoughts left out; one output per candidate.
relay/requestplugin/reply.go:661
← previousnext →3,901–4,000 of 15,409, ranked by callers