MCPcopy Create free account

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

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

↓ 3 callersMethodensureBuiltInTools
()
relay/common/tool_usage.go:106
↓ 3 callersMethodensureCreated
()
relaykit/relayconvert/internal/oai_chat/to_oai_responses_stream_resp.go:376
↓ 3 callersMethodensureMessageStart
(estimatedInputTokens int)
relaykit/relayconvert/internal/oai_responses/to_claude_messages_stream_resp.go:197
↓ 3 callersFunctionepayCallbackPartnerMatches
(client *epay.Client, params map[string]string)
controller/topup.go:160
↓ 3 callersFunctionescapeHtml
(value: string)
web/src/components/ui/markdown.tsx:167
↓ 3 callersFunctionevaluatePasswordStrength
( password: string )
web/src/components/password-strength-utils.ts:151
↓ 3 callersFunctionexecCustomToolState
()
relaykit/relayconvert/internal/oai_chat/to_oai_responses_resp_test.go:363
↓ 3 callersFunctionexpandResponseConverterSteps
(spec ResponseConverterSpec)
relaykit/relayconvert/response_registry.go:756
↓ 3 callersFunctionextractChannelAffinityValue
(c *gin.Context, src operation_setting.ChannelAffinityKeySource)
service/channel_affinity.go:291
↓ 3 callersFunctionfailTaskFromPoll
(ctx context.Context, adaptor TaskPollingAdaptor, task *model.Task, fromStatus model.TaskStatus, reason string
service/task_polling.go:898
↓ 3 callersFunctionfallbackPromptTokens
(info convmeta.Meta)
relaykit/relayconvert/response_registry.go:1251
↓ 3 callersFunctionfetchCodexChannelWhamData
( c *gin.Context, fetch codexWhamFetchFunc, logPrefix string, userMessage string, )
controller/codex_usage.go:55
↓ 3 callersMethodfetchCount
()
service/task_polling_test.go:127
↓ 3 callersFunctionfetchPluginChangelog
(options: { indexUrl: string plugin: MarketplacePlugin version: string language: string signal: Abor
web/src/features/task-plugins/lib/plugin-changelog.ts:316
↓ 3 callersFunctionfetchPluginIconDataUri
( url: string, options: FetchPluginIconOptions = {} )
web/src/features/task-plugins/lib/plugin-icon-file.ts:113
↓ 3 callersFunctionfetchPluginSourceText
( url: string, fetchImpl: typeof fetch = fetchFromPluginSite )
web/src/features/task-plugins/lib/plugin-url.ts:99
↓ 3 callersFunctionfetchStatus
* The single `/api/status` request. * * Owns both side effects of a successful read — syncing the system-config store * and writing the localStorag
web/src/lib/status-query.ts:134
↓ 3 callersFunctionfetchTokenKey
( id: number )
web/src/features/keys/api.ts:112
↓ 3 callersFunctionfetchUpstreamModels
( id: number )
web/src/features/channels/api.ts:371
↓ 3 callersMethodfetchedTaskIDs
()
service/task_polling_test.go:133
↓ 3 callersFunctionfileAttachment
(filename, mime string, data []byte)
plugins/request_plugins_test.go:1144
↓ 3 callersFunctionfileInput
()
web/src/features/task-plugins/__tests__/upload-dialog.test.tsx:67
↓ 3 callersMethodfillZeroCompletion
fillZeroCompletion uses the inline estimate when usage has no completion tokens, recording the audio part as audio output so tiered expressions price
relay/channel/gemini/relay-gemini.go:247
↓ 3 callersFunctionfilterCandidateIDs
filterCandidateIDs applies filters to a cached candidate id list. Caller must hold channelSyncLock (read lock). The input slice is never mutated. A mi
model/channel_constraint.go:42
↓ 3 callersFunctionfinalizeTerminalTask
finalizeTerminalTask 终态统一收尾(状态 CAS 赢家调用,恰好一次):采样 + 结算 + 失败兜底退款。
service/task_polling.go:708
↓ 3 callersFunctionfindRevokedEntry
( index: MarketplaceIndex | undefined, sourceHash: string | undefined )
web/src/features/task-plugins/lib/marketplace.ts:548
↓ 3 callersMethodfinish
(startxref int)
relay/requestplugin/pdf_test.go:78
↓ 3 callersFunctionfinishAccessTokenAudit
(c *gin.Context)
middleware/audit.go:307
↓ 3 callersFunctionfinishPluginLogin
finishPluginLogin answers a login call; a done step stored a credential, so the channel cache is reloaded and the change is audited.
controller/provider_plugin.go:53
↓ 3 callersFunctionfirstVideo
(operation)
plugins/tasks/vertex-ai/plugin.js:348
↓ 3 callersFunctionflateBytes
(data []byte)
relay/requestplugin/pdf_test.go:122
↓ 3 callersFunctionfloatValue
(value any)
pluginkit/provider.go:2113
↓ 3 callersFunctionflowQuotaBaseQuery
(startTime int64, endTime int64)
model/usedata_flow.go:36
↓ 3 callersMethodflushBlock
(block *responsesClaudeStreamBlock, estimatedInputTokens int)
relaykit/relayconvert/internal/oai_responses/to_claude_messages_stream_resp.go:332
↓ 3 callersFunctionformatChartTime
( timestamp: number, granularity: TimeGranularity = 'day' )
web/src/lib/time.ts:162
↓ 3 callersFunctionformatCreemPrice
( price: number, currency: 'USD' | 'EUR' )
web/src/features/wallet/lib/format.ts:30
↓ 3 callersFunctionformatCurrencyValue
( value: number, options: ResolvedCurrencyFormatOptions, meta: DisplayMeta )
web/src/lib/currency.ts:300
↓ 3 callersFunctionformatGroupDetail
( group: GroupDetailSource, t: (key: string, options?: Record<string, unknown>) => string )
web/src/components/model-group-selector/group-detail.ts:32
↓ 3 callersFunctionformatNumber
(value: number)
web/src/features/dashboard/lib/flow.ts:835
↓ 3 callersFunctionformatPrice
( model: PricingModel, type: PriceType, tokenUnit: TokenUnit, showWithRecharge = false, priceRate =
web/src/features/pricing/lib/price.ts:144
↓ 3 callersFunctionformatResetPeriod
( plan: Partial<SubscriptionPlan>, t: TFunction )
web/src/features/subscriptions/lib/format.ts:47
↓ 3 callersFunctiongeminiBillingMetadataFromOpenAIUsage
(usage *dto.Usage)
relaykit/relayconvert/internal/oai_chat/to_gemini_chat_resp.go:549
↓ 3 callersFunctiongeminiCachedContentTokenCount
geminiCachedContentTokenCount returns the cache-read tokens included in the prompt count. Chat usage carries them in PromptTokensDetails; stream state
relaykit/relayconvert/internal/oai_chat/to_gemini_chat_resp.go:512
↓ 3 callersFunctiongeminiDefaultEffort
(model string)
relaykit/relayconvert/reasoning/gemini.go:215
↓ 3 callersFunctiongeminiFunctionArguments
(raw string)
relaykit/relayconvert/internal/oai_chat/to_gemini_chat_resp.go:525
↓ 3 callersFunctiongeminiNativeWebSearchDiagnostics
(index int, definition Definition, target types.RelayFormat)
relaykit/relayconvert/internal/toolconv/encode.go:1492
↓ 3 callersFunctiongeminiQueryAuth
()
web/src/features/channels/lib/advanced-custom.ts:237
↓ 3 callersFunctiongeminiToClaudeInfo
()
relay/channel/claude/adaptor_test.go:241
↓ 3 callersFunctiongenerateExprFromVisualConfig
( config: VisualConfig | null | undefined )
web/src/features/pricing/lib/tier-expr.ts:141
↓ 3 callersFunctionget
(target, property)
web/src/features/errors/__tests__/general-error.test.tsx:41
↓ 3 callersFunctiongetAdminPlans
()
web/src/features/subscriptions/api.ts:39
↓ 3 callersFunctiongetAdvancedCustomConverterDefaults
( converter: AdvancedCustomConverter, incomingPath: string )
web/src/features/channels/lib/advanced-custom.ts:455
↓ 3 callersFunctiongetAdvancedCustomIncomingPathLabel
(value: string)
web/src/features/channels/lib/advanced-custom.ts:559
↓ 3 callersFunctiongetAdvancedCustomRouteUpstreamPath
( route: AdvancedCustomRoute )
web/src/features/channels/lib/advanced-custom.ts:912
↓ 3 callersFunctiongetAllModels
()
web/src/features/channels/api.ts:815
↓ 3 callersFunctiongetApiKeys
( params: GetApiKeysParams = {} )
web/src/features/keys/api.ts:36
↓ 3 callersFunctiongetBgColorClass
(color?: string)
web/src/lib/colors.ts:82
↓ 3 callersFunctiongetCardExamplePrice
( model: PricingModel, options: DynamicPriceOptions )
web/src/features/pricing/lib/dynamic-price.ts:607
↓ 3 callersFunctiongetChannelPluginExtensions
( channelType: number, plugins: TaskPluginOption[], extendPluginKeys: readonly string[] = [] )
web/src/features/channels/lib/channel-plugin-extensions.ts:79
↓ 3 callersFunctiongetChannelTypeIcon
(type: number)
web/src/features/channels/lib/channel-utils.ts:47
↓ 3 callersFunctiongetChartThemeTokens
(resolvedTheme: string)
web/src/features/pricing/components/model-details-charts.tsx:53
↓ 3 callersFunctiongetCodexUsage
( channelId: number )
web/src/features/channels/api.ts:458
↓ 3 callersFunctiongetConfiguredGroupRatio
( groupRatio: Record<string, number>, group: string )
web/src/features/pricing/lib/model-helpers.ts:45
↓ 3 callersFunctiongetCurrencyFractionDigits
( value: number, options?: CurrencyFormatOptions )
web/src/lib/currency.ts:256
↓ 3 callersFunctiongetDashboardChartColors
(domainLength: number)
web/src/features/dashboard/lib/charts.ts:42
↓ 3 callersFunctiongetDeployment
(id: string | number)
web/src/features/models/api.ts:389
↓ 3 callersFunctiongetDisplayGroupRatio
( model: PricingModel, selectedGroup?: string )
web/src/features/pricing/lib/model-helpers.ts:60
↓ 3 callersFunctiongetDuplicateSources
(rows: MappingRow[])
web/src/features/channels/components/model-mapping-editor.tsx:84
↓ 3 callersFunctiongetDuration
()
service/notify-limit.go:25
↓ 3 callersFunctiongetDynamicDisplayGroupRatio
( model: PricingModel, selectedGroup?: string )
web/src/features/pricing/lib/dynamic-price.ts:191
↓ 3 callersFunctiongetDynamicPricingTiers
( model: PricingModel )
web/src/features/pricing/lib/dynamic-price.ts:256
↓ 3 callersFunctiongetFractionDigits
( value: number, digitsLarge: number, digitsSmall: number )
web/src/lib/currency.ts:247
↓ 3 callersFunctiongetFreshAuthHeaders
()
web/src/lib/auth-session.ts:421
↓ 3 callersFunctiongetHeaderValueFromContext
(context map[string]any, headerName string)
relay/common/override.go:1650
↓ 3 callersFunctiongetLobeIconNames
()
web/src/lib/lobe-icon.tsx:220
↓ 3 callersFunctiongetMarketplaceUpdates
( index: MarketplaceIndex, installed: TaskPluginListItem[] )
web/src/features/task-plugins/lib/marketplace.ts:565
↓ 3 callersFunctiongetMidjourneyTask
(t *testing.T, id int)
service/task_billing_test.go:569
↓ 3 callersFunctiongetMjRequestPath
(path string)
relay/mjproxy_handler.go:716
↓ 3 callersFunctiongetModelFromRequest
getModelFromRequest 从请求中读取模型信息 根据 Content-Type 自动处理: - application/json - application/x-www-form-urlencoded - multipart/form-data
middleware/distributor.go:269
↓ 3 callersFunctiongetModelPricing
( names: string[] = [] )
web/src/features/model-pricing/api.ts:129
↓ 3 callersFunctiongetNodeKey
(node: ParsedNode, index: number)
web/src/components/ai-elements/response-content.ts:167
↓ 3 callersFunctiongetOAuthSessionStorage
( owner: OAuthSessionStorageOwner | null | undefined )
web/src/features/auth/lib/oauth-callback-mode.ts:72
↓ 3 callersFunctiongetOptionValue
(options: Array<{ key: string; value: string }> | undefined, defaults: T)
web/src/features/system-settings/hooks/use-system-options.ts:105
↓ 3 callersFunctiongetPaymentIcon
( paymentType: string | undefined, className: string = 'h-4 w-4', icon?: string, altName?: string )
web/src/features/wallet/lib/ui.tsx:65
↓ 3 callersFunctiongetPriceGroups
( snapshot: ModelPricingSnapshot | undefined, t: Translate )
web/src/features/system-settings/models/price-change-diff.tsx:113
↓ 3 callersMethodgetRuntime
(ctx context.Context)
pluginkit/engine.go:768
↓ 3 callersFunctiongetSQLiteColumnType
(t *testing.T, db *gorm.DB, tableName string, columnName string)
controller/token_test.go:226
↓ 3 callersFunctiongetSavedGranularity
( override?: TimeGranularity )
web/src/features/dashboard/lib/filters.ts:78
↓ 3 callersFunctiongetSelf
()
web/src/lib/api.ts:44
↓ 3 callersFunctiongetSetupStatus
()
web/src/features/setup/api.ts:23
↓ 3 callersFunctiongetSitePricingCurrency
( config: CurrencyConfig )
web/src/features/model-pricing/currency.ts:34
↓ 3 callersFunctiongetSubscriptionPlanCache
()
model/subscription.go:86
↓ 3 callersFunctiongetSubscriptionPlanInfoCache
()
model/subscription.go:107
↓ 3 callersFunctiongetSubscriptionResetSub
(t *testing.T, id int)
model/subscription_reset_test.go:22
↓ 3 callersFunctiongetSuccessRateLevel
(rate: number)
web/src/features/performance-metrics/lib/format.ts:55
↓ 3 callersFunctiongetTaskAdaptorForRequest
getTaskAdaptorForRequest preserves the exact plugin object pinned by the declarative or shared-endpoint router. Legacy task routes are pinned here fro
relay/relay_adaptor.go:202
↓ 3 callersFunctiongetTaskPluginOptions
()
web/src/features/channels/api.ts:155
↓ 3 callersFunctiongetTokenCacheFenceKey
The fence uses the cache key as its hash tag so cacheInitToken's script reads both keys from one slot on sharded Redis.
model/token_cache.go:34
↓ 3 callersFunctiongetTopUpStatusForPaymentGuardTest
(t *testing.T, tradeNo string)
model/payment_method_guard_test.go:70
↓ 3 callersFunctiongetUser
(id: number)
web/src/features/users/api.ts:101
← previousnext →2,601–2,700 of 15,592, ranked by callers