MCPcopy Create free account

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

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

↓ 3 callersFunctiongetTextContent
(message)
web/classic/src/helpers/utils.jsx:340
↓ 3 callersFunctiongetUser
(id: number)
web/default/src/features/users/api.ts:76
↓ 3 callersFunctiongetUserData
()
web/classic/src/components/settings/PersonalSetting.jsx:362
↓ 3 callersFunctiongetUserGroupByIdTx
(tx *gorm.DB, userId int)
model/subscription.go:426
↓ 3 callersFunctiongetWaffoPancakePayMoney
(amount int64, group string)
controller/topup_waffo_pancake.go:53
↓ 3 callersFunctionhandleInputChange
(name, value)
web/classic/src/components/table/channels/modals/EditTagModal.jsx:100
↓ 3 callersFunctionhandleModeChange
(mode: string)
web/default/src/features/system-settings/models/tiered-pricing-editor.tsx:988
↓ 3 callersFunctionhandleSelectAll
()
web/classic/src/components/table/channels/modals/OllamaModelModal.jsx:203
↓ 3 callersFunctionhasValue
(value: unknown)
web/default/src/features/system-settings/models/model-pricing-core.ts:147
↓ 3 callersFunctioninferRequestRelayFormat
(request any)
service/relayconvert/request_registry.go:378
↓ 3 callersFunctioninitCol
()
model/main.go:30
↓ 3 callersFunctioninsertTask
(t *testing.T, task *Task)
model/task_cas_test.go:83
↓ 3 callersFunctionintersectModelNames
(base []string, allowed []string)
controller/channel_upstream_update.go:127
↓ 3 callersFunctionisAssistantMessagePending
(message: Message)
web/default/src/features/playground/lib/message/message-streaming-utils.ts:165
↓ 3 callersFunctionisErrorMessage
(message: Message)
web/default/src/features/playground/lib/message/message-error-utils.ts:39
↓ 3 callersFunctionisHttpUrl
(value: string)
web/default/src/lib/content-format.ts:19
↓ 3 callersFunctionisLikelyHtml
(value: string)
web/default/src/lib/content-format.ts:28
↓ 3 callersFunctionisManageableChannelStatus
(status int)
controller/channel.go:1144
↓ 3 callersFunctionisModuleEnabled
* Check if a module is enabled. Admin config is the first (authoritative) * layer: if admin disables a section/module it is always hidden. User confi
web/default/src/hooks/use-sidebar-config.ts:168
↓ 3 callersFunctionisNewAPIRelay
(apiKey string)
relay/channel/task/jimeng/adaptor.go:478
↓ 3 callersFunctionisNewAPIRelay
(apiKey string)
relay/channel/task/kling/adaptor.go:376
↓ 3 callersFunctionisPasskeySupported
()
web/classic/src/helpers/passkey.js:150
↓ 3 callersFunctionisPlainObject
(v)
web/default/scripts/sync-i18n.mjs:117
↓ 3 callersFunctionisRoot
()
web/classic/src/helpers/utils.jsx:42
↓ 3 callersFunctionisSelectableUpstreamValue
(value)
web/classic/src/pages/Setting/Ratio/UpstreamRatioSync.jsx:347
↓ 3 callersFunctionisSyncImageModel
(modelName string)
relay/channel/ali/adaptor.go:64
↓ 3 callersFunctionisTimingLogType
(type: number)
web/default/src/features/usage-logs/lib/utils.ts:57
↓ 3 callersFunctionisUserDeleted
(user: UserType)
web/default/src/features/users/constants.ts:27
↓ 3 callersFunctionisWanModel
(modelName string)
relay/channel/ali/image_wan.go:47
↓ 3 callersFunctionjoinBillingSummary
(parts)
web/classic/src/helpers/render.jsx:1229
↓ 3 callersFunctionloadConfig
()
web/default/src/features/playground/lib/storage/storage.ts:281
↓ 3 callersFunctionloadGroups
()
web/classic/src/components/table/models/modals/PrefillGroupManagement.jsx:70
↓ 3 callersFunctionloadModels
()
web/classic/src/components/table/model-deployments/modals/EditDeploymentModal.jsx:86
↓ 3 callersFunctionloadPasskeyStatus
()
web/classic/src/components/settings/PersonalSetting.jsx:221
↓ 3 callersFunctionloadPlans
()
web/classic/src/hooks/subscriptions/useSubscriptionsData.jsx:43
↓ 3 callersFunctionloadUserConfig
({ withLoading } = {})
web/classic/src/hooks/common/useSidebar.js:105
↓ 3 callersFunctionloadUserData
()
web/classic/src/components/dashboard/index.jsx:89
↓ 3 callersFunctionlookupResponseRoute
(from types.RelayFormat, to types.RelayFormat)
service/relayconvert/response_registry.go:675
↓ 3 callersFunctionmapIoNetDeployment
(d ionet.Deployment)
controller/deployment.go:138
↓ 3 callersFunctionmarshalSystemTaskJSON
(v any)
model/system_task.go:437
↓ 3 callersFunctionmergeAdminConfig
(savedConfig)
web/classic/src/hooks/common/useSidebar.js:61
↓ 3 callersFunctionmergeOptions
( options?: CurrencyFormatOptions )
web/default/src/lib/currency.ts:231
↓ 3 callersMethodmessageID
()
service/relayconvert/internal/oai_chat/to_oai_responses_stream_resp.go:370
↓ 3 callersFunctionmustAdvancedCustomRawMessage
(t *testing.T, value any)
relay/channel/advancedcustom/adaptor_test.go:677
↓ 3 callersFunctionmustParseURL
(t *testing.T, rawURL string)
service/protected_fetch_client_test.go:60
↓ 3 callersFunctionnearlyEqual
(a, b float64)
controller/ratio_sync.go:48
↓ 3 callersFunctionnewAwsInvokeContext
()
relay/channel/aws/relay-aws.go:43
↓ 3 callersFunctionnewGeminiResponsesRelayInfo
(isStream bool)
relay/channel/gemini/relay_responses_test.go:170
↓ 3 callersFunctionnewResponsesChatTestContext
(t *testing.T, body string, isStream bool)
relay/channel/openai/chat_via_responses_test.go:18
↓ 3 callersFunctionnewRule
(ptype string, policy []string)
service/authz/adapter.go:96
↓ 3 callersFunctionnewSMTPClient
(addr string)
common/email.go:44
↓ 3 callersMethodnextIndex
(kind string, toolIndex int)
service/relayconvert/internal/oai_chat/to_oai_responses_stream_resp.go:343
↓ 3 callersFunctionnextLocalId
()
web/default/src/features/channels/components/dialogs/param-override-editor-dialog.tsx:451
↓ 3 callersFunctionnextLocalId
()
web/classic/src/components/table/channels/modals/ParamOverrideEditorModal.jsx:495
↓ 3 callersFunctionnormalizeBaseUrl
(url)
web/classic/src/components/settings/CustomOAuthSetting.jsx:219
↓ 3 callersFunctionnormalizeCatalogItems
(items?: readonly string[])
web/default/src/features/pricing/components/model-details.tsx:144
↓ 3 callersFunctionnormalizeInterfaceLanguage
(value?: string | null)
web/default/src/i18n/languages.ts:33
↓ 3 callersFunctionnormalizeLineEndings
(value: string)
web/default/src/features/system-settings/models/routing-reliability-section.tsx:133
↓ 3 callersFunctionnormalizeModelList
(models: unknown[] = [])
web/default/src/features/channels/lib/upstream-update-utils.ts:19
↓ 3 callersFunctionnormalizeModelName
(model)
web/classic/src/components/table/channels/modals/ModelSelectModal.jsx:77
↓ 3 callersFunctionnormalizeOpenAIUsage
normalizeOpenAIUsage maps the OpenAI Images usage shape (input_tokens / output_tokens / input_tokens_details) onto the canonical prompt/completion fie
relay/channel/openai/relay_image.go:70
↓ 3 callersFunctionnormalizePlanType
(value)
web/classic/src/components/table/channels/modals/CodexUsageModal.jsx:63
↓ 3 callersFunctionnormalizeRatio
(value: unknown)
web/default/src/features/system-settings/models/group-ratio-visual-editor.tsx:107
↓ 3 callersFunctionnormalizeResetCreditStatus
(value: unknown)
web/default/src/features/channels/components/dialogs/codex-usage-dialog.tsx:235
↓ 3 callersFunctionnormalizeStatus
(status)
web/classic/src/components/table/model-deployments/DeploymentsColumnDefs.jsx:45
↓ 3 callersFunctionobjectToRows
(prices)
web/classic/src/pages/Setting/Ratio/ToolPriceSettings.jsx:60
↓ 3 callersFunctiononCustomOAuthClicked
(provider, options = {})
web/classic/src/helpers/api.js:328
↓ 3 callersFunctiononDiscordOAuthClicked
(client_id, options = {})
web/classic/src/helpers/api.js:271
↓ 3 callersFunctiononGitHubOAuthClicked
(github_client_id, options = {})
web/classic/src/helpers/api.js:299
↓ 3 callersFunctiononLinuxDOOAuthClicked
( linuxdo_client_id, options = { shouldLogout: false }, )
web/classic/src/helpers/api.js:307
↓ 3 callersFunctiononOIDCClicked
( auth_url, client_id, openInNewTab = false, options = {}, )
web/classic/src/helpers/api.js:282
↓ 3 callersFunctionopenFluentNotification
(key)
web/classic/src/components/table/tokens/index.jsx:122
↓ 3 callersFunctionoptionalString
(s string)
service/waffo_pancake.go:147
↓ 3 callersFunctionparseGroupsList
(groups: string)
web/default/src/features/channels/lib/channel-utils.ts:236
↓ 3 callersFunctionparseModelsString
(modelsStr: string)
web/default/src/features/channels/lib/model-mapping-validation.ts:26
↓ 3 callersFunctionparseNumberDraft
(value: string)
web/default/src/features/system-settings/models/tiered-pricing-editor.tsx:340
↓ 3 callersFunctionparseThinkTags
(content: string)
web/default/src/features/playground/lib/message/message-reasoning-utils.ts:30
↓ 3 callersFunctionparseTiersFromExpr
(exprStr: string)
web/default/src/features/pricing/lib/billing-expr.ts:268
↓ 3 callersFunctionparseTiersFromExpr
(exprStr)
web/classic/src/helpers/render.jsx:2230
↓ 3 callersFunctionparseUserSettings
(settingsJson?: string)
web/default/src/features/profile/lib/format.ts:28
↓ 3 callersFunctionpatchClaudeMessageDeltaUsageData
(data string, usage *dto.ClaudeUsage)
relay/channel/claude/relay-claude.go:78
↓ 3 callersFunctionprocessChannelError
(c *gin.Context, channelError types.ChannelError, err *types.NewAPIError)
controller/relay.go:357
↓ 3 callersFunctionrandomInRange
( rand: () => number, min: number, max: number )
web/default/src/features/pricing/lib/seed.ts:48
↓ 3 callersFunctionrankingShare
(value int64, total int64)
service/rankings.go:557
↓ 3 callersMethodreasoningID
()
service/relayconvert/internal/oai_chat/to_oai_responses_stream_resp.go:374
↓ 3 callersFunctionrecalcQuotaFromRatios
recalcQuotaFromRatios 根据 adjustedRatios 重新计算 quota。 公式: baseQuota × ∏(ratio) — 其中 baseQuota 是不含 OtherRatios 的基础额度。
relay/relay_task.go:264
↓ 3 callersFunctionrecordValue
(value: unknown)
web/default/src/features/dashboard/lib/flow.ts:1024
↓ 3 callersFunctionredirectToLogin
()
web/default/src/features/auth/hooks/use-auth-redirect.ts:105
↓ 3 callersFunctionrefreshCacheStats
()
web/classic/src/pages/Setting/Operation/SettingsChannelAffinity.jsx:379
↓ 3 callersMethodrememberUsage
(usage *dto.Usage)
service/relayconvert/response_registry.go:594
↓ 3 callersFunctionremoveTrailingSlash
(value: string)
web/default/src/features/system-settings/integrations/utils.ts:19
↓ 3 callersFunctionrenderChildren
(nodes: ParsedNode[])
web/default/src/components/ai-elements/response-renderer.tsx:56
↓ 3 callersFunctionrenderDescription
(text, maxWidth = 200)
web/classic/src/components/common/ui/RenderUtils.jsx:54
↓ 3 callersFunctionrenderDisplayAmountFromUsd
(usdAmount, digits = 6)
web/classic/src/helpers/render.jsx:1249
↓ 3 callersFunctionrenderModelTag
(modelName, options = {})
web/classic/src/helpers/render.jsx:739
↓ 3 callersFunctionrenderQuotaCompat
(rawQuota: number, digits = 4)
web/default/src/features/dashboard/lib/charts.ts:53
↓ 3 callersFunctionresolveChannelSortOptions
(idSort bool, sortOptions []ChannelSortOptions)
model/channel.go:123
↓ 3 callersFunctionresolveChannelTestUserID
(c *gin.Context)
controller/channel-test.go:58
↓ 3 callersFunctionresolveVisibleStages
( role: FlowRole, visibleStages?: FlowNodeKind[] )
web/default/src/features/dashboard/lib/flow.ts:260
↓ 3 callersFunctionresponsesCallID
(item map[string]any)
service/relayconvert/internal/oai_responses/to_oai_chat_req.go:487
← previousnext →1,101–1,200 of 10,602, ranked by callers