MCPcopy Create free account

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

Functions9,195 in github.com/QuantumNous/new-api

↓ 2 callersFunctioncreateWindow
()
electron/main.js:388
↓ 2 callersFunctiondecodeBillingExprB64
(exprB64: string | undefined)
web/src/features/usage-logs/lib/format.ts:240
↓ 2 callersFunctiondecodeJWTClaims
(token string)
service/codex_oauth.go:156
↓ 2 callersFunctiondecodeListModelsPayload
(t *testing.T, recorder *httptest.ResponseRecorder)
controller/model_list_test.go:144
↓ 2 callersFunctiondecodeListModelsResponse
(t *testing.T, recorder *httptest.ResponseRecorder)
controller/model_list_test.go:155
↓ 2 callersFunctiondecodeSystemTaskJSONString
(data string, v any)
model/system_task.go:448
↓ 2 callersFunctiondecodeToolPricesJSON
(value string, ignoreInvalidEntries bool)
setting/operation_setting/tools.go:89
↓ 2 callersFunctiondecodeUserModelsResponse
(t *testing.T, recorder *httptest.ResponseRecorder)
controller/model_list_test.go:174
↓ 2 callersFunctiondeleteHeaderOverrideInContext
(context map[string]interface{}, headerName string)
relay/common/override.go:1264
↓ 2 callersFunctiondeliver
(value: unknown)
web/src/lib/auth-session-sync.ts:85
↓ 2 callersFunctiondetectQuickRangeDays
( filters: DashboardFilters | undefined )
web/src/features/dashboard/components/models/models-filter-dialog.tsx:75
↓ 2 callersFunctiondispatchSelectedPayment
( paymentMethod: PaymentMethod, topupAmount: number, waffoMethodIndex: number | null, processors: Paym
web/src/features/wallet/lib/payment.ts:102
↓ 2 callersFunctiondoAwsClientRequest
(c *gin.Context, info *relaycommon.RelayInfo, a *Adaptor, requestBody io.Reader)
relay/channel/aws/relay-aws.go:91
↓ 2 callersFunctiondoRequest
(req *http.Request, info *relaycommon.RelayInfo)
relay/channel/coze/relay-coze.go:281
↓ 2 callersMethoddoneDeltaEvents
()
service/relayconvert/internal/oai_chat/to_oai_responses_stream_resp.go:244
↓ 2 callersFunctionencode
(writer io.Writer, event CustomEvent)
common/custom-event.go:60
↓ 2 callersFunctionensureEmailAvailableWithTx
(tx *gorm.DB, email string, excludeUserID int)
model/user.go:572
↓ 2 callersFunctionensureLogRequestId
(log *Log)
model/log.go:95
↓ 2 callersFunctionensureSubscriptionPlanTableSQLite
()
model/main.go:510
↓ 2 callersFunctionequalStringPtr
equalStringPtr 比较两个 *string 是否相等(均为 nil 视为相等)。
controller/channel.go:1182
↓ 2 callersFunctionestimatePrice
(params: { location_ids: Array<string | number> hardware_id: string | number gpus_per_container: number
web/src/features/models/api.ts:489
↓ 2 callersFunctionexecuteLogout
( runtime: LogoutRuntime, allowMismatchRecovery = true )
web/src/features/auth/api.ts:71
↓ 2 callersFunctionexecuteRequestSpec
(c *gin.Context, info *relaycommon.RelayInfo, from types.RelayFormat, target types.RelayFormat, request any, s
service/relayconvert/request_registry.go:230
↓ 2 callersFunctionexecuteRequestSteps
(c *gin.Context, info *relaycommon.RelayInfo, from types.RelayFormat, target types.RelayFormat, request any, c
service/relayconvert/request_registry.go:238
↓ 2 callersFunctionexecuteResponseSpec
(c *gin.Context, info *relaycommon.RelayInfo, from types.RelayFormat, target types.RelayFormat, response any,
service/relayconvert/response_registry.go:411
↓ 2 callersFunctionexecuteResponseStreamSteps
(c *gin.Context, info *relaycommon.RelayInfo, state *ResponseStreamState, values []any, start int)
service/relayconvert/response_registry.go:534
↓ 2 callersFunctionexplicitSubjectEffect
(e *casbin.SyncedEnforcer, subject string, permission Permission)
service/authz/resolver.go:58
↓ 2 callersFunctionextractChannelAffinityValue
(c *gin.Context, src operation_setting.ChannelAffinityKeySource)
service/channel_affinity.go:289
↓ 2 callersFunctionextractErrorPosition
( error: unknown, jsonString: string )
web/src/features/system-settings/models/utils.ts:60
↓ 2 callersFunctionextractGeminiVideoURLFromMap
(payload map[string]any)
controller/video_proxy_gemini.go:88
↓ 2 callersFunctionextractModelFromOperationName
(name string)
relay/channel/task/vertex/adaptor.go:393
↓ 2 callersFunctionextractRedirectModels
(modelMapping: string)
web/src/features/channels/lib/model-mapping-validation.ts:77
↓ 2 callersFunctionextractVertexVideoURLFromPayload
(body []byte)
controller/video_proxy_gemini.go:234
↓ 2 callersFunctionfallbackPromptTokens
(info *relaycommon.RelayInfo)
service/relayconvert/response_registry.go:976
↓ 2 callersMethodfetchCount
()
service/task_polling_test.go:120
↓ 2 callersFunctionfetchJSON
(ctx context.Context, url string, out *upstreamEnvelope[T])
controller/model_sync.go:133
↓ 2 callersFunctionfetchLogStats
( endpoint: string, params: T, isAdmin: boolean )
web/src/features/usage-logs/api.ts:56
↓ 2 callersFunctionfetchUpstreamModels
( id: number )
web/src/features/channels/api.ts:240
↓ 2 callersFunctionfillFlowChannelNames
(rows []*FlowQuotaData)
model/usedata_flow.go:132
↓ 2 callersFunctionfillFlowTokenNames
(rows []*FlowQuotaData)
model/usedata_flow.go:94
↓ 2 callersFunctionfilterRowsByNodes
( rows: FlowQuotaDataItem[], selectedNodes: readonly FlowNodeFilter[] | undefined, stages: FlowNodeKind[
web/src/features/dashboard/lib/flow.ts:388
↓ 2 callersMethodfinalize
(response *dto.OpenAIResponsesResponse)
service/relayconvert/internal/oai_responses/to_oai_chat_stream_resp.go:434
↓ 2 callersMethodfindToolForEvent
(event *dto.ResponsesStreamResponse)
service/relayconvert/internal/oai_responses/to_oai_chat_stream_resp.go:322
↓ 2 callersMethodfindToolIndex
(event *dto.ResponsesStreamResponse)
service/relayconvert/internal/oai_responses/to_oai_chat_stream_resp.go:701
↓ 2 callersMethodfinishInsert
(inviterId int)
model/user.go:617
↓ 2 callersFunctionfirstTaskImage
(req relaycommon.TaskSubmitReq)
relay/channel/task/ali/adaptor.go:277
↓ 2 callersFunctionflattenValues
( values: T, parentKey?: string, result: Record<string, unknown> = {} )
web/src/features/system-settings/hooks/use-settings-form.ts:38
↓ 2 callersFunctionflowDisplayState
(options: { isLoading: boolean isError: boolean linkCount: number themeReady: boolean })
web/src/features/dashboard/lib/flow-selection.ts:42
↓ 2 callersFunctionflowNodeFilterKey
(filter: FlowNodeFilter)
web/src/features/dashboard/components/flow/flow-charts.tsx:221
↓ 2 callersFunctionflowSankeyDatumValue
(datum: unknown, key: string)
web/src/features/dashboard/lib/flow.ts:1053
↓ 2 callersFunctionformatBytes
(bytes: number, decimals = 2)
web/src/features/system-settings/maintenance/log-settings-section.tsx:102
↓ 2 callersFunctionformatCompactNumber
(value: number)
web/src/features/pricing/components/model-perf-badge.tsx:36
↓ 2 callersFunctionformatCurrency
(amount: number | string)
web/src/features/wallet/lib/format.ts:53
↓ 2 callersFunctionformatDuration
( submitTime?: number, finishTime?: number, unit: 'seconds' | 'milliseconds' = 'milliseconds' )
web/src/features/usage-logs/lib/format.ts:349
↓ 2 callersFunctionformatDuration
( plan: Partial<SubscriptionPlan>, t: TFunction )
web/src/features/subscriptions/lib/format.ts:25
↓ 2 callersFunctionformatDurationSeconds
( seconds: unknown, t: (key: string) => string )
web/src/features/channels/components/dialogs/codex-usage-dialog.tsx:188
↓ 2 callersFunctionformatFixedPrice
( model: PricingModel, group: string, showWithRecharge = false, priceRate = 1, usdExchangeRate = 1,
web/src/features/pricing/lib/price.ts:213
↓ 2 callersFunctionformatGroupPrice
( model: PricingModel, group: string, type: PriceType, tokenUnit: TokenUnit, showWithRecharge = fals
web/src/features/pricing/lib/price.ts:178
↓ 2 callersFunctionformatGroups
(groups: string[])
web/src/features/channels/lib/channel-form.ts:854
↓ 2 callersFunctionformatJsonDraft
(value: string)
web/src/components/json-code-editor/json-code-editor-utils.ts:70
↓ 2 callersFunctionformatJsonForEditor
(value: string, fallback = '[]')
web/src/features/system-settings/content/utils.ts:19
↓ 2 callersFunctionformatNotifyType
(channelId int, status int)
service/channel.go:14
↓ 2 callersFunctionformatNumberWithSuffix
( value: number, digitsLarge: number, digitsSmall: number, abbreviate: boolean )
web/src/lib/currency.ts:252
↓ 2 callersFunctionformatPrice
( model: PricingModel, type: PriceType, tokenUnit: TokenUnit, showWithRecharge = false, priceRate =
web/src/features/pricing/lib/price.ts:144
↓ 2 callersFunctionformatQuotaValue
(value: number)
web/src/features/dashboard/lib/charts.ts:81
↓ 2 callersFunctionformatRatioCompact
(ratio: number | undefined)
web/src/features/usage-logs/components/columns/common-logs-columns.tsx:72
↓ 2 callersFunctionformatRequestPrice
( model: PricingModel, showWithRecharge = false, priceRate = 1, usdExchangeRate = 1, selectedGroup?:
web/src/features/pricing/lib/price.ts:245
↓ 2 callersFunctionformatResponseTime
(timeMs: number, t?: TFunction)
web/src/features/channels/lib/channel-utils.ts:368
↓ 2 callersFunctionformatUseTime
(seconds: number)
web/src/lib/format.ts:229
↓ 2 callersFunctionformatWaffoPancakeAmount
(payMoney float64)
controller/topup_waffo_pancake.go:91
↓ 2 callersFunctionfulfillOrder
fulfillOrder is the shared logic for crediting quota after payment is confirmed.
controller/topup_stripe.go:259
↓ 2 callersFunctiongeminiBillingMetadataFromOpenAIUsage
(usage *dto.Usage)
service/relayconvert/internal/oai_chat/to_gemini_chat_resp.go:204
↓ 2 callersFunctiongeminiRawJSONPresent
(raw []byte)
service/relayconvert/internal/oai_responses/to_gemini_chat_req_preprocess.go:96
↓ 2 callersFunctiongeminiResponseToolCall
(item *dto.GeminiPart)
service/relayconvert/internal/gemini_chat/to_oai_chat_resp.go:285
↓ 2 callersFunctiongenCreemLink
(ctx context.Context, referenceId string, product *CreemProduct, email string, username string)
controller/topup_creem.go:375
↓ 2 callersFunctiongenerateDefaultSidebarConfigForRole
根据用户角色生成默认的边栏配置
model/user.go:178
↓ 2 callersFunctiongenerateExprFromVisualConfig
( config: VisualConfig | null | undefined )
web/src/features/pricing/lib/tier-expr.ts:128
↓ 2 callersFunctionget2FAStatus
()
web/src/lib/api.ts:88
↓ 2 callersFunctiongetAdminPlans
()
web/src/features/subscriptions/api.ts:39
↓ 2 callersFunctiongetAdvancedCustomConverterDefaults
( converter: AdvancedCustomConverter, incomingPath: string )
web/src/features/channels/lib/advanced-custom.ts:378
↓ 2 callersFunctiongetAdvancedCustomIncomingPathLabel
(value: string)
web/src/features/channels/lib/advanced-custom.ts:469
↓ 2 callersFunctiongetAdvancedCustomModelRuleKind
( modelRule: string )
web/src/features/channels/lib/advanced-custom.ts:521
↓ 2 callersFunctiongetAdvancedCustomRegexModelPattern
(modelRule: string)
web/src/features/channels/lib/advanced-custom.ts:529
↓ 2 callersFunctiongetAdvancedCustomTemplateConfig
( templateKey: string )
web/src/features/channels/lib/advanced-custom.ts:346
↓ 2 callersFunctiongetAffiliateCode
()
web/src/features/auth/lib/storage.ts:39
↓ 2 callersFunctiongetAlignedRatioTypes
( ratioTypes: Partial<Record<RatioType, RatioDifferenceEntry>>, sourceNames: string[], filter?: string )
web/src/features/system-settings/models/upstream-ratio-sync-helpers.ts:133
↓ 2 callersFunctiongetAnnouncementColorClass
(type?: string)
web/src/lib/colors.ts:139
↓ 2 callersFunctiongetAnnouncementKey
* Generate a unique key for an announcement * Prefer backend id, fall back to a content hash so edits register
web/src/hooks/use-notifications.ts:43
↓ 2 callersFunctiongetAwsModelID
(requestModel string)
relay/channel/aws/relay-aws.go:217
↓ 2 callersFunctiongetBillingCategory
( ratioType: string )
web/src/features/system-settings/models/upstream-ratio-sync-helpers.ts:151
↓ 2 callersFunctiongetBillingDisplayMeta
(config: CurrencyConfig)
web/src/lib/currency.ts:218
↓ 2 callersFunctiongetCachedStatus
()
web/src/lib/nav-modules.ts:145
↓ 2 callersFunctiongetCellLabel
(cell: Cell<TData, unknown>)
web/src/components/data-table/layout/card-cell-utils.ts:28
↓ 2 callersFunctiongetChannel
(c *gin.Context, info *relaycommon.RelayInfo, retryParam *service.RetryParam)
controller/relay.go:295
↓ 2 callersFunctiongetChannelAffinityContext
(c *gin.Context)
service/channel_affinity.go:358
↓ 2 callersFunctiongetChannelAffinityUsageCacheStatsCache
()
service/channel_affinity.go:966
↓ 2 callersFunctiongetChannelTypeLabel
(type: number)
web/src/features/channels/lib/channel-utils.ts:39
↓ 2 callersFunctiongetClampedColumnSize
( header: Header<TData, unknown>, nextSize: number )
web/src/components/data-table/core/data-table-header.tsx:165
↓ 2 callersFunctiongetContentTypeByEncoding
(encoding string)
relay/channel/volcengine/tts.go:132
↓ 2 callersFunctiongetCursorLocation
( value: string, selectionStart: number )
web/src/components/json-code-editor/json-code-editor-utils.ts:86
← previousnext →1,701–1,800 of 9,195, ranked by callers