MCPcopy Create free account

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

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

↓ 1 callersFunctionformatQuotaInputValue
(value: QuotaInputValue)
web/src/features/system-settings/general/quota-settings-section.tsx:78
↓ 1 callersFunctionformatQuotaShort
(quota: number)
web/src/features/wallet/lib/format.ts:41
↓ 1 callersFunctionformatQuotaTotal
(value: number)
web/src/features/dashboard/lib/charts.ts:82
↓ 1 callersFunctionformatRate
(hit: number, total: number)
web/src/features/system-settings/general/channel-affinity/cache-stats-dialog.tsx:28
↓ 1 callersFunctionformatRateLimit
(value: number)
web/src/features/pricing/lib/mock-stats.ts:836
↓ 1 callersFunctionformatRatio
(ratio: number | undefined)
web/src/features/usage-logs/components/dialogs/details-dialog.tsx:122
↓ 1 callersFunctionformatRelativeTime
( timestamp: number, locale?: Intl.LocalesArgument )
web/src/features/channels/lib/channel-utils.ts:415
↓ 1 callersFunctionformatRemainingMinutes
(mins: unknown)
web/src/features/models/lib/deployments-utils.ts:23
↓ 1 callersFunctionformatRequest
(requestBody io.Reader, requestHeader http.Header)
relay/channel/aws/dto.go:35
↓ 1 callersFunctionformatShare
(share: number)
web/src/features/rankings/lib/format.ts:38
↓ 1 callersFunctionformatStatNumber
(value: number, locale: Intl.LocalesArgument)
web/src/features/dashboard/components/models/log-stat-cards.tsx:48
↓ 1 callersFunctionformatTagsArray
(tags: string[])
web/src/features/models/lib/model-form.ts:132
↓ 1 callersFunctionformatTaskTimestamp
(value?: number)
web/src/features/usage-logs/components/dialogs/task-details-dialog.tsx:73
↓ 1 callersFunctionformatTime
(seconds: number)
web/src/features/security/components/access-tokens-card.tsx:69
↓ 1 callersFunctionformatTimeLeftUntil
( value: unknown, t: (key: string) => string )
web/src/features/channels/components/dialogs/codex-usage-dialog.tsx:212
↓ 1 callersFunctionformatTimestamp
(timestamp: number)
web/src/features/wallet/lib/billing.ts:82
↓ 1 callersFunctionformatTimestamp
(timestamp: number)
web/src/features/channels/lib/channel-utils.ts:474
↓ 1 callersFunctionformatTokenHint
(value: string | number)
web/src/features/pricing/components/dynamic-pricing-breakdown.tsx:145
↓ 1 callersFunctionformatTokenVolume
(n: number)
web/src/features/pricing/lib/mock-stats.ts:486
↓ 1 callersFunctionformatUnixSeconds
(unixSeconds: unknown)
web/src/features/channels/components/dialogs/codex-usage-dialog.tsx:173
↓ 1 callersFunctionformatUnixTime
(timestamp: unknown)
web/src/features/channels/components/drawers/channel-mutate-drawer.tsx:378
↓ 1 callersFunctionformatUsageUnit
( unit: BillingUsageSchema[string]['unit'], t: (key: string) => string )
web/src/features/task-plugins/components/usage-schema-table.tsx:48
↓ 1 callersFunctionformatVal
(raw: number)
web/src/features/dashboard/lib/charts.ts:719
↓ 1 callersFunctionformatWaffoAmount
(amount float64, currency string)
controller/topup_waffo.go:79
↓ 1 callersFunctionformattedNumber
(datum: Record<string, unknown>, key: string)
web/src/features/dashboard/lib/flow.ts:1092
↓ 1 callersFunctionfromAttachmentSelectValue
( value: AttachmentSelectValue )
web/src/features/system-settings/auth/passkey-section.tsx:114
↓ 1 callersFunctionfromInputValue
(value: string)
web/src/features/usage-logs/components/compact-date-time-range-picker.tsx:44
↓ 1 callersFunctiongcd
(a, b int)
relay/channel/replicate/adaptor.go:373
↓ 1 callersFunctiongcd
(a, b int)
relay/channel/minimax/image.go:135
↓ 1 callersFunctiongeminiFinishReason
(finishReason string)
relaykit/relayconvert/internal/oai_chat/to_gemini_chat_resp.go:518
↓ 1 callersFunctiongeminiMediaResolutionTokens
geminiMediaResolutionTokens returns the documented per-image cost for a Gemini media resolution. Measured costs run 2-9% lower depending on aspect.
tokenkit/image.go:234
↓ 1 callersFunctiongeminiMediaToChatContent
geminiMediaToChatContent maps Gemini inlineData or fileData onto the Chat content part for its MIME type: PNG, JPEG, WebP, or GIF images inline or by
relaykit/relayconvert/internal/gemini_chat/to_oai_chat_req.go:223
↓ 1 callersFunctiongeminiNativeToolHasConfiguration
(definition Definition)
relaykit/relayconvert/internal/toolconv/encode.go:1518
↓ 1 callersFunctiongeminiPartialArgValue
(partial dto.GeminiPartialArg)
relaykit/relayconvert/internal/gemini_chat/to_oai_chat_resp.go:613
↓ 1 callersFunctiongeminiRelayHandler
(c *gin.Context, info *relaycommon.RelayInfo)
controller/relay.go:63
↓ 1 callersFunctiongeminiRespPtr
(value T)
relaykit/relayconvert/internal/oai_chat/to_gemini_chat_resp_test.go:110
↓ 1 callersFunctiongeminiResponseInlineImageCount
(response *dto.GeminiChatResponse)
relay/channel/gemini/relay-gemini.go:160
↓ 1 callersFunctiongeminiTileImageTokens
geminiTileImageTokens follows the Gemini 2.x rule measured on gemini-2.5-flash: images up to 384px on both sides cost one 258-token tile; larger image
tokenkit/image.go:255
↓ 1 callersFunctiongeminiWebSearchDiagnostics
(index int, search *WebSearch)
relaykit/relayconvert/internal/toolconv/encode.go:1467
↓ 1 callersFunctiongenStripeLink
genStripeLink generates a Stripe Checkout session URL for payment. It creates a new checkout session with the specified parameters and returns the pay
controller/topup_stripe.go:358
↓ 1 callersFunctiongenStripeSubscriptionLink
(referenceId string, customerId string, email string, priceId string)
controller/subscription_payment_stripe.go:112
↓ 1 callersFunctiongenerateAffiliateLink
(affCode: string)
web/src/features/wallet/lib/affiliate.ts:26
↓ 1 callersFunctiongenerateCreemSignature
生成HMAC-SHA256签名
controller/topup_creem.go:30
↓ 1 callersFunctiongenerateMessageID
()
common/email.go:13
↓ 1 callersFunctiongeneratePresetAmounts
(minAmount: number)
web/src/features/wallet/lib/payment.ts:198
↓ 1 callersFunctiongenerateRandomBackupCode
generateRandomBackupCode 生成单个备用码
common/totp.go:65
↓ 1 callersFunctiongenerateRequestID
()
relay/channel/volcengine/tts.go:195
↓ 1 callersFunctiongenerateSignature
generateSignature 生成 webhook 签名
service/webhook.go:28
↓ 1 callersFunctiongenerateStopBlock
(index int)
relaykit/relayconvert/internal/oai_chat/to_claude_messages_resp.go:15
↓ 1 callersFunctiongenerateTaskCondition
(conditions: TaskVisualCondition[])
web/src/features/pricing/lib/task-expr.ts:369
↓ 1 callersFunctiongenerateTaskTierBody
( tier: TaskVisualTier, numberFields: [string, BillingUsageFieldSchema][] )
web/src/features/pricing/lib/task-expr.ts:343
↓ 1 callersFunctiongenerateTaskTierCall
( tier: TaskVisualTier, numberFields: [string, BillingUsageFieldSchema][] )
web/src/features/pricing/lib/task-expr.ts:362
↓ 1 callersFunctiongeneratedToken
(params: Record<string, unknown>)
web/src/features/usage-logs/audit/__tests__/details.test.tsx:735
↓ 1 callersFunctiongenerationSource
(req)
plugins/tasks/xai/plugin.js:303
↓ 1 callersMethodget
(ctx context.Context, client *http.Client, releaseURL string, now time.Time)
service/codex_models.go:33
↓ 1 callersFunctionget2FAStatus
()
web/src/features/security/api.ts:185
↓ 1 callersFunctiongetAACDuration
getAACDuration 解析 AAC (ADTS格式) 文件以获取时长。 使用 gomedia 库来解析 AAC ADTS 帧
common/audio.go:314
↓ 1 callersFunctiongetAIFFDuration
getAIFFDuration 解析 AIFF 文件头以获取时长。
common/audio.go:259
↓ 1 callersFunctiongetAPIVersion
(c *gin.Context, modelName string)
relay/channel/xunfei/relay-xunfei.go:273
↓ 1 callersFunctiongetAboutContent
()
web/src/features/about/api.ts:23
↓ 1 callersFunctiongetAccountTypeBadge
( value: unknown, t: (key: string) => string )
web/src/features/channels/components/dialogs/codex-usage-dialog.tsx:364
↓ 1 callersFunctiongetAdminFlowQuotaData
(startTime int64, endTime int64, username string)
model/usedata_flow.go:57
↓ 1 callersFunctiongetAdvancedCustomManagementRoute
( config: AdvancedCustomConfig, path: string )
web/src/features/channels/lib/advanced-custom.ts:352
↓ 1 callersFunctiongetAdvancedCustomNativeAuth
( incomingPath: string )
web/src/features/channels/lib/advanced-custom.ts:493
↓ 1 callersFunctiongetAdvancedCustomRouteSummaryLabel
( route: AdvancedCustomRoute )
web/src/features/channels/lib/advanced-custom.ts:910
↓ 1 callersFunctiongetAdvancedCustomStats
(value: string | undefined)
web/src/features/channels/lib/advanced-custom.ts:761
↓ 1 callersFunctiongetAdvancedCustomTemplateConfig
( templateKey: string )
web/src/features/channels/lib/advanced-custom.ts:335
↓ 1 callersFunctiongetAdvancedCustomUpstreamPathPlaceholder
( converter: AdvancedCustomConverter, incomingPath = getDefaultAdvancedCustomIncomingPath(converter) )
web/src/features/channels/lib/advanced-custom.ts:442
↓ 1 callersFunctiongetAffiliateCode
()
web/src/features/wallet/api.ts:187
↓ 1 callersFunctiongetAffinityUsageCache
(params: { rule_name: string using_group: string key_hint: string key_fp: string })
web/src/features/system-settings/general/channel-affinity/api.ts:53
↓ 1 callersFunctiongetAlertChildren
(node: BlockquoteNode, kind: AlertKind)
web/src/components/ai-elements/response-renderer-alert.tsx:92
↓ 1 callersFunctiongetAlertKind
(node: BlockquoteNode)
web/src/components/ai-elements/response-renderer-alert.tsx:64
↓ 1 callersFunctiongetAllBillingHistory
( page: number, pageSize: number, keyword?: string )
web/src/features/wallet/api.ts:224
↓ 1 callersFunctiongetAllLogs
(params: GetLogsParams = {})
web/src/features/usage-logs/api.ts:77
↓ 1 callersFunctiongetAllMidjourneyLogs
(params: GetMidjourneyLogsParams)
web/src/features/usage-logs/api.ts:156
↓ 1 callersFunctiongetAllTaskLogs
(params: GetTaskLogsParams)
web/src/features/usage-logs/api.ts:166
↓ 1 callersFunctiongetAndDecode
(ctx context.Context, client *http.Client, url string, dest any)
controller/uptime_kuma.go:38
↓ 1 callersFunctiongetAnnouncementRenderKey
(announcement: AnnouncementItem)
web/src/components/notification-popover.tsx:140
↓ 1 callersFunctiongetApiKey
(id: number)
web/src/features/keys/api.ts:59
↓ 1 callersFunctiongetAppendableChunk
(currentContent: string, chunk: string)
web/src/features/playground/lib/message/message-streaming-utils.ts:73
↓ 1 callersFunctiongetAttachmentActionNotice
(action: string)
web/src/features/playground/lib/input/input-tool-utils.ts:49
↓ 1 callersFunctiongetAuditLogs
( scope: 'all' | 'self', params: AuditFilters )
web/src/features/usage-logs/audit/api.ts:57
↓ 1 callersFunctiongetAvailableGroups
( model: PricingModel, usableGroup: Record<string, { desc: string; ratio: number }> )
web/src/features/pricing/lib/model-helpers.ts:29
↓ 1 callersFunctiongetAvailableReplicas
(params: { hardware_id: string gpu_count: number })
web/src/features/models/api.ts:476
↓ 1 callersFunctiongetAwsErrorStatusCode
getAwsErrorStatusCode extracts HTTP status code from AWS SDK error
relay/channel/aws/relay-aws.go:34
↓ 1 callersFunctiongetAwsRegionPrefix
(awsRegionId string)
relay/channel/aws/relay-aws.go:206
↓ 1 callersFunctiongetBaiduAccessToken
(apiKey string)
relay/channel/baidu/relay-baidu.go:191
↓ 1 callersFunctiongetBaiduAccessTokenHelper
(apiKey string)
relay/channel/baidu/relay-baidu.go:214
↓ 1 callersFunctiongetBalanceVariant
( balance: number )
web/src/features/channels/lib/channel-utils.ts:345
↓ 1 callersFunctiongetBase64ContextCacheKey
getBase64ContextCacheKey 生成 base64 context 缓存的 key 使用 length + MIME + 前 128 字符作为输入,避免对整个 base64 数据做 hash
service/file_service.go:35
↓ 1 callersFunctiongetBillingPreferenceLabel
( preference: string, t: (key: string) => string )
web/src/features/wallet/components/subscription-plans-card.tsx:79
↓ 1 callersFunctiongetBinaryPath
()
electron/main.js:150
↓ 1 callersFunctiongetBoundedColumnSize
( columnId: string, value: unknown, bounds: ColumnSizingBounds )
web/src/components/data-table/hooks/use-data-table.ts:224
↓ 1 callersFunctiongetBucketIndex
( timestamp: number, start: number, end: number, bucketCount: number )
web/src/features/dashboard/components/overview/summary-cards.tsx:44
↓ 1 callersFunctiongetCacheStats
()
web/src/features/system-settings/general/channel-affinity/api.ts:23
↓ 1 callersFunctiongetCachedConnection
()
web/src/features/models/hooks/use-model-deployment-settings.ts:36
↓ 1 callersFunctiongetCachedMarkdown
(parserId: string)
web/src/components/ai-elements/response.tsx:45
↓ 1 callersFunctiongetCandidatePacks
(iconName: string)
web/src/components/react-icon-by-name.tsx:106
↓ 1 callersFunctiongetChannel
(id: number)
web/src/features/channels/api.ts:201
↓ 1 callersFunctiongetChannelBalanceTask
(taskId: string)
web/src/features/channels/api.ts:784
← previousnext →6,601–6,700 of 15,409, ranked by callers