MCPcopy Create free account

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

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

↓ 2 callersFunctionrenderTaskPluginQuery
( c *gin.Context, pinned pluginruntime.PinnedRoute, requestContext pluginruntime.RouteRequestContext, task
middleware/task_plugin.go:1434
↓ 2 callersFunctionrenderWithQueryClient
(ui: ReactElement)
web/src/features/usage-logs/audit/__tests__/details.test.tsx:327
↓ 2 callersMethodrenewManagement
renewManagement is renew outside a relay request.
relay/channel/providerplugin/management.go:53
↓ 2 callersFunctionreplaceBackupCodesWithAuthVersion
(userId int, codes []string, identity *AuthSessionIdentity)
model/twofa.go:170
↓ 2 callersFunctionreplaceBackupCodesWithTx
(tx *gorm.DB, userId int, codes []string)
model/twofa.go:144
↓ 2 callersFunctionreplaceFileMarkers
replaceFileMarkers replaces each $file marker of a JSON body with the content of the client file it names, as base64 or as a data URL, and keeps every
relay/channel/providerplugin/adaptor.go:416
↓ 2 callersFunctionreplaceModelPricing
replaceModelPricing writes one complete model draft into the option maps. Plugin expressions are grouped in the draft and flattened only in storage.
model/model_pricing_config.go:152
↓ 2 callersFunctionreplaceStoredBody
(c *gin.Context, body []byte)
relay/requestplugin/relay.go:286
↓ 2 callersFunctionreply
(ctx, res)
plugins/tasks/request-redact/plugin.js:534
↓ 2 callersFunctionreplyAnswer
replyAnswer is a non-stream answer in format whose only output is text; nil for a format reply checks do not cover.
relay/requestplugin/relay.go:745
↓ 2 callersFunctionreplyErrorBody
replyErrorBody is an error as the client's format writes it.
relay/requestplugin/reply.go:985
↓ 2 callersMethodreport
report queues the report of a finished response: the events the client got, its usage, its quota and the entries since the last report.
relay/requestplugin/socket.go:650
↓ 2 callersFunctionreportEvents
reportEvents reads an SSE response as its events, data parsed as JSON when it parses; [DONE], comments and events without data are left out. A truncat
relay/requestplugin/report.go:412
↓ 2 callersFunctionreportSystemInstanceWithLog
()
service/system_instance.go:135
↓ 2 callersFunctionrequestBody
(config, input)
plugins/tasks/content-moderation/plugin.js:266
↓ 2 callersFunctionrequestHeaders
(ctx, method, url, bodyText)
plugins/tasks/jimeng/plugin.js:147
↓ 2 callersFunctionrequestHeaders
(ctx)
plugins/tasks/kling/plugin.js:181
↓ 2 callersFunctionrequestOpenAI2Ali
(request dto.GeneralOpenAIRequest, upstreamModelName string)
relay/channel/ali/text.go:12
↓ 2 callersFunctionrequestPaymentAmount
( topupAmount: number, paymentType: string, calculators: PaymentAmountCalculators = defaultPaymentAmount
web/src/features/wallet/hooks/use-payment.ts:62
↓ 2 callersFunctionrequestPluginDryRunExample
(format: string, model: string)
web/src/features/task-plugins/lib/request-plugins.ts:526
↓ 2 callersFunctionrequestPluginDryRunPath
(format: string, model: string)
web/src/features/task-plugins/lib/request-plugins.ts:515
↓ 2 callersFunctionrequestPluginSampleBody
( value: unknown, format: string, image: string | null )
web/src/features/task-plugins/lib/request-plugin-samples.ts:74
↓ 2 callersFunctionrequestPluginSampleHasImage
(value: unknown)
web/src/features/task-plugins/lib/request-plugin-samples.ts:99
↓ 2 callersFunctionrequestPluginSampleTexts
( value: unknown, member = '', found: string[] = [] )
web/src/features/task-plugins/lib/request-plugin-samples.ts:123
↓ 2 callersFunctionrequestPluginSamplesFor
( samples: RequestPluginSample[], language: string )
web/src/features/task-plugins/lib/request-plugin-samples.ts:34
↓ 2 callersFunctionrequestToJSONString
(v any)
relaykit/relayconvert/internal/claude_messages/to_oai_chat_req.go:341
↓ 2 callersFunctionrequireLoginVerificationMethod
(state *model.UserVerificationState, method string)
service/login_verification.go:113
↓ 2 callersFunctionrequireSuccessfulFlowRows
( response: FlowResponse, fallbackMessage: string )
web/src/features/dashboard/lib/flow-selection.ts:33
↓ 2 callersMethodreserve
(targetQuota int, requireAvailableQuota bool)
service/billing_session.go:167
↓ 2 callersFunctionresetUserSubscriptionTx
(tx *gorm.DB, sub *UserSubscription, plan *SubscriptionPlan, now int64, advanceResetTime bool)
model/subscription.go:1030
↓ 2 callersFunctionresolutionFor
(size, model)
plugins/tasks/hailuo/plugin.js:208
↓ 2 callersFunctionresolutionForSize
(size)
plugins/tasks/google/plugin.js:126
↓ 2 callersFunctionresolveAdvanceResetTime
(value *bool)
controller/subscription.go:410
↓ 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:1418
↓ 2 callersFunctionrespPtr
(value T)
relaykit/relayconvert/response_registry_test.go:700
↓ 2 callersFunctionrespondTaskError
respondTaskError 统一输出 Task 错误响应(含 429 限流提示改写)
controller/relay.go:976
↓ 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.
pkg/jsplugin/provider.go:1172
↓ 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 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 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 callersFunctionsameSyncPrice
( left: PricingSyncValues, right: PricingSyncValues )
web/src/features/system-settings/models/upstream-ratio-sync-helpers.ts:82
↓ 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.
pkg/jsplugin/provider_test.go:1153
↓ 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
(onUpdate: () => void)
web/src/features/profile/__tests__/settings.test.tsx:233
↓ 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:58
← previousnext →4,601–4,700 of 15,409, ranked by callers