MCPcopy Create free account

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

Functions10,602 in github.com/QuantumNous/new-api

↓ 4 callersFunctionUpdateUserSetting
(userId int, setting dto.UserSetting)
model/user.go:102
↓ 4 callersMethodUsage
()
service/relayconvert/response_registry.go:359
↓ 4 callersFunctionUsageFromGeminiMetadata
(metadata *dto.GeminiUsageMetadata, fallbackPromptTokens int)
service/relayconvert/response_compat.go:71
↓ 4 callersFunctionUserAuth
()
middleware/auth.go:181
↓ 4 callersFunctionValidUsage
(usage *dto.Usage)
service/usage_helpr.go:31
↓ 4 callersFunctionValidatePasswordAndHash
(password string, hash string)
common/crypto.go:29
↓ 4 callersMethodValidateTOTPAndUpdateUsage
ValidateTOTPAndUpdateUsage 验证TOTP并更新使用记录
model/twofa.go:235
↓ 4 callersFunctionWaffoPancakeBuyerIdentityFromUserID
WaffoPancakeBuyerIdentityFromUserID renders the canonical buyer identity for checkout. Webhook handlers compare against the value rendered here to rej
service/waffo_pancake.go:158
↓ 4 callersFunctionWithCompactModelSuffix
(modelName string)
setting/ratio_setting/compact_suffix.go:8
↓ 4 callersFunctionapplyRechargeRate
* Apply recharge rate to price * * priceRate represents how much users need to recharge (in the display currency) * to get 1 USD credit. usdExchang
web/default/src/features/pricing/lib/price.ts:131
↓ 4 callersFunctionbucketStart
(ts int64)
pkg/perf_metrics/metrics.go:266
↓ 4 callersFunctionbuildBillingPriceText
( key, { symbol, usdAmount, rate, amountKey = 'price', digits = 6, ...vars }, )
web/classic/src/helpers/render.jsx:1261
↓ 4 callersFunctionbuildDefaultDashboardFilters
( preferences: DashboardChartPreferences = getSavedChartPreferences() )
web/default/src/features/dashboard/lib/filters.ts:143
↓ 4 callersFunctioncacheSetToken
(token Token)
model/token_cache.go:11
↓ 4 callersFunctioncalcNextResetTime
(base time.Time, plan *SubscriptionPlan, endUnix int64)
model/subscription.go:344
↓ 4 callersFunctionclearChannelInfo
(channel *model.Channel)
controller/channel.go:67
↓ 4 callersFunctionclickHouseLogOrder
(prefix string)
model/log.go:106
↓ 4 callersFunctioncomposeTieredTextQuota
(relayInfo *relaycommon.RelayInfo, summary textQuotaSummary, tieredQuota int, tieredResult *billingexpr.Tiered
service/text_quota.go:153
↓ 4 callersMethodconvertOpenAICompatibleRequest
(c *gin.Context, info *relaycommon.RelayInfo, request *dto.GeneralOpenAIRequest)
relay/channel/advancedcustom/adaptor.go:471
↓ 4 callersFunctioncreateTaskError
(err error, code string, statusCode int, localError bool)
relay/common/relay_utils.go:110
↓ 4 callersFunctiondecodeDataWithFlexibleTimes
(data []byte, target *T)
pkg/ionet/jsonutil.go:39
↓ 4 callersFunctiondecodeImageConfig
decodeImageConfig 从字节数据解码图片配置
service/file_service.go:465
↓ 4 callersFunctiondetectHEIF
detectHEIF checks ISOBMFF magic bytes to detect HEIC/HEIF files. Returns "image/heic", "image/heif", or "" if not recognized.
service/file_service.go:496
↓ 4 callersFunctiondoRequest
(c *gin.Context, req *http.Request, info *common.RelayInfo)
relay/channel/api_request.go:477
↓ 4 callersFunctioneffectiveBillingUsage
(usage *dto.Usage)
service/billing_usage.go:20
↓ 4 callersFunctionexceedsMaxTokensLimit
(values ...*uint)
relay/helper/valid_request.go:122
↓ 4 callersFunctionfetchModels
()
web/classic/src/components/table/channels/modals/OllamaModelModal.jsx:212
↓ 4 callersFunctionfetchTokenKey
(tokenOrId, options = {})
web/classic/src/hooks/tokens/useTokensData.jsx:136
↓ 4 callersFunctionfinalizeMessage
( message: Message, apiReasoningContent?: string )
web/default/src/features/playground/lib/message/message-streaming-utils.ts:121
↓ 4 callersFunctionfinishSystemTaskHandler
(task *model.SystemTask, runnerID string, status model.SystemTaskStatus, result any, runErr error)
controller/system_task_handlers.go:155
↓ 4 callersFunctionflowPathForStages
( row: FlowQuotaDataItem, stages: FlowNodeKind[], ctx: FlowPathContext = EMPTY_FLOW_PATH_CONTEXT )
web/default/src/features/dashboard/lib/flow.ts:271
↓ 4 callersFunctionformatBillingDisplayPrice
(usdAmount, rate, digits = 6)
web/classic/src/helpers/render.jsx:1253
↓ 4 callersFunctionformatDateTimeObject
(date: Date)
web/default/src/lib/time.ts:152
↓ 4 callersFunctionformatLatency
(ms: number)
web/default/src/features/performance-metrics/lib/format.ts:25
↓ 4 callersFunctionformatThroughput
(tps: number)
web/default/src/features/performance-metrics/lib/format.ts:19
↓ 4 callersFunctionformatValue
(value: unknown)
web/default/src/features/models/components/dialogs/upstream-conflict-dialog.tsx:72
↓ 4 callersFunctiongetAmount
(value)
web/classic/src/components/topup/index.jsx:807
↓ 4 callersFunctiongetChannelModels
(type)
web/classic/src/helpers/api.js:381
↓ 4 callersFunctiongetDefaultAdvancedCustomIncomingPath
( converter: AdvancedCustomConverter )
web/default/src/features/channels/lib/advanced-custom.ts:430
↓ 4 callersFunctiongetDefaultDays
(granularity?: TimeGranularity)
web/default/src/features/dashboard/lib/filters.ts:138
↓ 4 callersFunctiongetDisplayText
(value)
web/classic/src/components/table/channels/modals/CodexUsageModal.jsx:150
↓ 4 callersFunctiongetFormValues
()
web/classic/src/hooks/users/useUsersData.jsx:56
↓ 4 callersFunctiongetFormValues
()
web/classic/src/hooks/redemptions/useRedemptionsData.jsx:61
↓ 4 callersFunctiongetGroupRatioText
(groupRatio, user_group_ratio)
web/classic/src/helpers/render.jsx:1233
↓ 4 callersFunctiongetJSONList
(jsonStr string)
setting/console_setting/validation.go:53
↓ 4 callersFunctiongetMinTopupAmount
(topupInfo: TopupInfo | null)
web/default/src/features/wallet/lib/payment.ts:120
↓ 4 callersFunctiongetOAuthState
()
web/default/src/lib/oauth.ts:80
↓ 4 callersFunctiongetOrderedRatioTypes
(ratioTypes)
web/classic/src/pages/Setting/Ratio/UpstreamRatioSync.jsx:298
↓ 4 callersFunctiongetPreferredSyncField
( ratioTypes: Partial<Record<RatioType, RatioDifferenceEntry>>, ratioType: RatioType, sourceName: string
web/default/src/features/system-settings/models/upstream-ratio-sync-helpers.ts:105
↓ 4 callersFunctiongetRollingDateRange
( days: number, fromDate: Date = new Date() )
web/default/src/lib/time.ts:90
↓ 4 callersFunctiongetRouteIncomingPath
(route: AdvancedCustomRoute)
web/default/src/features/channels/components/dialogs/advanced-custom-editor-dialog.tsx:136
↓ 4 callersFunctiongetRowKey
(record, index)
web/classic/src/components/common/ui/CardTable.jsx:55
↓ 4 callersFunctiongetStatus
()
web/default/src/lib/api.ts:214
↓ 4 callersFunctiongetSuccessRateDotClass
(rate: number)
web/default/src/features/performance-metrics/lib/format.ts:92
↓ 4 callersFunctiongetUserIdFromLocalStorage
()
web/classic/src/helpers/utils.jsx:61
↓ 4 callersFunctionhandleFieldChange
(fieldName)
web/classic/src/pages/Setting/Operation/SettingsGeneral.jsx:65
↓ 4 callersFunctionhandleLoginSuccess
( userData?: { id?: number } | null, redirectTo?: string )
web/default/src/features/auth/hooks/use-auth-redirect.ts:58
↓ 4 callersFunctionhasAnyCacheTokens
( other: LogOtherData | null | undefined )
web/default/src/features/usage-logs/lib/format.ts:241
↓ 4 callersFunctionhasMessageContent
(message: Message)
web/default/src/features/playground/lib/message/message-utils.ts:56
↓ 4 callersFunctioninferResponseRelayFormat
(response any)
service/relayconvert/response_registry.go:702
↓ 4 callersFunctioninsertUserForPaymentGuardTest
(t *testing.T, id int, quota int)
model/payment_method_guard_test.go:12
↓ 4 callersFunctionintPtr
(v int)
service/relayconvert/internal/oai_chat/to_oai_responses_resp.go:230
↓ 4 callersFunctionisConverterPathAllowed
( incomingPath: string, converter: AdvancedCustomConverter )
web/default/src/features/channels/lib/advanced-custom.ts:786
↓ 4 callersFunctionisDataCrossYear
(timestamps)
web/classic/src/helpers/utils.jsx:264
↓ 4 callersFunctionisPlainObject
(value: unknown)
web/default/src/features/system-settings/hooks/use-settings-form.ts:34
↓ 4 callersFunctionisPriceDisplayMode
(displayMode, modelPrice = -1)
web/classic/src/helpers/render.jsx:1208
↓ 4 callersFunctionisRedemptionExpired
( expired_time: number, status: number )
web/default/src/features/redemption-codes/lib/utils.ts:40
↓ 4 callersFunctionisResponsesToolOutputType
(outputType string)
service/relayconvert/internal/oai_responses/to_oai_chat_resp.go:250
↓ 4 callersFunctionisSidebarModuleAllowed
(sectionKey, moduleKey)
web/classic/src/hooks/common/useUserPermissions.js:70
↓ 4 callersFunctionisWaffoPancakeTopUpEnabled
()
controller/payment_webhook_availability.go:76
↓ 4 callersFunctionlinkStableKey
(link: Pick<DashboardFlowLink, 'source' | 'target'>)
web/default/src/features/dashboard/lib/flow.ts:503
↓ 4 callersFunctionloadKeyStatus
( page: number = currentPage, size: number = pageSize, status: number | null = statusFilter )
web/default/src/features/channels/components/dialogs/multi-key-manage-dialog.tsx:114
↓ 4 callersFunctionloadLogs
(page = 1, size = pageSize)
web/classic/src/hooks/task-logs/useTaskLogsData.js:229
↓ 4 callersFunctionloadLogs
(startIdx, pageSize, customLogType = null)
web/classic/src/hooks/usage-logs/useUsageLogsData.jsx:729
↓ 4 callersFunctionloadLogs
(page = 1, size = pageSize)
web/classic/src/hooks/mj-logs/useMjLogsData.js:225
↓ 4 callersFunctionloadUserSubscriptions
()
web/classic/src/components/table/users/modals/UserSubscriptionsModal.jsx:131
↓ 4 callersFunctionlogHelper
(ctx context.Context, level string, msg string)
logger/logger.go:97
↓ 4 callersFunctionmanageUser
(userId, action, record)
web/classic/src/hooks/users/useUsersData.jsx:124
↓ 4 callersFunctionmodelMeta
(modelName string, meta map[string]rankingModelMeta)
service/rankings.go:256
↓ 4 callersFunctionmustConvertResponsesToGemini
(t *testing.T, req dto.OpenAIResponsesRequest)
relay/channel/gemini/adaptor_responses_test.go:156
↓ 4 callersFunctionmustGeminiRawMessage
(t *testing.T, value any)
relay/channel/gemini/adaptor_responses_test.go:171
↓ 4 callersFunctionnewProtectedFetchHTTPClientWithProxy
(resolver ssrfResolver, dialContext func(ctx context.Context, network, address string) (net.Conn, error), getP
service/protected_fetch_client.go:66
↓ 4 callersFunctionnewWaffoPancakeClientFromCreds
(merchantID, privateKey string)
service/waffo_pancake.go:86
↓ 4 callersFunctionnormalizeJsonString
(value: string, fallback = '[]')
web/default/src/features/system-settings/content/utils.ts:29
↓ 4 callersFunctionnormalizeLang
normalizeLang normalizes language code to supported format
i18n/i18n.go:201
↓ 4 callersFunctionnormalizeModelList
(models = [])
web/classic/src/hooks/channels/upstreamUpdateUtils.js:20
↓ 4 callersFunctionnormalizeVisualTier
(tier = {})
web/classic/src/pages/Setting/Ratio/components/TieredPricingEditor.jsx:117
↓ 4 callersFunctionparseHttpStatusCodeRules
( input: unknown )
web/default/src/lib/http-status-code-rules.ts:32
↓ 4 callersFunctionparseJSONArray
(jsonStr string, typeName string)
setting/console_setting/validation.go:25
↓ 4 callersFunctionparseJsonArray
(data: unknown)
web/default/src/features/wallet/hooks/use-topup-info.ts:39
↓ 4 callersFunctionparseJsonEditorConfig
()
web/default/src/features/channels/components/dialogs/advanced-custom-editor-dialog.tsx:400
↓ 4 callersFunctionparseJsonToRows
(json: string)
web/default/src/components/json-editor.tsx:87
↓ 4 callersFunctionparseJsonToRows
(json: string)
web/default/src/features/channels/components/model-mapping-editor.tsx:79
↓ 4 callersFunctionprocessNegativeIndex
(data []byte, path string)
relay/common/override.go:563
↓ 4 callersFunctionrandomUsage
(rng *rand.Rand)
service/tiered_settle_test.go:699
↓ 4 callersFunctionratioQuota
(usage *dto.Usage, isClaudeSemantic bool, modelRatio, completionRatio, cacheRatio, imageRatio, groupRatio floa
service/tiered_settle_test.go:424
↓ 4 callersFunctionrefresh
(page = activePage)
web/classic/src/hooks/models/useModelsData.jsx:164
↓ 4 callersFunctionrefreshChannelRuntimeCache
()
controller/channel_upstream_update.go:405
↓ 4 callersFunctionremoveCookie
(name: string)
web/default/src/lib/cookies.ts:57
↓ 4 callersFunctionremoveRow
(id)
web/classic/src/pages/Setting/Ratio/ToolPriceSettings.jsx:124
← previousnext →701–800 of 10,602, ranked by callers