MCPcopy Create free account

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

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

↓ 3 callersFunctionfloatValue
(value any)
pkg/jsplugin/provider.go:2129
↓ 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 callersFunctionformatCompactNumber
( value: number | null | undefined, locales?: Intl.LocalesArgument )
web/src/lib/format.ts:58
↓ 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:529
↓ 3 callersFunctiongeminiDefaultEffort
(model string)
relaykit/relayconvert/reasoning/gemini.go:215
↓ 3 callersFunctiongeminiFunctionArguments
(raw string)
relaykit/relayconvert/internal/oai_chat/to_gemini_chat_resp.go:505
↓ 3 callersFunctiongeminiNativeWebSearchDiagnostics
(index int, definition Definition, target types.RelayFormat)
relaykit/relayconvert/internal/toolconv/encode.go:1485
↓ 3 callersFunctiongeminiQueryAuth
()
web/src/features/channels/lib/advanced-custom.ts:232
↓ 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:450
↓ 3 callersFunctiongetAdvancedCustomIncomingPathLabel
(value: string)
web/src/features/channels/lib/advanced-custom.ts:551
↓ 3 callersFunctiongetAdvancedCustomRouteUpstreamPath
( route: AdvancedCustomRoute )
web/src/features/channels/lib/advanced-custom.ts:904
↓ 3 callersFunctiongetAllModels
()
web/src/features/channels/api.ts:799
↓ 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:599
↓ 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:442
↓ 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:377
↓ 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:184
↓ 3 callersFunctiongetDynamicPricingTiers
( model: PricingModel )
web/src/features/pricing/lib/dynamic-price.ts:249
↓ 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:1626
↓ 3 callersFunctiongetLobeIconNames
()
web/src/lib/lobe-icon.tsx:220
↓ 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:266
↓ 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 callersFunctiongetPaymentIcon
( paymentType: string | undefined, className: string = 'h-4 w-4', icon?: string, altName?: string )
web/src/features/wallet/lib/ui.tsx:65
↓ 3 callersFunctiongetPerfMetricsSummary
( hours = 24, recentModels?: string[] )
web/src/features/performance-metrics/api.ts:23
↓ 3 callersFunctiongetPriceGroups
( snapshot: ModelPricingSnapshot | undefined, t: Translate )
web/src/features/system-settings/models/price-change-diff.tsx:113
↓ 3 callersMethodgetRuntime
(ctx context.Context)
pkg/jsplugin/engine.go:770
↓ 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:139
↓ 3 callersFunctiongetTieredBillingSummary
( other: LogOtherData | null )
web/src/features/usage-logs/lib/format.ts:345
↓ 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
↓ 3 callersFunctiongetUserAuthVersionFloor
(userId int)
model/user_auth_cache.go:108
↓ 3 callersFunctiongetUserGroupByIdTx
(tx *gorm.DB, userId int)
model/subscription.go:438
↓ 3 callersFunctiongetUserProfile
()
web/src/features/profile/api.ts:43
↓ 3 callersFunctiongetVendors
(params?: { p?: number page_size?: number })
web/src/features/models/api.ts:134
↓ 3 callersFunctiongetWaffoPancakePayMoney
(amount int64, group string)
controller/topup_waffo_pancake.go:56
↓ 3 callersFunctiongoldenInfo
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 callersFunctionh3APIError
(body)
plugins/tasks/hailuo/plugin.js:457
↓ 3 callersFunctionhandleModeChange
(mode: string)
web/src/features/system-settings/models/tiered-pricing-editor.tsx:403
↓ 3 callersMethodhasBillableUsage
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 callersFunctionhasConversionDiagnosticCode
(diagnostics []types.ConversionDiagnostic, code string)
relaykit/relayconvert/tool_loss_policy_test.go:84
↓ 3 callersFunctionhasHailuoImage
(req, hasInputReferenceFile)
plugins/tasks/hailuo/plugin.js:253
↓ 3 callersFunctionhasLowerImageTier
(profile)
plugins/tasks/doubao/plugin.js:185
↓ 3 callersFunctionhasPricingValue
(value?: string)
web/src/features/system-settings/models/model-pricing-snapshots.ts:64
↓ 3 callersFunctionhasSimpleTaskPricing
(model: PricingModel)
web/src/features/pricing/lib/task-price-display.ts:87
↓ 3 callersFunctionhashRefreshSecret
(secret string)
service/auth_session.go:447
↓ 3 callersMethodhookConfig
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 callersFunctionhostedItemFailed
(item HostedResponseItem)
relaykit/relayconvert/internal/toolconv/response_artifacts.go:781
↓ 3 callersFunctionhostedKindFromClaudeCall
(blockType string, name string)
relaykit/relayconvert/internal/toolconv/response_artifacts.go:688
↓ 3 callersFunctionhostedKindFromClaudeResult
(blockType string)
relaykit/relayconvert/internal/toolconv/response_artifacts.go:704
↓ 3 callersFunctionhostedKindFromResponsesType
(outputType string)
relaykit/relayconvert/internal/toolconv/response_artifacts.go:719
↓ 3 callersFunctioninferRequestRelayFormat
(request any)
relaykit/relayconvert/request_registry.go:401
↓ 3 callersMethodingress
(c *gin.Context, format types.RelayFormat, model string)
relay/requestplugin/relay.go:74
↓ 3 callersMethodinputSchema
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 callersFunctioninsertCredentialChannel
(t *testing.T, pluginKey, baseURL, key string, multiKey bool)
relay/channel/task/jsplugin/credential_test.go:152
↓ 3 callersFunctioninsertOriginOwnedTask
(t *testing.T, taskID string, userID, channelID int, platform constant.TaskPlatform)
middleware/task_plugin_origin_task_test.go:53
↓ 3 callersFunctioninstanceKeywordsOf
instanceKeywordsOf returns the keywords of tctx's instance config for the keywords fields of its plugin.
pkg/jsplugin/keywords.go:174
↓ 3 callersFunctionintPtr
(v int)
relaykit/relayconvert/reasoning/suffix_test.go:190
↓ 3 callersFunctioninteractionsURL
(ctx, interactionId)
plugins/tasks/vertex-ai/plugin.js:141
↓ 3 callersFunctionintersectModelNames
(base []string, allowed []string)
controller/channel_upstream_update.go:137
↓ 3 callersFunctioninvalidateTokensCache
(tokens []Token)
model/token.go:506
↓ 3 callersFunctionisAdvancedCustomIncomingPathAllowed
( incomingPath: string, converter: AdvancedCustomConverter )
web/src/features/channels/lib/advanced-custom.ts:527
← previousnext →2,601–2,700 of 15,409, ranked by callers