MCPcopy Create free account

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

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

↓ 2 callersFunctionresolveAuth
(meta pluginruntime.AuthMeta, apiKey, proxy string)
relay/channel/task/jsplugin/auth.go:22
↓ 2 callersFunctionresolveLegacyRoute
(rawHref: string)
web/src/lib/legacy-route.ts:66
↓ 2 callersFunctionresolveLogsViewAccess
( role: number, viewScope: LogsViewScope )
web/src/features/usage-logs/components/usage-logs-provider.tsx:30
↓ 2 callersFunctionresolveModelMetadata
resolveModelMetadata preserves catalog precedence: exact, prefix, suffix, then contains. The first matching record within a rule type wins.
model/model_meta.go:79
↓ 2 callersFunctionresolveOAuthCallbackMode
( provider: string, state: string, { opener, storage }: OAuthCallbackModeContext )
web/src/features/auth/lib/oauth-callback-mode.ts:112
↓ 2 callersFunctionresolveOAuthSiteUrl
( serverAddress: string, fallback: string )
web/src/features/system-settings/auth/oauth-callback-url.ts:19
↓ 2 callersFunctionresolveOllamaBaseUrl
(channel: Channel | null)
web/src/features/channels/lib/ollama-utils.ts:66
↓ 2 callersFunctionresolveOrigins
(r *http.Request, settings *system_setting.PasskeySettings)
service/passkey/service.go:160
↓ 2 callersFunctionresolvePluginChangelogUrl
( indexUrl: string, plugin: MarketplacePlugin, version: string )
web/src/features/task-plugins/lib/plugin-changelog.ts:72
↓ 2 callersFunctionresolvePluginDocumentFiles
( indexUrl: string, document: MarketplaceDocument, baseName: 'README' | 'CHANGELOG', locale: string )
web/src/features/task-plugins/lib/plugin-document.ts:109
↓ 2 callersFunctionresolvePluginIcon
( input: PluginIconInput )
web/src/features/task-plugins/lib/plugin-icon.ts:55
↓ 2 callersMethodresolveProxyKey
(rawProxyURL string)
service/http_client.go:223
↓ 2 callersFunctionresolveRPID
(r *http.Request, settings *system_setting.PasskeySettings, origins []string)
service/passkey/service.go:209
↓ 2 callersFunctionresolveRateLimitWindows
(data: RateLimitSource | null)
web/src/features/channels/components/dialogs/codex-usage-dialog.tsx:299
↓ 2 callersFunctionresolveTaskDetailAccess
( log: TaskLog, isAdmin: boolean, isRoot: boolean )
web/src/features/usage-logs/lib/task-details.ts:28
↓ 2 callersFunctionresolveTaskPreviewMode
( log: TaskLog, hasProjectedArtifacts = false )
web/src/features/usage-logs/lib/task-artifacts.ts:215
↓ 2 callersFunctionresolveThemeColor
(cssVariable: string)
web/src/lib/theme-color.ts:27
↓ 2 callersFunctionresolveThemeFont
( font: ThemeFont, preset: ThemePreset )
web/src/lib/theme-customization.ts:172
↓ 2 callersFunctionresolveTokenKey
--------------------------------------------------------------------------- 异步任务计费辅助函数 ---------------------------------------------------------------
service/task_billing.go:105
↓ 2 callersFunctionresolveUserSortOptions
(sortOptions []UserSortOptions)
model/user.go:70
↓ 2 callersFunctionresolvedTaskPluginIDs
(value any)
middleware/task_plugin.go:1411
↓ 2 callersFunctionrespPtr
(value T)
relaykit/relayconvert/response_registry_test.go:791
↓ 2 callersFunctionrespondTaskError
respondTaskError 统一输出 Task 错误响应(含 429 限流提示改写)
controller/relay.go:965
↓ 2 callersFunctionresponseAnnotationToChat
(annotation any)
relaykit/relayconvert/internal/oai_responses/to_oai_chat_resp.go:159
↓ 2 callersFunctionresponseBody
responseBody reads the body or bodyBase64 member of a result and its contentType, empty when the result has none.
pluginkit/provider.go:1170
↓ 2 callersFunctionresponseContent
(ctx, task)
plugins/tasks/sunoapi/plugin.js:237
↓ 2 callersFunctionresponseToolOutputToChatContent
(value any)
relaykit/relayconvert/internal/oai_responses/to_oai_chat_req.go:619
↓ 2 callersFunctionresponsesAnnotationsToClaude
(annotations []any, text string)
relaykit/relayconvert/internal/oai_responses/to_claude_messages_resp.go:95
↓ 2 callersFunctionresponsesClaudeStopReason
(resp *dto.OpenAIResponsesResponse, sawToolCall bool)
relaykit/relayconvert/internal/oai_responses/to_claude_messages_resp.go:85
↓ 2 callersFunctionresponsesContentPartsToChatContent
(ctx context.Context, parts []any)
relaykit/relayconvert/internal/oai_responses/to_oai_chat_req.go:257
↓ 2 callersFunctionresponsesInputContentToClaudeMediaMessages
(c context.Context, content any)
relaykit/relayconvert/internal/oai_responses/to_claude_messages_req.go:184
↓ 2 callersFunctionresponsesPartPayload
(part map[string]any, key string)
relaykit/relayconvert/internal/oai_responses/to_oai_chat_req.go:567
↓ 2 callersFunctionresponsesRequestTextToChatResponseFormat
(raw json.RawMessage)
relaykit/relayconvert/internal/oai_responses/to_oai_chat_req.go:451
↓ 2 callersFunctionresponsesRequestToolChoiceToChat
(raw json.RawMessage)
relaykit/relayconvert/internal/oai_responses/to_oai_chat_req.go:417
↓ 2 callersFunctionresponsesTypeFromHostedKind
(kind Kind)
relaykit/relayconvert/internal/toolconv/response_artifacts.go:741
↓ 2 callersFunctionresponsesWSErrorEndsRequest
A single generation is active, but a cancel can fail independently. Correlate available IDs first; uncorrelated control/server errors require a bounde
relay/responses_websocket.go:625
↓ 2 callersFunctionreturnedState
returnedState is the JSON of a hook result's state member, which the host stores only when the hook returns one: not when it is absent or null.
pluginkit/task.go:529
↓ 2 callersFunctionrevokePluginCredentialData
revokePluginCredentialData calls the plugin's revoke for the data of each credential, in the background, and only logs its failures.
service/provider_plugin.go:552
↓ 2 callersFunctionrevokeUserSessions
(userID int, excludedSID, reason string)
model/user_session.go:734
↓ 2 callersFunctionrewriteSGLangResponsesCreatedAt
(info *relaycommon.RelayInfo, payload []byte, path string, createdAt dto.IntValue)
relay/channel/openai/relay_responses.go:107
↓ 2 callersFunctionroleBaselineAllows
(e *casbin.SyncedEnforcer, roleKey string, permission Permission)
service/authz/resolver.go:53
↓ 2 callersFunctionroundRankingFloat
(value float64)
service/rankings.go:573
↓ 2 callersFunctionroundRatioValue
(value float64)
controller/ratio_sync.go:842
↓ 2 callersFunctionrouteSegmentsIntersect
(left, right []routePatternSegment)
router/plugin-router.go:646
↓ 2 callersFunctionroutingPolicyFormValues
( options: Record<string, string> )
web/src/features/system-settings/request-policies/routing-form.ts:46
↓ 2 callersFunctionroutingProtocolExport
(name string)
pluginkit/routing_contract_test.go:633
↓ 2 callersMethodruleQuery
(query *gorm.DB, ptype string, rule []string)
service/authz/adapter.go:106
↓ 2 callersMethodrun
(channel *model.Channel, plugin *jsplugin.LoadedPlugin, key pluginScheduledKey, entry *pluginScheduledEntry, l
service/provider_plugin_scheduled.go:195
↓ 2 callersFunctionrunModeration
runModeration runs the content-moderation ingress hook through the host's fetch path against a fake moderation API that answers status and reply.
plugins/request_plugins_test.go:551
↓ 2 callersFunctionrunProgram
(prog *vm.Program, requestRules []RequestRuleTrace, usedVars map[string]bool, params TokenParams, request Requ
pkg/billingexpr/run.go:53
↓ 2 callersFunctionsameModifierIntent
(left reasoning.Intent, right reasoning.Intent)
relay/helper/reasoning_suffix.go:236
↓ 2 callersFunctionsamePluginScope
( a: RequestPluginScope, b: RequestPluginScope )
web/src/features/task-plugins/lib/plugin-scope.ts:40
↓ 2 callersFunctionsameSyncPrice
( left: PricingSyncValues, right: PricingSyncValues )
web/src/features/system-settings/models/upstream-ratio-sync-helpers.ts:86
↓ 2 callersFunctionsample
(name: string, lang?: string)
web/src/features/task-plugins/__tests__/request-plugin-samples.test.ts:29
↓ 2 callersFunctionsamplePlugin
samplePlugin is a request plugin whose meta.samples is samples.
pluginkit/provider_test.go:1156
↓ 2 callersFunctionsanitizeGeminiEnum
sanitizeGeminiEnum keeps the enum constraint only when every element is a string, the only form Gemini's legacy Schema accepts. Any other shape is dro
relaykit/relayconvert/internal/shared/gemini/schema.go:154
↓ 2 callersFunctionsaturateQuotaBounded
(value float64, op string, maxQuota int, minQuota int)
common/quota_math.go:86
↓ 2 callersFunctionsave
(move: PriorityMove)
web/src/features/channels/hooks/use-channel-priority-order.ts:159
↓ 2 callersFunctionsaveAffiliateCode
(code: string)
web/src/features/auth/lib/storage.ts:53
↓ 2 callersFunctionsaveAndOpenErrorLog
()
electron/main.js:15
↓ 2 callersFunctionsaveChartPreferences
( preferences: DashboardChartPreferences )
web/src/features/dashboard/lib/filters.ts:128
↓ 2 callersFunctionsaveConfig
(config: Partial<PlaygroundConfig>)
web/src/features/playground/lib/storage/storage.ts:314
↓ 2 callersFunctionsaveModelPricing
(changes: ModelPricingChange[])
web/src/features/model-pricing/api.ts:161
↓ 2 callersFunctionsaveParameterEnabled
( parameterEnabled: Partial<ParameterEnabled> )
web/src/features/playground/lib/storage/storage.ts:343
↓ 2 callersFunctionsaveSettings
( normalized: FlatPasskeyDefaults, preview?: PasskeyDomainChange )
web/src/features/system-settings/auth/passkey-section.tsx:242
↓ 2 callersFunctionscheduledKeyIdentity
scheduledKeyIdentity distinguishes replacement keys without retaining their secrets. Credential data changes on refresh; account identity stays stable
service/provider_plugin_scheduled.go:401
↓ 2 callersFunctionschemaMisfits
schemaMisfits lists what Gemini's typed Schema cannot hold of a JSON Schema as written: keywords outside its fields, type arrays, non-string enum valu
relaykit/relayconvert/internal/shared/gemini/schema.go:309
↓ 2 callersFunctionscrollSelectedOptionIntoView
( selectedOption: ScrollableOption | null, scrollContainer?: ScrollableOptionContainer | null )
web/src/components/model-group-selector/layout.ts:52
↓ 2 callersFunctionsearchModels
( params: SearchModelsParams )
web/src/features/models/api.ts:59
↓ 2 callersFunctionsearchVendors
(params: { association?: string keyword?: string p?: number page_size?: number })
web/src/features/models/api.ts:148
↓ 2 callersFunctionseedExportLogs
seedExportLogs stores logs of two users: three in the last hour and one from 400 days ago.
controller/log_export_test.go:55
↓ 2 callersFunctionseedHardcodedToolPrices
seedHardcodedToolPrices injects compile-time built-in fallbacks (tool defaults and model-prefix overrides) into the destination. The source is constan
setting/operation_setting/tools.go:43
↓ 2 callersFunctionseedSubscription
(t *testing.T, id int, userId int, amountTotal int64, amountUsed int64)
service/task_billing_test.go:110
↓ 2 callersFunctionseedreamUsageFacts
(lower, higher, inputImages, layered)
plugins/tasks/doubao/plugin.js:229
↓ 2 callersMethodsegments
segments splits the raw body at its delimiters: first is the offset of the first delimiter and newline the body's line break. Segment i+1 is part i, f
relay/requestplugin/form.go:239
↓ 2 callersFunctionselectLatestRelease
(payload: unknown)
web/src/features/system-update/releases.ts:91
↓ 2 callersMethodsend
()
web/src/features/auth/secure-verification/__tests__/verification-api.test.ts:193
↓ 2 callersMethodsend
send relays the body over the matched route. A credential line is no API key, so {api_key} in header overrides is empty while the request is built.
relay/channel/providerplugin/adaptor.go:659
↓ 2 callersFunctionsendChannelRequest
sendChannelRequest sends a channel management request through the channel's proxy and TLS setting. The caller closes the response body.
controller/channel_upstream_update.go:574
↓ 2 callersFunctionsendEmailBindingCodes
(lang string, state model.EmailBindingState, codes emailBindingCodes)
service/email_binding.go:181
↓ 2 callersMethodsendError
(eventID, streamID string, apiErr *types.NewAPIError)
relay/responses_websocket.go:880
↓ 2 callersFunctionsendGeminiStreamResults
(c *gin.Context, results []relayconvert.ResponseResult)
relay/channel/openai/helper.go:103
↓ 2 callersFunctionsendGeminiStreamResults
(c *gin.Context, results []relayconvert.ResponseResult)
relay/channel/claude/relay-claude.go:206
↓ 2 callersMethodsendManagement
sendManagement sends one management request built on header: the step's method, headers and body, the credential's headers and query, the channel's he
relay/channel/providerplugin/management.go:237
↓ 2 callersFunctionsendPluginFetch
sendPluginFetch sends one checked utils.fetch request with client. A redirect reaches the plugin as it is; fetching its location is a new request, che
service/provider_plugin.go:96
↓ 2 callersFunctionsendStreamData
(c *gin.Context, info *relaycommon.RelayInfo, data string, forceFormat bool, thinkToContent bool)
relay/channel/openai/relay-openai.go:24
↓ 2 callersFunctionsendWaffoWebhookResponse
sendWaffoWebhookResponse 发送签名响应
controller/topup_waffo.go:425
↓ 2 callersFunctionsentBody
The body a PUT sends over the wire: undefined fields are left out.
web/src/features/profile/__tests__/settings.test.tsx:62
↓ 2 callersFunctionserializeGroupPricingRows
(rows: GroupPricingRow[])
web/src/features/system-settings/models/group-ratio-visual-editor.tsx:183
↓ 2 callersFunctionserializeHeaderNavModules
( config: HeaderNavModulesConfig )
web/src/features/system-settings/maintenance/config.ts:179
↓ 2 callersMethodserve
()
common/email_test.go:101
↓ 2 callersFunctionservesResponsesWebSocket
(routes []dto.AdvancedCustomRoute, model string)
pluginkit/meta.go:336
↓ 2 callersMethodsession
()
model/user_session.go:108
↓ 2 callersFunctionsessionDevice
( userAgent: string, unknownDevice: string, browserLabel: string, maxTouchPoints = 0 )
web/src/features/security/components/login-session-utils.ts:21
↓ 2 callersFunctionsessionView
(session *model.UserSession, current bool)
service/auth_session.go:423
↓ 2 callersFunctionsetAccessTokenAuditParam
setAccessTokenAuditParam adds non-secret context, such as why a token was rejected, to the current request's access audit entry.
middleware/audit.go:295
↓ 2 callersFunctionsetAccessTokenContext
setAccessTokenContext exposes the token grant to handlers. Scoped tokens also get a step-up identity bound to the token instead of a browser session.
middleware/auth.go:319
↓ 2 callersFunctionsetCollapsible
(newCollapsible: Collapsible)
web/src/context/layout-provider.tsx:64
↓ 2 callersFunctionsetFont
(font: Font)
web/src/context/font-provider.tsx:55
↓ 2 callersFunctionsetHeaderPassthrough
( headerOverride: string | undefined, enabled: boolean )
web/src/features/channels/lib/header-passthrough.ts:66
← previousnext →4,701–4,800 of 15,592, ranked by callers