Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/QuantumNous/new-api
/ functions
Functions
15,409 in github.com/QuantumNous/new-api
⨍
Functions
15,409
◇
Types & classes
2,241
↓ 3 callers
Function
floatValue
(value any)
pkg/jsplugin/provider.go:2129
↓ 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
formatCompactNumber
( value: number | null | undefined, locales?: Intl.LocalesArgument )
web/src/lib/format.ts:58
↓ 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:529
↓ 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:505
↓ 3 callers
Function
geminiNativeWebSearchDiagnostics
(index int, definition Definition, target types.RelayFormat)
relaykit/relayconvert/internal/toolconv/encode.go:1485
↓ 3 callers
Function
geminiQueryAuth
()
web/src/features/channels/lib/advanced-custom.ts:232
↓ 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:450
↓ 3 callers
Function
getAdvancedCustomIncomingPathLabel
(value: string)
web/src/features/channels/lib/advanced-custom.ts:551
↓ 3 callers
Function
getAdvancedCustomRouteUpstreamPath
( route: AdvancedCustomRoute )
web/src/features/channels/lib/advanced-custom.ts:904
↓ 3 callers
Function
getAllModels
()
web/src/features/channels/api.ts:799
↓ 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:599
↓ 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:442
↓ 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:377
↓ 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:184
↓ 3 callers
Function
getDynamicPricingTiers
( model: PricingModel )
web/src/features/pricing/lib/dynamic-price.ts:249
↓ 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:1626
↓ 3 callers
Function
getLobeIconNames
()
web/src/lib/lobe-icon.tsx:220
↓ 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:266
↓ 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
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
getPerfMetricsSummary
( hours = 24, recentModels?: string[] )
web/src/features/performance-metrics/api.ts:23
↓ 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)
pkg/jsplugin/engine.go:770
↓ 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:139
↓ 3 callers
Function
getTieredBillingSummary
( other: LogOtherData | null )
web/src/features/usage-logs/lib/format.ts:345
↓ 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
↓ 3 callers
Function
getUserAuthVersionFloor
(userId int)
model/user_auth_cache.go:108
↓ 3 callers
Function
getUserGroupByIdTx
(tx *gorm.DB, userId int)
model/subscription.go:438
↓ 3 callers
Function
getUserProfile
()
web/src/features/profile/api.ts:43
↓ 3 callers
Function
getVendors
(params?: { p?: number page_size?: number })
web/src/features/models/api.ts:134
↓ 3 callers
Function
getWaffoPancakePayMoney
(amount int64, group string)
controller/topup_waffo_pancake.go:56
↓ 3 callers
Function
goldenInfo
goldenInfo mirrors the host's default converter options (new-api's model_setting defaults at the time the snapshots were recorded) so the golden files
relaykit/relayconvert/golden_test.go:98
↓ 3 callers
Function
h3APIError
(body)
plugins/tasks/hailuo/plugin.js:457
↓ 3 callers
Function
handleModeChange
(mode: string)
web/src/features/system-settings/models/tiered-pricing-editor.tsx:403
↓ 3 callers
Method
hasBillableUsage
hasBillableUsage reports whether this request should incur any charge. Claude reports cache tokens separately from ordinary input and output. A reques
service/text_quota.go:76
↓ 3 callers
Function
hasConversionDiagnosticCode
(diagnostics []types.ConversionDiagnostic, code string)
relaykit/relayconvert/tool_loss_policy_test.go:84
↓ 3 callers
Function
hasHailuoImage
(req, hasInputReferenceFile)
plugins/tasks/hailuo/plugin.js:253
↓ 3 callers
Function
hasLowerImageTier
(profile)
plugins/tasks/doubao/plugin.js:185
↓ 3 callers
Function
hasPricingValue
(value?: string)
web/src/features/system-settings/models/model-pricing-snapshots.ts:64
↓ 3 callers
Function
hasSimpleTaskPricing
(model: PricingModel)
web/src/features/pricing/lib/task-price-display.ts:87
↓ 3 callers
Function
hashRefreshSecret
(secret string)
service/auth_session.go:447
↓ 3 callers
Method
hookConfig
hookConfig is ctx.config: the instance config with each keywords field read as {count, longest}, the number of keywords and the UTF-16 length of the l
pkg/jsplugin/keywords.go:219
↓ 3 callers
Function
hostedItemFailed
(item HostedResponseItem)
relaykit/relayconvert/internal/toolconv/response_artifacts.go:781
↓ 3 callers
Function
hostedKindFromClaudeCall
(blockType string, name string)
relaykit/relayconvert/internal/toolconv/response_artifacts.go:688
↓ 3 callers
Function
hostedKindFromClaudeResult
(blockType string)
relaykit/relayconvert/internal/toolconv/response_artifacts.go:704
↓ 3 callers
Function
hostedKindFromResponsesType
(outputType string)
relaykit/relayconvert/internal/toolconv/response_artifacts.go:719
↓ 3 callers
Function
inferRequestRelayFormat
(request any)
relaykit/relayconvert/request_registry.go:401
↓ 3 callers
Method
ingress
(c *gin.Context, format types.RelayFormat, model string)
relay/requestplugin/relay.go:74
↓ 3 callers
Method
inputSchema
inputSchema is the parameters schema of the function that carries a custom tool: a single required string argument holding the raw input.
relaykit/relayconvert/internal/toolconv/encode.go:262
↓ 3 callers
Function
insertCredentialChannel
(t *testing.T, pluginKey, baseURL, key string, multiKey bool)
relay/channel/task/jsplugin/credential_test.go:152
↓ 3 callers
Function
insertOriginOwnedTask
(t *testing.T, taskID string, userID, channelID int, platform constant.TaskPlatform)
middleware/task_plugin_origin_task_test.go:53
↓ 3 callers
Function
instanceKeywordsOf
instanceKeywordsOf returns the keywords of tctx's instance config for the keywords fields of its plugin.
pkg/jsplugin/keywords.go:174
↓ 3 callers
Function
intPtr
(v int)
relaykit/relayconvert/reasoning/suffix_test.go:190
↓ 3 callers
Function
interactionsURL
(ctx, interactionId)
plugins/tasks/vertex-ai/plugin.js:141
↓ 3 callers
Function
intersectModelNames
(base []string, allowed []string)
controller/channel_upstream_update.go:137
↓ 3 callers
Function
invalidateTokensCache
(tokens []Token)
model/token.go:506
↓ 3 callers
Function
isAdvancedCustomIncomingPathAllowed
( incomingPath: string, converter: AdvancedCustomConverter )
web/src/features/channels/lib/advanced-custom.ts:527
← previous
next →
2,601–2,700 of 15,409, ranked by callers