MCPcopy Create free account

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

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

↓ 1 callersFunctionparseUpstreamUpdateMeta
(settings: unknown)
web/src/features/channels/lib/upstream-update-utils.ts:27
↓ 1 callersFunctionparseValue
(raw json.RawMessage)
pkg/requestpatch/patch.go:416
↓ 1 callersFunctionparseValue
* Parse a property value from string to appropriate type * @param raw - Raw string value * @returns Parsed value (boolean, number, or string)
web/src/lib/lobe-icon.tsx:91
↓ 1 callersFunctionparseVersion
(fields: Record<string, unknown>)
web/src/features/task-plugins/__tests__/marketplace.test.ts:835
↓ 1 callersFunctionparseWaffoPayMethods
(data: unknown)
web/src/features/wallet/hooks/use-topup-info.ts:86
↓ 1 callersMethodpassThrough
passThrough hands the rest of a stream to the client as the handler writes it, once every instance let the answer pass with nothing masked: the events
relay/requestplugin/reply.go:1123
↓ 1 callersMethodpassed
passed reports an answer every instance let pass: no hook is called for the rest of it.
relay/requestplugin/reply.go:343
↓ 1 callersFunctionpasswordProof
(scope: string)
web/src/features/security/components/__tests__/access-token-create-dialog.test.tsx:78
↓ 1 callersFunctionpasswordProof
(scope: string)
web/src/features/security/components/__tests__/access-tokens-card.test.tsx:92
↓ 1 callersFunctionpasted
(text: string, image: string)
web/src/features/task-plugins/__tests__/request-plugin-try-panel.test.tsx:274
↓ 1 callersFunctionpastedCallbackParams
pastedCallbackParams reads the query of the address an administrator pasted after the vendor redirected the browser.
service/provider_plugin_login.go:375
↓ 1 callersFunctionpatchPlanStatus
( id: number, enabled: boolean )
web/src/features/subscriptions/api.ts:59
↓ 1 callersFunctionpathContainsFlowLink
( path: FlowPathNode[], link: FlowLinkSelection )
web/src/features/dashboard/lib/flow.ts:637
↓ 1 callersFunctionpathContainsFlowNode
( path: FlowPathNode[], filter: FlowNodeFilter )
web/src/features/dashboard/lib/flow.ts:630
↓ 1 callersFunctionpathFor
(action)
plugins/tasks/vidu/plugin.js:323
↓ 1 callersFunctionpathFor
(action)
plugins/tasks/kling/plugin.js:169
↓ 1 callersFunctionpathHasParameter
(routePath, name string)
pkg/jsplugin/routing.go:973
↓ 1 callersFunctionpathLinkKey
(source: FlowPathNode, target: FlowPathNode)
web/src/features/dashboard/lib/flow.ts:511
↓ 1 callersFunctionpathMatchesNodeFilters
( path: FlowPathNode[], filters: Map<FlowNodeKind, Set<string>> )
web/src/features/dashboard/lib/flow.ts:362
↓ 1 callersMethodpause
pause stops the clock while a host function waits. It reports false when the watchdog already fired: its interrupt is then ending the call, and the ho
pkg/jsplugin/engine.go:852
↓ 1 callersFunctionpaySubscriptionBalance
( data: SubscriptionPayRequest )
web/src/features/subscriptions/api.ts:158
↓ 1 callersFunctionpaySubscriptionCreem
( data: SubscriptionPayRequest )
web/src/features/subscriptions/api.ts:144
↓ 1 callersFunctionpaySubscriptionEpay
( data: SubscriptionPayRequest & { payment_method: string } )
web/src/features/subscriptions/api.ts:194
↓ 1 callersFunctionpaySubscriptionStripe
( data: SubscriptionPayRequest )
web/src/features/subscriptions/api.ts:137
↓ 1 callersFunctionpaySubscriptionWaffoPancake
( data: SubscriptionPayRequest )
web/src/features/subscriptions/api.ts:151
↓ 1 callersFunctionpdfColumnsBounded
pdfColumnsBounded reports whether the decode parameters of one filter, read through the library, keep the buffers its PNG predictor sizes by Columns w
relay/requestplugin/pdf.go:219
↓ 1 callersFunctionpemToDER
(pem: string)
web/src/features/auth/lib/password-encryption.ts:176
↓ 1 callersFunctionpendingLoginResponse
()
web/src/features/auth/otp/__tests__/login-verification.test.tsx:117
↓ 1 callersFunctionpendingResponse
()
web/src/features/auth/secure-verification/__tests__/verification-flow.test.tsx:92
↓ 1 callersFunctionperformChannelTests
performChannelTests runs channel health checks with the configured bounded concurrency and honors cancellation when a system-task runner loses its lea
controller/channel-test.go:1111
↓ 1 callersFunctionperformCheckin
( turnstileToken?: string )
web/src/features/profile/api.ts:299
↓ 1 callersFunctionperformFrontendRequest
(router http.Handler, method, target, acceptEncoding string)
middleware/frontend_static_test.go:33
↓ 1 callersFunctionperformRefreshWithBrowserLock
( refreshEpoch: number )
web/src/lib/auth-session.ts:317
↓ 1 callersFunctionpermission
(container: HTMLElement, resource: string, action: string)
web/src/features/security/components/__tests__/access-token-create-dialog.test.tsx:101
↓ 1 callersFunctionpermission
(container: HTMLElement, action: string)
web/src/features/security/components/__tests__/access-tokens-card.test.tsx:198
↓ 1 callersFunctionpersistTokenQuotaDelta
(id int, delta int)
model/quota_reserve.go:122
↓ 1 callersFunctionpersistUserQuotaDelta
persistUserQuotaDelta 把已在缓存侧预扣成功的增量落库;批量模式下入队, 直写模式下要求行存在(用户已删除时报错,交由调用方补偿缓存)。
model/quota_reserve.go:107
↓ 1 callersFunctionpickTelegramAuthorization
( value: unknown )
web/src/features/auth/lib/telegram-login.ts:40
↓ 1 callersMethodping
()
relay/helper/common.go:81
↓ 1 callersFunctionpinnedChannelUnavailable
Origin-task pins report a fixed code so task polling can tell a retired channel from a malformed request.
service/channel_select.go:406
↓ 1 callersFunctionplainObject
(value)
plugins/tasks/google/plugin.js:53
↓ 1 callersFunctionplainObject
(value)
plugins/tasks/vidu/plugin.js:162
↓ 1 callersFunctionplan
(enabled: boolean)
web/src/features/usage-logs/lib/__tests__/billing-source.test.ts:29
↓ 1 callersFunctionplanToFormValues
(plan: SubscriptionPlan)
web/src/features/subscriptions/lib/plan-form.ts:80
↓ 1 callersFunctionplugin
(overrides?: Partial<MarketplacePlugin>)
web/src/features/task-plugins/__tests__/marketplace-plugin-logo.test.tsx:33
↓ 1 callersFunctionplugin
(hooks: string[], optional = false)
web/src/features/task-plugins/__tests__/request-plugin-run-line.test.tsx:28
↓ 1 callersFunctionpluginAccountLoggedIn
pluginAccountLoggedIn reports whether a credential of the plugin on any channel holds accountID. A failed read counts as logged in, so a doubt never r
service/provider_plugin_login.go:600
↓ 1 callersFunctionpluginChannel
( pluginKey: string, balanceDetail?: ChannelBalanceDetail | null )
web/src/features/channels/components/__tests__/channel-balance-cell.test.tsx:41
↓ 1 callersFunctionpluginForm
(values: Record<string, unknown> = {})
web/src/features/channels/lib/__tests__/task-plugin-channel-settings.test.ts:31
↓ 1 callersFunctionpluginIcon
(pluginKey: string)
web/src/features/channels/components/drawers/channel-request-plugins-field.tsx:63
↓ 1 callersFunctionpluginKeyIndex
pluginKeyIndex is the index of the key line key among the channel's keys, 0 when it is not one of them.
controller/channel_upstream_update.go:563
↓ 1 callersFunctionpluginLoginReducer
( state: PluginLoginState, event: PluginLoginEvent )
web/src/features/channels/lib/plugin-login.ts:138
↓ 1 callersFunctionpluginOutputText
(raw json.RawMessage)
relay/plugin_protocol.go:1034
↓ 1 callersFunctionpluginRouteRecovery
()
router/plugin-router.go:402
↓ 1 callersFunctionpluginValue
pluginValue returns a hook argument in the shapes moejs converts: nil, booleans, numbers, strings, JSON-shaped maps and slices and engine values. A Ra
pkg/jsplugin/engine.go:664
↓ 1 callersFunctionpointer
(path, key)
plugins/tasks/param-override/plugin.js:83
↓ 1 callersFunctionpointerGeometry
(cardColumns = 3)
web/src/features/channels/components/__tests__/priority-order.test.tsx:371
↓ 1 callersFunctionpollInterval
(value: number | undefined, fallback: number)
web/src/features/channels/lib/plugin-login.ts:104
↓ 1 callersFunctionpollTaskBatch
pollTaskBatch sends one batch query for tasks and applies the results it returns for them.
service/task_polling.go:350
↓ 1 callersFunctionpopulateResponsesCloneFixture
Populate all mutable fields so newly added request fields also exercise the retry-isolation contract, rather than silently escaping a hand-written lis
relay/request_clone_test.go:93
↓ 1 callersFunctionpopupWindow
()
web/src/features/auth/lib/__tests__/oauth-popup.test.ts:26
↓ 1 callersFunctionpositiveTaskArtifactLimit
(env string, defaultValue int)
setting/system_setting/task_artifact.go:26
↓ 1 callersFunctionpostCalls
(url: string)
web/src/features/security/components/__tests__/access-token-create-dialog.test.tsx:107
↓ 1 callersFunctionpostCommunityPluginInstall
(installsURL string, body []byte)
controller/task_plugin.go:90
↓ 1 callersMethodpreConsume
--------------------------------------------------------------------------- PreConsume — 统一预扣费入口(含信任额度旁路) --------------------------------------------
service/billing_session.go:208
↓ 1 callersFunctionpreConsumeUsage
(ctx *gin.Context, info *relaycommon.RelayInfo, usage *dto.RealtimeUsage, totalUsage *dto.RealtimeUsage)
relay/channel/openai/relay_realtime.go:281
↓ 1 callersFunctionpreloadImage
Preload an image, returning a cleanup that detaches the pending handlers.
web/src/hooks/use-system-config.ts:33
↓ 1 callersMethodprepare
prepare runs prepareRequest and applies its effects to the body and, when the request is sent, the headers: all of them or none. It returns the path o
relay/channel/providerplugin/adaptor.go:688
↓ 1 callersFunctionprepareCredentialCreationOptions
( payload: any )
web/src/lib/passkey.ts:107
↓ 1 callersFunctionprepareCredentialRequestOptions
( payload: any )
web/src/lib/passkey.ts:153
↓ 1 callersMethodpreparePartialFunctionCalls
(response *dto.GeminiChatResponse)
relaykit/relayconvert/internal/gemini_chat/to_oai_chat_resp.go:473
↓ 1 callersFunctionprepareResponseStreamInfo
(info convmeta.Meta, spec ResponseConverterSpec)
relaykit/relayconvert/response_registry.go:633
↓ 1 callersMethodpresent
(task *model.Task, presenter string)
controller/task_plugin_debug.go:229
↓ 1 callersMethodpresentError
(taskErr *dto.TaskError)
controller/task_plugin_debug.go:243
↓ 1 callersFunctionpreviewUpstreamDiff
(params?: { locale?: SyncLocale source?: SyncSource })
web/src/features/models/api.ts:212
↓ 1 callersFunctionpreviewVendorOperation
( operation: VendorOperation )
web/src/features/models/vendor-api.ts:105
↓ 1 callersFunctionpreviousRankingTimeRange
(config rankingPeriodConfig, currentStart int64)
service/rankings.go:231
↓ 1 callersFunctionpricingByModelName
(pricings []model.Pricing)
controller/model_list_test.go:166
↓ 1 callersFunctionpricingIssue
( modelName: string, reason: ModelPricingIssue['reason'] = 'unconfigured' )
web/src/features/task-plugins/__tests__/plugins-table.test.tsx:299
↓ 1 callersFunctionpricingModel
(overrides: Partial<PricingModel> = {})
web/src/features/pricing/__tests__/model-cards.test.tsx:43
↓ 1 callersFunctionpricingModel
(overrides: Partial<PricingModel>)
web/src/features/pricing/__tests__/dynamic-price.test.ts:37
↓ 1 callersFunctionpricingModel
( modelName: string, overrides: Partial<PricingModel> )
web/src/features/pricing/__tests__/sorting.test.ts:25
↓ 1 callersMethodprimary
()
web/src/features/pricing/lib/billing-expression/parser.ts:273
↓ 1 callersMethodprime
prime converts upstream events until the plugin returns its first output, returns an error or the stream ends. The output stays pending for Read. Like
relay/channel/providerplugin/stream.go:138
↓ 1 callersFunctionprintHelp
()
common/init.go:25
↓ 1 callersFunctionprocessCompletionsStreamResponse
(streamResponse dto.CompletionsStreamResponse, responseTextBuilder *strings.Builder)
relay/channel/openai/helper.go:159
↓ 1 callersFunctionprocessStreamingContent
( message: Message, contentChunk?: string )
web/src/features/playground/lib/message/message-streaming-utils.ts:40
↓ 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 callersFunctionproviderChannelServes
providerChannelServes reports a task plugin channel whose plugin relays requestPath for modelName through its relay routes, as an Advanced Custom chan
model/channel_constraint.go:154
↓ 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
pkg/jsplugin/registry.go:1933
↓ 1 callersFunctionpruneObjects
pruneObjects 在原 Doc 上删除 path(为空时为整个请求体)下满足条件的对象, 其余内容保持原样。
relay/common/override.go:1933
↓ 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
← previousnext →7,701–7,800 of 15,409, ranked by callers