MCPcopy Create free account

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

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

↓ 2 callersFunctioninvalidateUserCache
invalidateUserCache clears user cache
model/user_cache.go:75
↓ 2 callersFunctioninviteUser
(inviterId int)
model/user.go:572
↓ 2 callersMethodipAccessError
(host string, ip net.IP)
common/ssrf_protection.go:265
↓ 2 callersMethodis
(text: string)
web/src/features/pricing/lib/billing-expression/parser.ts:205
↓ 2 callersFunctionisAuditDetailObject
( value: unknown )
web/src/features/usage-logs/audit/lib/audit-details.ts:77
↓ 2 callersFunctionisCanonicalLanguageTag
(tag: string)
web/src/features/task-plugins/lib/marketplace.ts:287
↓ 2 callersFunctionisCatchAllRoute
(route: AdvancedCustomRoute)
web/src/features/channels/components/dialogs/advanced-custom-editor-dialog.tsx:173
↓ 2 callersFunctionisClickHouseDSN
(dsn string)
model/main.go:120
↓ 2 callersMethodisClosed
()
relay/requestplugin/socket.go:450
↓ 2 callersFunctionisCreemTopUpEnabled
()
controller/payment_webhook_availability.go:31
↓ 2 callersFunctionisCreemWebhookEnabled
()
controller/payment_webhook_availability.go:45
↓ 2 callersFunctionisCurrent
()
web/src/features/playground/hooks/use-stream-request.ts:103
↓ 2 callersFunctionisDisabledApiKeyRow
(apiKey: ApiKey)
web/src/features/keys/components/api-keys-table.tsx:74
↓ 2 callersFunctionisDocumentLinkTarget
(href: string)
web/src/features/task-plugins/lib/plugin-document.ts:214
↓ 2 callersFunctionisEpayTopUpEnabled
()
controller/payment_webhook_availability.go:95
↓ 2 callersFunctionisFileRef
(value)
plugins/tasks/alibaba/plugin.js:492
↓ 2 callersFunctionisFixedPriceSettlement
A failed evaluation retains the reservation and its estimated billing unit. Successful evaluations always use the actual branch, including zero prices
service/tiered_settle.go:279
↓ 2 callersFunctionisHTTPURL
(text string)
relay/requestplugin/task_report.go:262
↓ 2 callersFunctionisHeaderPassthroughRuleKey
(key string)
relay/channel/api_request.go:130
↓ 2 callersFunctionisHeaderPassthroughRuleKeyForOverride
(key string)
relay/common/override.go:559
↓ 2 callersFunctionisHtmlBlockNode
(node: ParsedNode)
web/src/components/ai-elements/response-node-guards.ts:96
↓ 2 callersFunctionisImageInput
(value)
plugins/tasks/alibaba/plugin.js:498
↓ 2 callersFunctionisInteraction
(body)
plugins/tasks/vertex-ai/plugin.js:211
↓ 2 callersFunctionisJSONRequest
(c *gin.Context)
relay/channel/openai/adaptor.go:652
↓ 2 callersFunctionisKnownClaudeModel
(modelName string)
relaykit/relayconvert/reasoning/suffix.go:155
↓ 2 callersFunctionisKnownClaudeWebSearchType
(toolType string)
relaykit/relayconvert/internal/toolconv/decode.go:859
↓ 2 callersFunctionisKnownPermission
(permission Permission)
service/authz/registry.go:93
↓ 2 callersFunctionisKnownResource
(resource string)
service/authz/registry.go:75
↓ 2 callersFunctionisLogTypeValue
(value: string)
web/src/features/usage-logs/components/common-logs-filter-bar.tsx:74
↓ 2 callersFunctionisLoginSession
(value: unknown)
web/src/lib/auth-session.ts:104
↓ 2 callersFunctionisMultiKeyChannel
(channel: Channel)
web/src/features/channels/lib/channel-utils.ts:162
↓ 2 callersFunctionisNilContext
(ctx context.Context)
relaykit/relayconvert/internal/convdiag/collector.go:38
↓ 2 callersFunctionisNonTerminalPollStatus
(status model.TaskStatus)
service/task_polling.go:840
↓ 2 callersFunctionisObject
(value: unknown)
web/src/features/task-plugins/components/request-plugin-try-panel.tsx:134
↓ 2 callersFunctionisObjectRecord
( data: unknown )
web/src/features/system-settings/utils/json-validators.ts:19
↓ 2 callersFunctionisOpenAIResponsesWebSearchType
(toolType string)
relaykit/relayconvert/internal/toolconv/decode.go:846
↓ 2 callersFunctionisOperationBlank
(operation: ParamOverrideOperation)
web/src/features/channels/components/dialogs/param-override-editor-dialog.tsx:558
↓ 2 callersFunctionisOtherTooltipKey
(key: string)
web/src/features/dashboard/lib/charts.ts:85
↓ 2 callersFunctionisPDFDelimiter
(char byte)
relay/requestplugin/pdf.go:566
↓ 2 callersFunctionisPerCallBilling
(modelPrice?: number)
web/src/features/usage-logs/lib/utils.ts:73
↓ 2 callersFunctionisPluginLoginPolling
(step: PluginLoginStep | null)
web/src/features/channels/lib/plugin-login.ts:173
↓ 2 callersFunctionisPositiveFiniteNumber
(value: unknown)
web/src/features/usage-logs/lib/format.ts:98
↓ 2 callersFunctionisPrivateIP
isPrivateIP 检查IP是否为私有/保留/特殊用途地址
common/ssrf_protection.go:98
↓ 2 callersFunctionisRecord
(value: unknown)
web/src/features/usage-logs/lib/task-artifacts.ts:52
↓ 2 callersFunctionisRecord
(value: unknown)
web/src/features/channels/lib/ollama-utils.ts:38
↓ 2 callersFunctionisResponsesEventStreamContentType
(contentType string)
relay/chat_completions_via_responses.go:218
↓ 2 callersFunctionisSankeyLinkDatum
(datum: Record<string, unknown>)
web/src/features/dashboard/lib/flow.ts:1062
↓ 2 callersFunctionisStaleFactoryOverride
(item: TaskPluginListItem)
web/src/features/task-plugins/lib/marketplace.ts:431
↓ 2 callersFunctionisStripeTopUpEnabled
()
controller/payment_webhook_availability.go:14
↓ 2 callersFunctionisStripeWebhookEnabled
()
controller/payment_webhook_availability.go:27
↓ 2 callersFunctionisTaskBreakdownTier
(tier: BreakdownTier)
web/src/features/pricing/components/dynamic-pricing-breakdown.tsx:171
↓ 2 callersFunctionisTaskPricingTier
(tier: DynamicPricingTier)
web/src/features/pricing/lib/dynamic-price.ts:137
↓ 2 callersFunctionisTimeGranularity
(value: unknown)
web/src/features/dashboard/lib/filters.ts:36
↓ 2 callersFunctionisTimeValueInRange
(timeFunc: TimeFunc, text: string)
web/src/features/pricing/lib/billing-expr.ts:394
↓ 2 callersFunctionisTimestampExpired
(timestamp: number)
web/src/features/redemption-codes/lib/utils.ts:28
↓ 2 callersFunctionisUsageLogsSectionId
(s: string)
web/src/features/usage-logs/section-registry.tsx:59
↓ 2 callersFunctionisValidToolPrice
(price float64)
setting/operation_setting/tools.go:147
↓ 2 callersFunctionisViolationFeeLog
(other: LogOtherData | null)
web/src/features/usage-logs/lib/format.ts:89
↓ 2 callersFunctionisWaffoPancakeWebhookEnabled
()
controller/payment_webhook_availability.go:91
↓ 2 callersFunctionisWaffoTopUpEnabled
()
controller/payment_webhook_availability.go:49
↓ 2 callersFunctionisWaffoWebhookEnabled
()
controller/payment_webhook_availability.go:72
↓ 2 callersFunctionisZeroDraft
(value: string)
web/src/features/system-settings/models/draft-number-input.tsx:44
↓ 2 callersFunctionissueAccessTokenGenerateProof
(t *testing.T, identity service.AuthIdentity, expiresAt int64, scopes ...string)
controller/access_token_audit_test.go:135
↓ 2 callersFunctionjoinBaseURLAndUpstreamPath
(baseURL string, upstreamPath string)
relay/channel/advancedcustom/adaptor.go:493
↓ 2 callersFunctionjoinPaths
joinPaths matches gin's route path joining, which keeps a trailing slash from the relative path, so declared keys equal c.FullPath().
router/channel-router.go:29
↓ 2 callersFunctionjsonBodyBoolFlags
(c *gin.Context)
middleware/task_plugin.go:698
↓ 2 callersFunctionkeepAliveWriter
keepAliveWriter 返回 c.Writer 链上的请求保活,包括被其他 writer(如请求插件的回复检查)包裹的情况。
relay/helper/common.go:118
↓ 2 callersFunctionkeyAddress
* The address under /{key} at which the gateway also serves a declared route, * which always reaches this plugin. A route whose first segment is the
web/src/features/task-plugins/components/plugin-endpoints.tsx:87
↓ 2 callersMethodkeyForEvent
(event *dto.ResponsesStreamResponse)
relaykit/relayconvert/internal/oai_responses/to_oai_chat_stream_resp.go:623
↓ 2 callersFunctionkeysOf
(schema map[string]jsplugin.UsageFieldSchema)
plugins/doubao_responses_test.go:480
↓ 2 callersMethodkeywords
Stage hooks, reply and report: the distinct keywords of the instance config property field (format "keywords") that text contains, as the list spells
docs/plugin-api/v1.d.ts:37
↓ 2 callersFunctionkling4CompletedUnits
(ctx, body)
plugins/tasks/kling/plugin.js:410
↓ 2 callersFunctionklingFactoryVersion
klingFactoryVersion returns the version declared in the embedded kling factory manifest so tests do not hardcode a value that moves with every plugin
controller/task_plugin_test.go:141
↓ 2 callersFunctionknownPollStatus
(status model.TaskStatus)
service/task_polling.go:831
↓ 2 callersFunctionlastModelPathSegment
(modelName string)
relaykit/relayconvert/reasoning/suffix.go:213
↓ 2 callersFunctionlegacyGitHubBindingAudits
legacyGitHubBindingAudits returns the account binding audit rows in creation order together with their encoded parameters.
controller/auth_flow_test.go:872
↓ 2 callersFunctionlegacyGitHubOAuthLogin
legacyGitHubOAuthLogin registers provider for one test and completes an OAuth login callback with it.
controller/auth_flow_test.go:856
↓ 2 callersFunctionlegacyInputPricePerMillion
(ratio float64)
model/model_pricing_conversion.go:37
↓ 2 callersFunctionlistDeploymentContainers
( deploymentId: string | number )
web/src/features/models/api.ts:389
↓ 2 callersFunctionlistDeployments
(params: { p?: number page_size?: number status?: string })
web/src/features/models/api.ts:349
↓ 2 callersFunctionlistModelsMeta
(c *gin.Context, keyword, vendor string)
controller/model_meta.go:25
↓ 2 callersFunctionlistSystemTasks
( limit = 20, filters: SystemTaskFilters = {} )
web/src/features/system-settings/api.ts:97
↓ 2 callersFunctionlistWaffoPancakeSubscriptionProductOptions
()
web/src/features/subscriptions/api.ts:182
↓ 2 callersFunctionloadParameterEnabled
()
web/src/features/playground/lib/storage/storage.ts:327
↓ 2 callersFunctionloadPluginLoginFlow
loadPluginLoginFlow reads an unconsumed, unexpired flow of the same administrator and session; pluginKey, when set, must be its plugin.
service/provider_plugin_login.go:332
↓ 2 callersFunctionloadedTaskPluginParts
loadedTaskPluginParts reads the parts of a plugin the runtime holds from its manifest and its exports.
controller/task_plugin.go:250
↓ 2 callersFunctionlocalizedTextMetaField
(object map[string]any, name string, maxRunes int)
pkg/jsplugin/registry.go:2521
↓ 2 callersFunctionlocateRenderedGeminiParts
(content dto.GeminiChatContent, rendered string)
relaykit/relayconvert/internal/gemini_chat/grounding.go:335
↓ 2 callersFunctionlockEmailBindingWithTx
(tx *gorm.DB, identity AuthSessionIdentity, token string)
model/email_binding.go:152
↓ 2 callersFunctionlockMetadataMutation
(tx *gorm.DB)
model/model_metadata_sync.go:34
↓ 2 callersFunctionlockNormalizedEmail
(tx *gorm.DB, email string)
model/user.go:378
↓ 2 callersFunctionlockPasskeyDomainSettings
lockPasskeyDomainSettings serializes trust changes and credential writes across nodes. Callers also hold passkeyOptionMutex for SQLite and local cache
model/passkey_option.go:53
↓ 2 callersFunctionlogCleanupProgress
(processed int64, total int64)
service/system_task.go:446
↓ 2 callersFunctionlogTaskPluginChannelDecision
(c *gin.Context, channel *model.Channel, modelName, event, reason string)
middleware/task_plugin.go:1762
↓ 2 callersFunctionloginStep
(t *testing.T, step string)
pkg/jsplugin/provider_test.go:268
↓ 2 callersFunctionlogout
()
web/src/features/auth/api.ts:132
↓ 2 callersFunctionlookupAccessToken
lookupAccessToken resolves raw once per request, so the access audit and authentication share one database lookup.
middleware/auth.go:249
↓ 2 callersFunctionlookupRequestRoute
(from types.RelayFormat, to types.RelayFormat)
relaykit/relayconvert/request_registry.go:370
↓ 2 callersFunctionlookupTaskPluginEndpoint
(generation *pluginruntime.RoutingGeneration, method, path, modelName string)
middleware/task_plugin.go:572
↓ 2 callersFunctionmanagementAdaptor
managementAdaptor is an adaptor for the management requests of the channel described by info, outside any relay request.
relay/channel/providerplugin/management.go:35
← previousnext →4,201–4,300 of 15,409, ranked by callers