Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/QuantumNous/new-api
/ functions
Functions
15,592 in github.com/QuantumNous/new-api
⨍
Functions
15,592
◇
Types & classes
2,267
↓ 3 callers
Method
ensureBuiltInTools
()
relay/common/tool_usage.go:106
↓ 3 callers
Method
ensureCreated
()
relaykit/relayconvert/internal/oai_chat/to_oai_responses_stream_resp.go:376
↓ 3 callers
Method
ensureMessageStart
(estimatedInputTokens int)
relaykit/relayconvert/internal/oai_responses/to_claude_messages_stream_resp.go:197
↓ 3 callers
Function
epayCallbackPartnerMatches
(client *epay.Client, params map[string]string)
controller/topup.go:160
↓ 3 callers
Function
escapeHtml
(value: string)
web/src/components/ui/markdown.tsx:167
↓ 3 callers
Function
evaluatePasswordStrength
( password: string )
web/src/components/password-strength-utils.ts:151
↓ 3 callers
Function
execCustomToolState
()
relaykit/relayconvert/internal/oai_chat/to_oai_responses_resp_test.go:363
↓ 3 callers
Function
expandResponseConverterSteps
(spec ResponseConverterSpec)
relaykit/relayconvert/response_registry.go:756
↓ 3 callers
Function
extractChannelAffinityValue
(c *gin.Context, src operation_setting.ChannelAffinityKeySource)
service/channel_affinity.go:291
↓ 3 callers
Function
failTaskFromPoll
(ctx context.Context, adaptor TaskPollingAdaptor, task *model.Task, fromStatus model.TaskStatus, reason string
service/task_polling.go:898
↓ 3 callers
Function
fallbackPromptTokens
(info convmeta.Meta)
relaykit/relayconvert/response_registry.go:1251
↓ 3 callers
Function
fetchCodexChannelWhamData
( c *gin.Context, fetch codexWhamFetchFunc, logPrefix string, userMessage string, )
controller/codex_usage.go:55
↓ 3 callers
Method
fetchCount
()
service/task_polling_test.go:127
↓ 3 callers
Function
fetchPluginChangelog
(options: { indexUrl: string plugin: MarketplacePlugin version: string language: string signal: Abor
web/src/features/task-plugins/lib/plugin-changelog.ts:316
↓ 3 callers
Function
fetchPluginIconDataUri
( url: string, options: FetchPluginIconOptions = {} )
web/src/features/task-plugins/lib/plugin-icon-file.ts:113
↓ 3 callers
Function
fetchPluginSourceText
( url: string, fetchImpl: typeof fetch = fetchFromPluginSite )
web/src/features/task-plugins/lib/plugin-url.ts:99
↓ 3 callers
Function
fetchStatus
* 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 callers
Function
fetchTokenKey
( id: number )
web/src/features/keys/api.ts:112
↓ 3 callers
Function
fetchUpstreamModels
( id: number )
web/src/features/channels/api.ts:371
↓ 3 callers
Method
fetchedTaskIDs
()
service/task_polling_test.go:133
↓ 3 callers
Function
fileAttachment
(filename, mime string, data []byte)
plugins/request_plugins_test.go:1144
↓ 3 callers
Function
fileInput
()
web/src/features/task-plugins/__tests__/upload-dialog.test.tsx:67
↓ 3 callers
Method
fillZeroCompletion
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 callers
Function
filterCandidateIDs
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 callers
Function
finalizeTerminalTask
finalizeTerminalTask 终态统一收尾(状态 CAS 赢家调用,恰好一次):采样 + 结算 + 失败兜底退款。
service/task_polling.go:708
↓ 3 callers
Function
findRevokedEntry
( index: MarketplaceIndex | undefined, sourceHash: string | undefined )
web/src/features/task-plugins/lib/marketplace.ts:548
↓ 3 callers
Method
finish
(startxref int)
relay/requestplugin/pdf_test.go:78
↓ 3 callers
Function
finishAccessTokenAudit
(c *gin.Context)
middleware/audit.go:307
↓ 3 callers
Function
finishPluginLogin
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 callers
Function
firstVideo
(operation)
plugins/tasks/vertex-ai/plugin.js:348
↓ 3 callers
Function
flateBytes
(data []byte)
relay/requestplugin/pdf_test.go:122
↓ 3 callers
Function
floatValue
(value any)
pluginkit/provider.go:2113
↓ 3 callers
Function
flowQuotaBaseQuery
(startTime int64, endTime int64)
model/usedata_flow.go:36
↓ 3 callers
Method
flushBlock
(block *responsesClaudeStreamBlock, estimatedInputTokens int)
relaykit/relayconvert/internal/oai_responses/to_claude_messages_stream_resp.go:332
↓ 3 callers
Function
formatChartTime
( timestamp: number, granularity: TimeGranularity = 'day' )
web/src/lib/time.ts:162
↓ 3 callers
Function
formatCreemPrice
( price: number, currency: 'USD' | 'EUR' )
web/src/features/wallet/lib/format.ts:30
↓ 3 callers
Function
formatCurrencyValue
( value: number, options: ResolvedCurrencyFormatOptions, meta: DisplayMeta )
web/src/lib/currency.ts:300
↓ 3 callers
Function
formatGroupDetail
( group: GroupDetailSource, t: (key: string, options?: Record<string, unknown>) => string )
web/src/components/model-group-selector/group-detail.ts:32
↓ 3 callers
Function
formatNumber
(value: number)
web/src/features/dashboard/lib/flow.ts:835
↓ 3 callers
Function
formatPrice
( model: PricingModel, type: PriceType, tokenUnit: TokenUnit, showWithRecharge = false, priceRate =
web/src/features/pricing/lib/price.ts:144
↓ 3 callers
Function
formatResetPeriod
( plan: Partial<SubscriptionPlan>, t: TFunction )
web/src/features/subscriptions/lib/format.ts:47
↓ 3 callers
Function
geminiBillingMetadataFromOpenAIUsage
(usage *dto.Usage)
relaykit/relayconvert/internal/oai_chat/to_gemini_chat_resp.go:549
↓ 3 callers
Function
geminiCachedContentTokenCount
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 callers
Function
geminiDefaultEffort
(model string)
relaykit/relayconvert/reasoning/gemini.go:215
↓ 3 callers
Function
geminiFunctionArguments
(raw string)
relaykit/relayconvert/internal/oai_chat/to_gemini_chat_resp.go:525
↓ 3 callers
Function
geminiNativeWebSearchDiagnostics
(index int, definition Definition, target types.RelayFormat)
relaykit/relayconvert/internal/toolconv/encode.go:1492
↓ 3 callers
Function
geminiQueryAuth
()
web/src/features/channels/lib/advanced-custom.ts:237
↓ 3 callers
Function
geminiToClaudeInfo
()
relay/channel/claude/adaptor_test.go:241
↓ 3 callers
Function
generateExprFromVisualConfig
( config: VisualConfig | null | undefined )
web/src/features/pricing/lib/tier-expr.ts:141
↓ 3 callers
Function
get
(target, property)
web/src/features/errors/__tests__/general-error.test.tsx:41
↓ 3 callers
Function
getAdminPlans
()
web/src/features/subscriptions/api.ts:39
↓ 3 callers
Function
getAdvancedCustomConverterDefaults
( converter: AdvancedCustomConverter, incomingPath: string )
web/src/features/channels/lib/advanced-custom.ts:455
↓ 3 callers
Function
getAdvancedCustomIncomingPathLabel
(value: string)
web/src/features/channels/lib/advanced-custom.ts:559
↓ 3 callers
Function
getAdvancedCustomRouteUpstreamPath
( route: AdvancedCustomRoute )
web/src/features/channels/lib/advanced-custom.ts:912
↓ 3 callers
Function
getAllModels
()
web/src/features/channels/api.ts:815
↓ 3 callers
Function
getApiKeys
( params: GetApiKeysParams = {} )
web/src/features/keys/api.ts:36
↓ 3 callers
Function
getBgColorClass
(color?: string)
web/src/lib/colors.ts:82
↓ 3 callers
Function
getCardExamplePrice
( model: PricingModel, options: DynamicPriceOptions )
web/src/features/pricing/lib/dynamic-price.ts:607
↓ 3 callers
Function
getChannelPluginExtensions
( channelType: number, plugins: TaskPluginOption[], extendPluginKeys: readonly string[] = [] )
web/src/features/channels/lib/channel-plugin-extensions.ts:79
↓ 3 callers
Function
getChannelTypeIcon
(type: number)
web/src/features/channels/lib/channel-utils.ts:47
↓ 3 callers
Function
getChartThemeTokens
(resolvedTheme: string)
web/src/features/pricing/components/model-details-charts.tsx:53
↓ 3 callers
Function
getCodexUsage
( channelId: number )
web/src/features/channels/api.ts:458
↓ 3 callers
Function
getConfiguredGroupRatio
( groupRatio: Record<string, number>, group: string )
web/src/features/pricing/lib/model-helpers.ts:45
↓ 3 callers
Function
getCurrencyFractionDigits
( value: number, options?: CurrencyFormatOptions )
web/src/lib/currency.ts:256
↓ 3 callers
Function
getDashboardChartColors
(domainLength: number)
web/src/features/dashboard/lib/charts.ts:42
↓ 3 callers
Function
getDeployment
(id: string | number)
web/src/features/models/api.ts:389
↓ 3 callers
Function
getDisplayGroupRatio
( model: PricingModel, selectedGroup?: string )
web/src/features/pricing/lib/model-helpers.ts:60
↓ 3 callers
Function
getDuplicateSources
(rows: MappingRow[])
web/src/features/channels/components/model-mapping-editor.tsx:84
↓ 3 callers
Function
getDuration
()
service/notify-limit.go:25
↓ 3 callers
Function
getDynamicDisplayGroupRatio
( model: PricingModel, selectedGroup?: string )
web/src/features/pricing/lib/dynamic-price.ts:191
↓ 3 callers
Function
getDynamicPricingTiers
( model: PricingModel )
web/src/features/pricing/lib/dynamic-price.ts:256
↓ 3 callers
Function
getFractionDigits
( value: number, digitsLarge: number, digitsSmall: number )
web/src/lib/currency.ts:247
↓ 3 callers
Function
getFreshAuthHeaders
()
web/src/lib/auth-session.ts:421
↓ 3 callers
Function
getHeaderValueFromContext
(context map[string]any, headerName string)
relay/common/override.go:1650
↓ 3 callers
Function
getLobeIconNames
()
web/src/lib/lobe-icon.tsx:220
↓ 3 callers
Function
getMarketplaceUpdates
( index: MarketplaceIndex, installed: TaskPluginListItem[] )
web/src/features/task-plugins/lib/marketplace.ts:565
↓ 3 callers
Function
getMidjourneyTask
(t *testing.T, id int)
service/task_billing_test.go:569
↓ 3 callers
Function
getMjRequestPath
(path string)
relay/mjproxy_handler.go:716
↓ 3 callers
Function
getModelFromRequest
getModelFromRequest 从请求中读取模型信息 根据 Content-Type 自动处理: - application/json - application/x-www-form-urlencoded - multipart/form-data
middleware/distributor.go:269
↓ 3 callers
Function
getModelPricing
( names: string[] = [] )
web/src/features/model-pricing/api.ts:129
↓ 3 callers
Function
getNodeKey
(node: ParsedNode, index: number)
web/src/components/ai-elements/response-content.ts:167
↓ 3 callers
Function
getOAuthSessionStorage
( owner: OAuthSessionStorageOwner | null | undefined )
web/src/features/auth/lib/oauth-callback-mode.ts:72
↓ 3 callers
Function
getOptionValue
(options: Array<{ key: string; value: string }> | undefined, defaults: T)
web/src/features/system-settings/hooks/use-system-options.ts:105
↓ 3 callers
Function
getPaymentIcon
( paymentType: string | undefined, className: string = 'h-4 w-4', icon?: string, altName?: string )
web/src/features/wallet/lib/ui.tsx:65
↓ 3 callers
Function
getPriceGroups
( snapshot: ModelPricingSnapshot | undefined, t: Translate )
web/src/features/system-settings/models/price-change-diff.tsx:113
↓ 3 callers
Method
getRuntime
(ctx context.Context)
pluginkit/engine.go:768
↓ 3 callers
Function
getSQLiteColumnType
(t *testing.T, db *gorm.DB, tableName string, columnName string)
controller/token_test.go:226
↓ 3 callers
Function
getSavedGranularity
( override?: TimeGranularity )
web/src/features/dashboard/lib/filters.ts:78
↓ 3 callers
Function
getSelf
()
web/src/lib/api.ts:44
↓ 3 callers
Function
getSetupStatus
()
web/src/features/setup/api.ts:23
↓ 3 callers
Function
getSitePricingCurrency
( config: CurrencyConfig )
web/src/features/model-pricing/currency.ts:34
↓ 3 callers
Function
getSubscriptionPlanCache
()
model/subscription.go:86
↓ 3 callers
Function
getSubscriptionPlanInfoCache
()
model/subscription.go:107
↓ 3 callers
Function
getSubscriptionResetSub
(t *testing.T, id int)
model/subscription_reset_test.go:22
↓ 3 callers
Function
getSuccessRateLevel
(rate: number)
web/src/features/performance-metrics/lib/format.ts:55
↓ 3 callers
Function
getTaskAdaptorForRequest
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 callers
Function
getTaskPluginOptions
()
web/src/features/channels/api.ts:155
↓ 3 callers
Function
getTokenCacheFenceKey
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 callers
Function
getTopUpStatusForPaymentGuardTest
(t *testing.T, tradeNo string)
model/payment_method_guard_test.go:70
↓ 3 callers
Function
getUser
(id: number)
web/src/features/users/api.ts:101
← previous
next →
2,601–2,700 of 15,592, ranked by callers