Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/QuantumNous/new-api
/ functions
Functions
10,602 in github.com/QuantumNous/new-api
⨍
Functions
10,602
◇
Types & classes
1,425
↓ 3 callers
Function
getTextContent
(message)
web/classic/src/helpers/utils.jsx:340
↓ 3 callers
Function
getUser
(id: number)
web/default/src/features/users/api.ts:76
↓ 3 callers
Function
getUserData
()
web/classic/src/components/settings/PersonalSetting.jsx:362
↓ 3 callers
Function
getUserGroupByIdTx
(tx *gorm.DB, userId int)
model/subscription.go:426
↓ 3 callers
Function
getWaffoPancakePayMoney
(amount int64, group string)
controller/topup_waffo_pancake.go:53
↓ 3 callers
Function
handleInputChange
(name, value)
web/classic/src/components/table/channels/modals/EditTagModal.jsx:100
↓ 3 callers
Function
handleModeChange
(mode: string)
web/default/src/features/system-settings/models/tiered-pricing-editor.tsx:988
↓ 3 callers
Function
handleSelectAll
()
web/classic/src/components/table/channels/modals/OllamaModelModal.jsx:203
↓ 3 callers
Function
hasValue
(value: unknown)
web/default/src/features/system-settings/models/model-pricing-core.ts:147
↓ 3 callers
Function
inferRequestRelayFormat
(request any)
service/relayconvert/request_registry.go:378
↓ 3 callers
Function
initCol
()
model/main.go:30
↓ 3 callers
Function
insertTask
(t *testing.T, task *Task)
model/task_cas_test.go:83
↓ 3 callers
Function
intersectModelNames
(base []string, allowed []string)
controller/channel_upstream_update.go:127
↓ 3 callers
Function
isAssistantMessagePending
(message: Message)
web/default/src/features/playground/lib/message/message-streaming-utils.ts:165
↓ 3 callers
Function
isErrorMessage
(message: Message)
web/default/src/features/playground/lib/message/message-error-utils.ts:39
↓ 3 callers
Function
isHttpUrl
(value: string)
web/default/src/lib/content-format.ts:19
↓ 3 callers
Function
isLikelyHtml
(value: string)
web/default/src/lib/content-format.ts:28
↓ 3 callers
Function
isManageableChannelStatus
(status int)
controller/channel.go:1144
↓ 3 callers
Function
isModuleEnabled
* 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 callers
Function
isNewAPIRelay
(apiKey string)
relay/channel/task/jimeng/adaptor.go:478
↓ 3 callers
Function
isNewAPIRelay
(apiKey string)
relay/channel/task/kling/adaptor.go:376
↓ 3 callers
Function
isPasskeySupported
()
web/classic/src/helpers/passkey.js:150
↓ 3 callers
Function
isPlainObject
(v)
web/default/scripts/sync-i18n.mjs:117
↓ 3 callers
Function
isRoot
()
web/classic/src/helpers/utils.jsx:42
↓ 3 callers
Function
isSelectableUpstreamValue
(value)
web/classic/src/pages/Setting/Ratio/UpstreamRatioSync.jsx:347
↓ 3 callers
Function
isSyncImageModel
(modelName string)
relay/channel/ali/adaptor.go:64
↓ 3 callers
Function
isTimingLogType
(type: number)
web/default/src/features/usage-logs/lib/utils.ts:57
↓ 3 callers
Function
isUserDeleted
(user: UserType)
web/default/src/features/users/constants.ts:27
↓ 3 callers
Function
isWanModel
(modelName string)
relay/channel/ali/image_wan.go:47
↓ 3 callers
Function
joinBillingSummary
(parts)
web/classic/src/helpers/render.jsx:1229
↓ 3 callers
Function
loadConfig
()
web/default/src/features/playground/lib/storage/storage.ts:281
↓ 3 callers
Function
loadGroups
()
web/classic/src/components/table/models/modals/PrefillGroupManagement.jsx:70
↓ 3 callers
Function
loadModels
()
web/classic/src/components/table/model-deployments/modals/EditDeploymentModal.jsx:86
↓ 3 callers
Function
loadPasskeyStatus
()
web/classic/src/components/settings/PersonalSetting.jsx:221
↓ 3 callers
Function
loadPlans
()
web/classic/src/hooks/subscriptions/useSubscriptionsData.jsx:43
↓ 3 callers
Function
loadUserConfig
({ withLoading } = {})
web/classic/src/hooks/common/useSidebar.js:105
↓ 3 callers
Function
loadUserData
()
web/classic/src/components/dashboard/index.jsx:89
↓ 3 callers
Function
lookupResponseRoute
(from types.RelayFormat, to types.RelayFormat)
service/relayconvert/response_registry.go:675
↓ 3 callers
Function
mapIoNetDeployment
(d ionet.Deployment)
controller/deployment.go:138
↓ 3 callers
Function
marshalSystemTaskJSON
(v any)
model/system_task.go:437
↓ 3 callers
Function
mergeAdminConfig
(savedConfig)
web/classic/src/hooks/common/useSidebar.js:61
↓ 3 callers
Function
mergeOptions
( options?: CurrencyFormatOptions )
web/default/src/lib/currency.ts:231
↓ 3 callers
Method
messageID
()
service/relayconvert/internal/oai_chat/to_oai_responses_stream_resp.go:370
↓ 3 callers
Function
mustAdvancedCustomRawMessage
(t *testing.T, value any)
relay/channel/advancedcustom/adaptor_test.go:677
↓ 3 callers
Function
mustParseURL
(t *testing.T, rawURL string)
service/protected_fetch_client_test.go:60
↓ 3 callers
Function
nearlyEqual
(a, b float64)
controller/ratio_sync.go:48
↓ 3 callers
Function
newAwsInvokeContext
()
relay/channel/aws/relay-aws.go:43
↓ 3 callers
Function
newGeminiResponsesRelayInfo
(isStream bool)
relay/channel/gemini/relay_responses_test.go:170
↓ 3 callers
Function
newResponsesChatTestContext
(t *testing.T, body string, isStream bool)
relay/channel/openai/chat_via_responses_test.go:18
↓ 3 callers
Function
newRule
(ptype string, policy []string)
service/authz/adapter.go:96
↓ 3 callers
Function
newSMTPClient
(addr string)
common/email.go:44
↓ 3 callers
Method
nextIndex
(kind string, toolIndex int)
service/relayconvert/internal/oai_chat/to_oai_responses_stream_resp.go:343
↓ 3 callers
Function
nextLocalId
()
web/default/src/features/channels/components/dialogs/param-override-editor-dialog.tsx:451
↓ 3 callers
Function
nextLocalId
()
web/classic/src/components/table/channels/modals/ParamOverrideEditorModal.jsx:495
↓ 3 callers
Function
normalizeBaseUrl
(url)
web/classic/src/components/settings/CustomOAuthSetting.jsx:219
↓ 3 callers
Function
normalizeCatalogItems
(items?: readonly string[])
web/default/src/features/pricing/components/model-details.tsx:144
↓ 3 callers
Function
normalizeInterfaceLanguage
(value?: string | null)
web/default/src/i18n/languages.ts:33
↓ 3 callers
Function
normalizeLineEndings
(value: string)
web/default/src/features/system-settings/models/routing-reliability-section.tsx:133
↓ 3 callers
Function
normalizeModelList
(models: unknown[] = [])
web/default/src/features/channels/lib/upstream-update-utils.ts:19
↓ 3 callers
Function
normalizeModelName
(model)
web/classic/src/components/table/channels/modals/ModelSelectModal.jsx:77
↓ 3 callers
Function
normalizeOpenAIUsage
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 callers
Function
normalizePlanType
(value)
web/classic/src/components/table/channels/modals/CodexUsageModal.jsx:63
↓ 3 callers
Function
normalizeRatio
(value: unknown)
web/default/src/features/system-settings/models/group-ratio-visual-editor.tsx:107
↓ 3 callers
Function
normalizeResetCreditStatus
(value: unknown)
web/default/src/features/channels/components/dialogs/codex-usage-dialog.tsx:235
↓ 3 callers
Function
normalizeStatus
(status)
web/classic/src/components/table/model-deployments/DeploymentsColumnDefs.jsx:45
↓ 3 callers
Function
objectToRows
(prices)
web/classic/src/pages/Setting/Ratio/ToolPriceSettings.jsx:60
↓ 3 callers
Function
onCustomOAuthClicked
(provider, options = {})
web/classic/src/helpers/api.js:328
↓ 3 callers
Function
onDiscordOAuthClicked
(client_id, options = {})
web/classic/src/helpers/api.js:271
↓ 3 callers
Function
onGitHubOAuthClicked
(github_client_id, options = {})
web/classic/src/helpers/api.js:299
↓ 3 callers
Function
onLinuxDOOAuthClicked
( linuxdo_client_id, options = { shouldLogout: false }, )
web/classic/src/helpers/api.js:307
↓ 3 callers
Function
onOIDCClicked
( auth_url, client_id, openInNewTab = false, options = {}, )
web/classic/src/helpers/api.js:282
↓ 3 callers
Function
openFluentNotification
(key)
web/classic/src/components/table/tokens/index.jsx:122
↓ 3 callers
Function
optionalString
(s string)
service/waffo_pancake.go:147
↓ 3 callers
Function
parseGroupsList
(groups: string)
web/default/src/features/channels/lib/channel-utils.ts:236
↓ 3 callers
Function
parseModelsString
(modelsStr: string)
web/default/src/features/channels/lib/model-mapping-validation.ts:26
↓ 3 callers
Function
parseNumberDraft
(value: string)
web/default/src/features/system-settings/models/tiered-pricing-editor.tsx:340
↓ 3 callers
Function
parseThinkTags
(content: string)
web/default/src/features/playground/lib/message/message-reasoning-utils.ts:30
↓ 3 callers
Function
parseTiersFromExpr
(exprStr: string)
web/default/src/features/pricing/lib/billing-expr.ts:268
↓ 3 callers
Function
parseTiersFromExpr
(exprStr)
web/classic/src/helpers/render.jsx:2230
↓ 3 callers
Function
parseUserSettings
(settingsJson?: string)
web/default/src/features/profile/lib/format.ts:28
↓ 3 callers
Function
patchClaudeMessageDeltaUsageData
(data string, usage *dto.ClaudeUsage)
relay/channel/claude/relay-claude.go:78
↓ 3 callers
Function
processChannelError
(c *gin.Context, channelError types.ChannelError, err *types.NewAPIError)
controller/relay.go:357
↓ 3 callers
Function
randomInRange
( rand: () => number, min: number, max: number )
web/default/src/features/pricing/lib/seed.ts:48
↓ 3 callers
Function
rankingShare
(value int64, total int64)
service/rankings.go:557
↓ 3 callers
Method
reasoningID
()
service/relayconvert/internal/oai_chat/to_oai_responses_stream_resp.go:374
↓ 3 callers
Function
recalcQuotaFromRatios
recalcQuotaFromRatios 根据 adjustedRatios 重新计算 quota。 公式: baseQuota × ∏(ratio) — 其中 baseQuota 是不含 OtherRatios 的基础额度。
relay/relay_task.go:264
↓ 3 callers
Function
recordValue
(value: unknown)
web/default/src/features/dashboard/lib/flow.ts:1024
↓ 3 callers
Function
redirectToLogin
()
web/default/src/features/auth/hooks/use-auth-redirect.ts:105
↓ 3 callers
Function
refreshCacheStats
()
web/classic/src/pages/Setting/Operation/SettingsChannelAffinity.jsx:379
↓ 3 callers
Method
rememberUsage
(usage *dto.Usage)
service/relayconvert/response_registry.go:594
↓ 3 callers
Function
removeTrailingSlash
(value: string)
web/default/src/features/system-settings/integrations/utils.ts:19
↓ 3 callers
Function
renderChildren
(nodes: ParsedNode[])
web/default/src/components/ai-elements/response-renderer.tsx:56
↓ 3 callers
Function
renderDescription
(text, maxWidth = 200)
web/classic/src/components/common/ui/RenderUtils.jsx:54
↓ 3 callers
Function
renderDisplayAmountFromUsd
(usdAmount, digits = 6)
web/classic/src/helpers/render.jsx:1249
↓ 3 callers
Function
renderModelTag
(modelName, options = {})
web/classic/src/helpers/render.jsx:739
↓ 3 callers
Function
renderQuotaCompat
(rawQuota: number, digits = 4)
web/default/src/features/dashboard/lib/charts.ts:53
↓ 3 callers
Function
resolveChannelSortOptions
(idSort bool, sortOptions []ChannelSortOptions)
model/channel.go:123
↓ 3 callers
Function
resolveChannelTestUserID
(c *gin.Context)
controller/channel-test.go:58
↓ 3 callers
Function
resolveVisibleStages
( role: FlowRole, visibleStages?: FlowNodeKind[] )
web/default/src/features/dashboard/lib/flow.ts:260
↓ 3 callers
Function
responsesCallID
(item map[string]any)
service/relayconvert/internal/oai_responses/to_oai_chat_req.go:487
← previous
next →
1,101–1,200 of 10,602, ranked by callers