MCPcopy Create free account

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

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

↓ 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:102
↓ 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:177
↓ 2 callersFunctionisTaskPricingTier
(tier: DynamicPricingTier)
web/src/features/pricing/lib/dynamic-price.ts:144
↓ 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:93
↓ 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:504
↓ 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:695
↓ 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:490
↓ 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
pluginkit/v1.d.ts:42
↓ 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:143
↓ 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:401
↓ 2 callersFunctionlistDeployments
(params: { p?: number page_size?: number status?: string })
web/src/features/models/api.ts:361
↓ 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:251
↓ 2 callersFunctionlocalizedTextMetaField
(object map[string]any, name string, maxRunes int)
pluginkit/meta.go:2123
↓ 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:1755
↓ 2 callersFunctionloginStep
(t *testing.T, step string)
pluginkit/provider_test.go:271
↓ 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:569
↓ 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
↓ 2 callersFunctionmantleRequestURL
(info *relaycommon.RelayInfo)
relay/channel/aws/mantle.go:24
↓ 2 callersFunctionmapEncoding
(responseFormat string)
relay/channel/volcengine/tts.go:125
↓ 2 callersFunctionmarkAnnouncementsAsRead
()
web/src/hooks/use-notifications.ts:126
↓ 2 callersMethodmarkHit
()
router/plugin-router.go:36
↓ 2 callersFunctionmarkOAuthPopup
( storage: OAuthModeStorage | null | undefined, provider: string, state: string, intent: 'bind' | 'ver
web/src/features/auth/lib/oauth-callback-mode.ts:86
↓ 2 callersMethodmarkUnchecked
markUnchecked records every instance as unable to read the answer.
relay/requestplugin/reply.go:249
↓ 2 callersFunctionmarketplaceBuiltInVersion
( installed?: TaskPluginListItem )
web/src/features/task-plugins/lib/marketplace.ts:423
↓ 2 callersFunctionmarketplaceErrorMessage
(error: unknown)
web/src/features/task-plugins/lib/marketplace-install.ts:65
↓ 2 callersFunctionmarshalChatAnnotations
(annotations []any)
relaykit/relayconvert/internal/claude_messages/citations.go:53
↓ 2 callersFunctionmarshalGroundingAnnotations
(annotations []any)
relaykit/relayconvert/internal/gemini_chat/grounding.go:319
↓ 2 callersFunctionmaskHostTail
maskHostTail returns the tail parts of a domain/host that should be preserved. It keeps 2 parts for likely country-code TLDs (e.g., co.uk, com.cn), ot
relaykit/relayconvert/kitutil/mask.go:30
↓ 2 callersFunctionmatchAdvancedCustomIncomingPath
(configuredPath string, requestPath string)
relaykit/dto/channel_settings.go:444
↓ 2 callersFunctionmatchAdvancedCustomRouteModelRule
(rule string, model string)
relaykit/dto/channel_settings.go:432
↓ 2 callersFunctionmaxInlineFileBytes
()
relay/channel/task/jsplugin/adaptor.go:391
↓ 2 callersFunctionmaxTokenQuota
()
controller/token.go:47
↓ 2 callersFunctionmaybeResetUserSubscriptionWithPlanTx
(tx *gorm.DB, sub *UserSubscription, plan *SubscriptionPlan, now int64)
model/subscription.go:1279
↓ 2 callersFunctionmediaInput
(value, name)
plugins/tasks/xai/plugin.js:164
↓ 2 callersFunctionmediaRef
(index int)
relay/requestplugin/attachments.go:294
↓ 2 callersFunctionmemoryEmailVerificationRateLimiter
(c *gin.Context)
middleware/email-verification-rate-limit.go:42
↓ 2 callersMethodmergeFinalValue
(block *responsesClaudeStreamBlock, finalValue string, estimatedInputTokens int)
relaykit/relayconvert/internal/oai_responses/to_claude_messages_stream_resp.go:319
↓ 2 callersFunctionmergeGeminiTokenDetails
mergeGeminiTokenDetails overlays per-modality counts the same way as the scalar counts: every stream frame carries a cumulative snapshot, so a modalit
relaykit/dto/usage_merge.go:278
↓ 2 callersFunctionmergeInputTokenDetails
(current *InputTokenDetails, incoming InputTokenDetails)
relaykit/dto/usage_merge.go:299
↓ 2 callersFunctionmergeModelBucket
(modelBuckets map[string]map[int64]counters, modelName string, bucketTs int64, value counters)
pkg/perf_metrics/metrics.go:361
↓ 2 callersFunctionmergeModelMappingPairs
( current: string, pairs: readonly ModelMappingPair[] )
web/src/features/channels/lib/model-mapping-rules.ts:112
↓ 2 callersFunctionmergeToolSurchargeItems
(items []ToolSurchargeItem)
service/text_quota.go:122
↓ 2 callersFunctionmergedHotBuckets
()
pkg/perf_metrics/metrics_test.go:176
↓ 2 callersMethodmessageOutput
(status string)
relaykit/relayconvert/internal/oai_chat/to_oai_responses_stream_resp.go:860
↓ 2 callersFunctionmessageText
(value: unknown)
web/src/lib/server-error-message.ts:144
↓ 2 callersFunctionmetricMean
( metrics: InferenceMetric[], name: string )
web/src/features/channels/lib/inference-status.ts:75
↓ 2 callersFunctionmigrateTokenControllerTestDB
(t *testing.T, db *gorm.DB)
controller/token_test.go:107
↓ 2 callersFunctionminInt
(a int, b int)
service/rankings.go:591
↓ 2 callersFunctionmodelPriceNotConfiguredError
(c *gin.Context, modelName string, userId int)
relay/helper/price.go:28
↓ 2 callersFunctionmodelPricingDisplay
( entry: Pick<ModelPricingEntry, 'model_name' | 'effective' | 'usage_schema'> & Partial< Pick<
web/src/features/model-pricing/pricing.ts:71
↓ 2 callersFunctionmodelRequestSucceeded
(c *gin.Context)
middleware/model-rate-limit.go:167
↓ 2 callersFunctionmodelSquareData
(t *testing.T, handler gin.HandlerFunc, path, userGroup string)
controller/model_list_test.go:176
↓ 2 callersFunctionmodelURL
(ctx, project, location, model, action)
plugins/tasks/vertex-ai/plugin.js:335
↓ 2 callersFunctionmoderate
(config, input)
plugins/tasks/content-moderation/plugin.js:252
↓ 2 callersFunctionmoderationNotice
(data)
plugins/tasks/xai/plugin.js:333
← previousnext →4,301–4,400 of 15,592, ranked by callers