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
↓ 2 callers
Function
parseHeaderNavBoolean
( raw: unknown, fallback: boolean )
web/default/src/lib/nav-modules.ts:57
↓ 2 callers
Function
parseHeaderNavModulesFromStatus
( status: Record<string, unknown> | null )
web/default/src/lib/nav-modules.ts:139
↓ 2 callers
Function
parseHeaderReplacementTokens
(value interface{})
relay/common/override.go:1192
↓ 2 callers
Function
parseJsonRows
(json: string)
web/default/src/components/json-editor.tsx:47
↓ 2 callers
Function
parseModelTags
(tags: string | undefined)
web/default/src/features/models/lib/model-utils.ts:66
↓ 2 callers
Function
parseModelsList
(models: string)
web/default/src/features/channels/lib/channel-utils.ts:222
↓ 2 callers
Function
parseNestedRatioMap
( value: string )
web/default/src/features/system-settings/models/group-ratio-visual-editor.tsx:126
↓ 2 callers
Function
parsePruneObjectsDraft
(valueText)
web/classic/src/components/table/channels/modals/ParamOverrideEditorModal.jsx:624
↓ 2 callers
Function
parseReturnErrorDraft
(valueText)
web/classic/src/components/table/channels/modals/ParamOverrideEditorModal.jsx:544
↓ 2 callers
Function
parseSidebarConfig
* Parse backend SidebarModulesAdmin configuration
web/default/src/hooks/use-sidebar-config.ts:124
↓ 2 callers
Function
parseStatusCodeKey
(rawKey: string)
web/default/src/features/channels/lib/status-code-risk-guard.ts:21
↓ 2 callers
Function
parseStatusCodeKey
(rawKey)
web/classic/src/components/table/channels/modals/statusCodeRiskGuard.js:21
↓ 2 callers
Function
parseStatusCodeMappingTarget
(rawValue: unknown)
web/default/src/features/channels/lib/status-code-risk-guard.ts:27
↓ 2 callers
Function
parseStatusCodeMappingTarget
(rawValue)
web/classic/src/components/table/channels/modals/statusCodeRiskGuard.js:32
↓ 2 callers
Function
parseStatusFilter
(statusParam string)
controller/channel.go:56
↓ 2 callers
Function
parseStringItems
(items: PrefillGroup['items'])
web/default/src/features/models/components/prefill-group-shared.ts:69
↓ 2 callers
Function
parseTaskData
(data: unknown)
web/default/src/features/usage-logs/components/columns/task-logs-columns.tsx:46
↓ 2 callers
Function
parseUpstreamUpdateMeta
(settings: unknown)
web/default/src/features/channels/lib/upstream-update-utils.ts:27
↓ 2 callers
Function
parseUpstreamUpdateMeta
(settings)
web/classic/src/hooks/channels/upstreamUpdateUtils.js:27
↓ 2 callers
Function
parseUserSidebarConfig
* Parse user-level sidebar_modules. Returns null when the value is empty, * invalid, or otherwise unusable — the caller treats null as "do not narrow
web/default/src/hooks/use-sidebar-config.ts:147
↓ 2 callers
Function
parseVolcengineAuth
(apiKey string)
relay/channel/volcengine/tts.go:110
↓ 2 callers
Function
parseWaffoPayMethods
(value: string)
web/default/src/features/system-settings/integrations/payment-settings-section.tsx:207
↓ 2 callers
Function
patchAPIInstance
(instance)
web/classic/src/helpers/api.js:53
↓ 2 callers
Function
patchGeminiZeroCompletionUsage
patchGeminiZeroCompletionUsage estimates completion tokens locally when upstream usageMetadata was billable but reported zero completion tokens even t
relay/channel/gemini/relay-gemini.go:45
↓ 2 callers
Function
policyEffect
(policy []string)
service/authz/resolver.go:78
↓ 2 callers
Method
prefix
()
pkg/cachex/namespace.go:8
↓ 2 callers
Function
prepareCredentialRequestOptions
( payload: any )
web/default/src/lib/passkey.ts:153
↓ 2 callers
Function
prepareCredentialRequestOptions
(payload)
web/classic/src/helpers/passkey.js:81
↓ 2 callers
Method
prepareForInsert
(tx *gorm.DB)
model/user.go:482
↓ 2 callers
Function
priceToUnitCost
(price: number | string)
web/default/src/features/system-settings/models/tiered-pricing-editor.tsx:320
↓ 2 callers
Function
pricingEndpointTypesFromPricing
(pricings []Pricing)
model/pricing_endpoint_test.go:73
↓ 2 callers
Function
processChartData
( data: QuotaDataItem[], timeGranularity: TimeGranularity = 'day', t?: TFunction, chartCornerRadius?:
web/default/src/features/dashboard/lib/charts.ts:70
↓ 2 callers
Function
processFormMap
(formMap map[string]any, v any)
common/gin.go:293
↓ 2 callers
Function
processIncompleteThinkTags
(content, reasoningContent = '')
web/classic/src/helpers/utils.jsx:386
↓ 2 callers
Function
processThinkTags
(content, reasoningContent = '')
web/classic/src/helpers/utils.jsx:351
↓ 2 callers
Function
providerParams
providerParams returns map with Provider key for i18n templates
controller/oauth.go:19
↓ 2 callers
Function
queueSearchValue
(value: string)
web/default/src/components/data-table/toolbar/toolbar.tsx:218
↓ 2 callers
Function
rankingBucketLabel
(bucket int64, config rankingPeriodConfig)
service/rankings.go:529
↓ 2 callers
Function
rankingBucketTs
(bucket int64)
service/rankings.go:525
↓ 2 callers
Function
rankingGrowthPct
(current int64, previous int64)
service/rankings.go:564
↓ 2 callers
Function
ratioToPrice
(ratio?: string, denominator?: string)
web/default/src/features/system-settings/models/model-pricing-snapshots.ts:76
↓ 2 callers
Function
readStoredValue
(key: string)
web/default/src/features/playground/lib/storage/storage.ts:49
↓ 2 callers
Function
readTableCompactModes
()
web/classic/src/helpers/utils.jsx:567
↓ 2 callers
Method
reasoningDelta
(delta string)
service/relayconvert/internal/oai_responses/to_oai_chat_stream_resp.go:195
↓ 2 callers
Method
reasoningOutput
(status string)
service/relayconvert/internal/oai_chat/to_oai_responses_stream_resp.go:394
↓ 2 callers
Method
recordOperation
(mode, path, from, to string, value interface{})
relay/common/override.go:243
↓ 2 callers
Function
recordSubscriptionResetUserLogs
(result *model.SubscriptionResetResult, adminInfo map[string]interface{})
controller/subscription.go:410
↓ 2 callers
Function
recordUserSecurityAudit
recordUserSecurityAudit 记录普通用户自己的安全敏感操作(如 passkey 绑定/解绑)。 这类日志没有管理员操作者,不写 admin_info;同时不依赖 AdminAuth/RootAuth 的兜底。
controller/audit.go:113
↓ 2 callers
Function
redirectAfterLogin
(target?: string)
web/default/src/routes/oauth/$provider.tsx:146
↓ 2 callers
Function
redisBucketKey
(key bucketKey)
pkg/perf_metrics/metrics.go:426
↓ 2 callers
Function
refreshModels
()
web/classic/src/components/table/channels/modals/OllamaModelModal.jsx:310
↓ 2 callers
Function
refreshUserConfig
()
web/classic/src/hooks/common/useSidebar.js:169
↓ 2 callers
Function
register
(payload: RegisterPayload)
web/default/src/features/auth/api.ts:108
↓ 2 callers
Function
registerChannelRoutes
(apiRouter *gin.RouterGroup)
router/channel-router.go:19
↓ 2 callers
Function
registeredSystemTaskHandlers
()
service/system_task.go:66
↓ 2 callers
Function
removeCondition
(ci)
web/classic/src/pages/Setting/Ratio/components/TieredPricingEditor.jsx:519
↓ 2 callers
Function
removeTag
(tagToRemove: string)
web/default/src/components/tag-input.tsx:55
↓ 2 callers
Function
renderAmount
()
web/classic/src/components/topup/index.jsx:803
↓ 2 callers
Function
renderAuditContent
( other: LogOtherData | null | undefined, t: (key: string, opts?: Record<string, unknown>) => string )
web/default/src/features/usage-logs/lib/format.ts:398
↓ 2 callers
Function
renderCellContent
( cell: Cell<TData, unknown> )
web/default/src/components/data-table/layout/card-cell-utils.ts:39
↓ 2 callers
Function
renderItem
(monitor, idx)
web/classic/src/helpers/dashboard.jsx:198
↓ 2 callers
Function
renderMath
(source: string, displayMode: boolean)
web/default/src/components/ui/markdown.tsx:183
↓ 2 callers
Function
renderMonitorList
( monitors, getUptimeStatusColor, getUptimeStatusText, t, )
web/classic/src/helpers/dashboard.jsx:171
↓ 2 callers
Function
renderNavItem
(item)
web/classic/src/components/layout/SiderBar.jsx:314
↓ 2 callers
Function
renderTableBody
( props: DataTableViewProps<TData>, rows: Row<TData>[], colSpan: number, getColumnClassName: DataTable
web/default/src/components/data-table/core/data-table-view.tsx:248
↓ 2 callers
Function
renderValueTag
(value, color = 'default')
web/classic/src/pages/Setting/Ratio/UpstreamRatioSync.jsx:746
↓ 2 callers
Function
requireOrderedSubstrings
(t *testing.T, s string, parts ...string)
relay/channel/openai/chat_via_responses_test.go:171
↓ 2 callers
Function
requirePasskeyRegistrationVerification
(c *gin.Context, userID int)
controller/passkey.go:531
↓ 2 callers
Function
requireSecureVerificationMethod
(c *gin.Context, method string)
controller/passkey.go:569
↓ 2 callers
Function
requireSuccessfulFlowRows
( response: FlowResponse, fallbackMessage: string )
web/default/src/features/dashboard/lib/flow-selection.ts:32
↓ 2 callers
Function
resetPricingFilters
({ handleChange, setShowWithRecharge, setCurrency, setShowRatio, setViewMode, setFilterGroup, se
web/classic/src/helpers/utils.jsx:1072
↓ 2 callers
Function
resetUserSubscriptionTx
(tx *gorm.DB, sub *UserSubscription, plan *SubscriptionPlan, now int64, advanceResetTime bool)
model/subscription.go:987
↓ 2 callers
Function
resolveAdvanceResetTime
(value *bool)
controller/subscription.go:403
↓ 2 callers
Function
resolveOAuthSiteUrl
( serverAddress: string, fallback: string )
web/default/src/features/system-settings/auth/oauth-callback-url.ts:20
↓ 2 callers
Function
resolveOllamaBaseUrl
(channel: Channel | null)
web/default/src/features/channels/lib/ollama-utils.ts:66
↓ 2 callers
Function
resolveRateLimitWindows
(data: RateLimitSource | null)
web/default/src/features/channels/components/dialogs/codex-usage-dialog.tsx:280
↓ 2 callers
Function
resolveRateLimitWindows
(data)
web/classic/src/components/table/channels/modals/CodexUsageModal.jsx:80
↓ 2 callers
Function
resolveSidebarView
(pathname: string)
web/default/src/components/layout/lib/sidebar-view-registry.ts:41
↓ 2 callers
Function
resolveStatusCodeRiskConfirm
(confirmed)
web/classic/src/components/table/channels/modals/EditChannelModal.jsx:1505
↓ 2 callers
Function
resolveStreamValue
(value)
web/classic/src/components/table/model-deployments/modals/ViewLogsModal.jsx:84
↓ 2 callers
Function
respPtr
(value T)
service/relayconvert/response_registry_test.go:671
↓ 2 callers
Function
respondTaskError
respondTaskError 统一输出 Task 错误响应(含 429 限流提示改写)
controller/relay.go:609
↓ 2 callers
Function
responseGeminiChat2OpenAI
(c *gin.Context, response *dto.GeminiChatResponse)
relay/channel/gemini/relay-gemini.go:106
↓ 2 callers
Function
responseStreamEventItemID
(event *dto.ResponsesStreamResponse)
service/relayconvert/internal/oai_responses/to_oai_chat_resp.go:254
↓ 2 callers
Function
responseStreamResults
(state *ResponseStreamState, values []any, usage *dto.Usage)
service/relayconvert/response_registry.go:600
↓ 2 callers
Function
responsesArgumentsString
(value any)
service/relayconvert/internal/oai_responses/to_oai_chat_req.go:499
↓ 2 callers
Function
responsesPartPayload
(part map[string]any, key string)
service/relayconvert/internal/oai_responses/to_oai_chat_req.go:473
↓ 2 callers
Function
responsesRequestTextToChatResponseFormat
(raw json.RawMessage)
service/relayconvert/internal/oai_responses/to_oai_chat_req.go:392
↓ 2 callers
Function
responsesRequestToolChoiceToChat
(raw json.RawMessage)
service/relayconvert/internal/oai_responses/to_oai_chat_req.go:358
↓ 2 callers
Function
roleBaselineAllows
(e *casbin.SyncedEnforcer, roleKey string, permission Permission)
service/authz/resolver.go:53
↓ 2 callers
Function
roundRankingFloat
(value float64)
service/rankings.go:574
↓ 2 callers
Function
roundRatioValue
(value float64)
controller/ratio_sync.go:698
↓ 2 callers
Function
rowsToObject
(rows)
web/classic/src/pages/Setting/Ratio/ToolPriceSettings.jsx:50
↓ 2 callers
Method
ruleQuery
(query *gorm.DB, ptype string, rule []string)
service/authz/adapter.go:84
↓ 2 callers
Function
rulesToJson
(rules)
web/classic/src/pages/Setting/Operation/SettingsChannelAffinity.jsx:138
↓ 2 callers
Function
runProgram
(prog *vm.Program, params TokenParams, request RequestInput)
pkg/billingexpr/run.go:51
↓ 2 callers
Function
saveAffiliateCode
(code: string)
web/default/src/features/auth/lib/storage.ts:98
↓ 2 callers
Function
saveAndOpenErrorLog
()
electron/main.js:15
↓ 2 callers
Function
saveChartPreferences
( preferences: DashboardChartPreferences )
web/default/src/features/dashboard/lib/filters.ts:128
↓ 2 callers
Function
saveMessages
(messages: Message[])
web/default/src/features/playground/lib/storage/storage.ts:375
← previous
next →
2,101–2,200 of 10,602, ranked by callers