Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/QuantumNous/new-api
/ functions
Functions
9,195 in github.com/QuantumNous/new-api
⨍
Functions
9,195
◇
Types & classes
1,481
↓ 2 callers
Function
buildDashboardFlowData
( rows: FlowQuotaDataItem[], metric: FlowMetric = 'quota', options: FlowBuildOptions = {} )
web/src/features/dashboard/lib/flow.ts:972
↓ 2 callers
Function
buildDiscordOAuthUrl
(clientId: string, state: string)
web/src/lib/oauth.ts:33
↓ 2 callers
Function
buildFlowSankeySpec
( flow: DashboardFlowGraph, title: string, valueFormatter: (value: number) => string = formatNumber, l
web/src/features/dashboard/lib/flow.ts:1118
↓ 2 callers
Function
buildFormDefaults
(defaults: FlatPerfDefaults)
web/src/features/system-settings/maintenance/performance-section.tsx:100
↓ 2 callers
Function
buildFormDefaults
( defaults: FlatPasskeyDefaults )
web/src/features/system-settings/auth/passkey-section.tsx:97
↓ 2 callers
Function
buildFormDefaults
(defaults: FlatGrokDefaults)
web/src/features/system-settings/models/grok-settings-card.tsx:72
↓ 2 callers
Function
buildGitHubOAuthUrl
(clientId: string, state: string)
web/src/lib/oauth.ts:26
↓ 2 callers
Function
buildGroupPerformance
(model: PricingModel)
web/src/features/pricing/lib/mock-stats.ts:311
↓ 2 callers
Function
buildLegacyParamOverride
(paramOverride map[string]interface{})
relay/common/override.go:164
↓ 2 callers
Function
buildLinuxDOOAuthUrl
(clientId: string, state: string)
web/src/lib/oauth.ts:66
↓ 2 callers
Function
buildLogEndpoint
buildLogEndpoint constructs the request path for fetching logs
pkg/ionet/container.go:83
↓ 2 callers
Function
buildMaskedTokenResponses
(tokens []*model.Token)
controller/token.go:26
↓ 2 callers
Function
buildNodeFilterOptions
( rows: FlowQuotaDataItem[], metric: FlowMetric, role: FlowRole, visibleStages: FlowNodeKind[] | undef
web/src/features/dashboard/lib/flow.ts:880
↓ 2 callers
Function
buildOIDCOAuthUrl
( authUrl: string, clientId: string, state: string )
web/src/lib/oauth.ts:49
↓ 2 callers
Function
buildOpField
buildOpField 构建语言无关的操作描述(写入 Other.op)。 前端依据 action(稳定操作标识) + params(结构化参数) 在渲染期用 i18n 本地化展示, 因此不在数据库中存储自然语言句子。
model/log.go:189
↓ 2 callers
Function
buildQueryParams
( params: Record<string, unknown> )
web/src/features/usage-logs/lib/utils.ts:97
↓ 2 callers
Function
buildQueryParams
( timeRange: { start_timestamp: number; end_timestamp: number }, filters?: { time_granularity?: TimeGranul
web/src/features/dashboard/lib/filters.ts:155
↓ 2 callers
Function
buildRouteURL
(route dto.AdvancedCustomRoute, converter string, info *relaycommon.RelayInfo)
relay/channel/advancedcustom/adaptor.go:394
↓ 2 callers
Function
buildSearchParams
( filters: LogFilters, logCategory: LogCategory )
web/src/features/usage-logs/lib/filter.ts:38
↓ 2 callers
Function
buildSettingJSON
* Build the setting JSON string from form extra settings
web/src/features/channels/lib/channel-form.ts:539
↓ 2 callers
Function
buildSettingsJSON
* Build the settings JSON string (for type-specific config like vertex_key_type)
web/src/features/channels/lib/channel-form.ts:554
↓ 2 callers
Function
buildSubscriptionResetResult
(plan *SubscriptionPlan, subs []UserSubscription, advanceResetTime bool)
model/subscription.go:1019
↓ 2 callers
Function
buildSubscriptionSummaries
(subs []UserSubscription)
model/subscription.go:902
↓ 2 callers
Function
buildSyntaxError
( error: unknown, jsonString: string )
web/src/features/system-settings/models/utils.ts:92
↓ 2 callers
Function
buildTestLogOther
(c *gin.Context, info *relaycommon.RelayInfo, priceData types.PriceData, usage *dto.Usage, tieredResult *billi
controller/channel-test.go:556
↓ 2 callers
Function
buildTimeRangeParams
* Build time range parameters with default values * Shared logic for all log types
web/src/features/usage-logs/lib/utils.ts:116
↓ 2 callers
Function
buildUpstreamModelUpdateTaskNotificationContent
( checkedChannels int, changedChannels int, detectedAddModels int, detectedRemoveModels int, autoAddedMod
controller/channel_upstream_update.go:557
↓ 2 callers
Function
buildUsageFromGeminiMetadata
(metadata *dto.GeminiUsageMetadata, fallbackPromptTokens int)
relay/channel/gemini/relay-gemini.go:25
↓ 2 callers
Function
buildUserFilterOptions
( rows: FlowQuotaDataItem[], metric: FlowMetric = 'quota', palette?: readonly string[] )
web/src/features/dashboard/lib/flow.ts:837
↓ 2 callers
Function
buildUserOAuthBindingsResponse
(userId int)
controller/custom_oauth.go:444
↓ 2 callers
Function
cacheDecrUserQuota
(userId int, delta int64)
model/user_cache.go:154
↓ 2 callers
Function
cacheIncrTokenQuota
(key string, increment int64)
model/token_cache.go:30
↓ 2 callers
Function
cacheWriteTokensTotal
(summary textQuotaSummary)
service/text_quota.go:79
↓ 2 callers
Function
cachedLoginSessionKey
(t *testing.T, server *miniredis.Miniredis)
service/auth_session_test.go:87
↓ 2 callers
Function
calculateTokenPrice
* Calculate token price in USD. * * Returns NaN when the required ratio field is missing/null so callers can * skip rendering that price type.
web/src/features/pricing/lib/price.ts:63
↓ 2 callers
Function
calculateUserPermissions
计算用户权限的辅助函数
controller/user.go:549
↓ 2 callers
Function
cancelResultTimeout
()
web/src/routes/oauth/$provider.tsx:111
↓ 2 callers
Function
channelAffinityUsageCacheEntryKey
(ruleName, usingGroup, keyFp string)
service/channel_affinity.go:903
↓ 2 callers
Function
channelHasSensitiveChanges
(channel *PatchChannel, origin *model.Channel, requestData map[string]any)
controller/channel_authz.go:5
↓ 2 callers
Function
channelOwnerName
(channelType int)
controller/model.go:113
↓ 2 callers
Function
chatArgumentsRawMessage
(arguments string)
service/relayconvert/internal/oai_chat/to_oai_responses_resp.go:196
↓ 2 callers
Function
chatCompletionsViaResponses
(c *gin.Context, info *relaycommon.RelayInfo, adaptor channel.Adaptor, request *dto.GeneralOpenAIRequest)
relay/chat_completions_via_responses.go:73
↓ 2 callers
Function
chatLinkRequiresApiKey
(url: string)
web/src/features/chat/lib/chat-links.ts:87
↓ 2 callers
Function
checkAndSendQuotaNotify
(relayInfo *relaycommon.RelayInfo, quota int, preConsumedQuota int)
service/quota.go:457
↓ 2 callers
Function
checkClusterNameAvailability
(name: string)
web/src/features/models/api.ts:624
↓ 2 callers
Function
checkConditions
(data []byte, contextJSON string, conditions []ConditionOperation, logic string)
relay/common/override.go:512
↓ 2 callers
Function
checkDangerousContent
(content string, index int, itemType string)
setting/console_setting/validation.go:43
↓ 2 callers
Function
checkMySQLChineseSupport
checkMySQLChineseSupport ensures the MySQL connection and current schema default charset/collation can store Chinese characters. It allows common Chin
model/main.go:724
↓ 2 callers
Function
checkRedisRateLimit
检查Redis中的请求限制
middleware/model-rate-limit.go:26
↓ 2 callers
Function
clampThinkingBudget
(modelName string, budget int)
service/relayconvert/internal/shared/gemini/request.go:215
↓ 2 callers
Function
classifyDashboardCredential
(c *gin.Context)
middleware/auth.go:150
↓ 2 callers
Function
claudeMessageContentParts
(content any)
service/relayconvert/internal/oai_responses/to_claude_messages_req.go:277
↓ 2 callers
Function
clearChannelReadOnlyFields
(channel *PatchChannel, requestData map[string]any)
controller/channel_authz.go:93
↓ 2 callers
Function
clearPendingTimer
()
web/src/features/channels/lib/channel-field-update.ts:39
↓ 2 callers
Function
clickHouseCreateTableHasTTL
(createTableSQL string)
model/main.go:500
↓ 2 callers
Function
clickHouseLogCreateTableSQL
(ttlDays int)
model/main.go:447
↓ 2 callers
Function
clickHouseLogTTLClause
(ttlDays int)
model/main.go:439
↓ 2 callers
Function
cloneClaudeUsage
(usage *ClaudeUsage)
dto/billing_usage.go:165
↓ 2 callers
Function
cloneGeminiUsageMetadata
(metadata GeminiUsageMetadata)
dto/billing_usage.go:182
↓ 2 callers
Function
cloneOpenAIUsage
(usage *Usage)
dto/billing_usage.go:152
↓ 2 callers
Function
cloneResponseConverterSpec
(spec ResponseConverterSpec)
service/relayconvert/response_registry.go:695
↓ 2 callers
Function
cloneStringAnyMap
(src map[string]interface{})
service/channel_affinity.go:437
↓ 2 callers
Function
cloneTextConverterSpec
(spec TextConverterSpec)
service/relayconvert/text_converter_registry.go:360
↓ 2 callers
Function
cloneTextConverterStrings
(values []string)
service/relayconvert/text_converter_registry.go:367
↓ 2 callers
Function
closeActiveSource
(target: StreamEventSource)
web/src/features/playground/hooks/use-stream-request.ts:65
↓ 2 callers
Function
collectPendingApplyUpstreamModelChanges
(settings dto.ChannelOtherSettings)
controller/channel_upstream_update.go:969
↓ 2 callers
Function
collectStreamFunctionCallNames
(data string, seen map[string]struct{}, names *[]string)
relay/channel/openai/relay-openai.go:197
↓ 2 callers
Function
collectUserIDs
(users []*User)
model/user_pagination_test.go:30
↓ 2 callers
Function
commonPointer
(value T)
relay/channel/claude/relay_claude_test.go:13
↓ 2 callers
Function
compactFlowSelectionLabel
(count: number)
web/src/features/dashboard/lib/flow-selection.ts:55
↓ 2 callers
Function
completeReasoningTiming
( message: Message, completedAt: number = Date.now() )
web/src/features/playground/lib/message/message-timing-utils.ts:53
↓ 2 callers
Function
computeBuildRevision
()
web/src/lib/build-metadata.ts:76
↓ 2 callers
Function
configToMap
辅助函数:将配置对象转换为map
setting/config/config.go:93
↓ 2 callers
Function
convertAliStatus
(aliStatus string)
relay/channel/task/ali/adaptor.go:624
↓ 2 callers
Function
convertRowsToJson
(updatedRows: MappingRow[])
web/src/features/channels/components/model-mapping-editor.tsx:136
↓ 2 callers
Function
copyHeaderInContext
(context map[string]interface{}, fromHeader, toHeader string, keepOrigin bool)
relay/common/override.go:1236
↓ 2 callers
Function
copyRequest
(req *dto.ClaudeRequest, version string)
relay/channel/vertex/dto.go:26
↓ 2 callers
Function
copyToClipboard
()
web/src/components/ai-elements/code-block.tsx:623
↓ 2 callers
Function
countClaudeStreamBillableTools
(c *gin.Context, info *relaycommon.RelayInfo, claudeResponse *dto.ClaudeResponse)
relay/channel/claude/relay-claude.go:136
↓ 2 callers
Function
countSystemTasks
(t *testing.T, taskType string)
service/system_task_test.go:58
↓ 2 callers
Function
createChannelColumn
(config: { accessorKey?: string headerLabel: string })
web/src/features/usage-logs/components/columns/column-helpers.tsx:166
↓ 2 callers
Function
createChannelFieldUpdateScheduler
( onUpdate: (value: number) => void, timers: ChannelFieldUpdateTimers = browserTimers )
web/src/features/channels/lib/channel-field-update.ts:32
↓ 2 callers
Function
createChannelTestCachePatch
( responseTime?: number, completedAt = Date.now() )
web/src/features/channels/components/dialogs/channel-test-dialog.tsx:145
↓ 2 callers
Function
createDefaultOperation
()
web/src/features/channels/components/dialogs/param-override-editor-dialog.tsx:521
↓ 2 callers
Function
createDefaultVisualConfig
()
web/src/features/pricing/lib/tier-expr.ts:81
↓ 2 callers
Function
createDurationColumn
(config: { submitTimeKey: string finishTimeKey: string unit?: 'seconds' | 'milliseconds' headerLabel:
web/src/features/usage-logs/components/columns/column-helpers.tsx:105
↓ 2 callers
Function
createGroupPricingId
()
web/src/features/system-settings/models/group-ratio-visual-editor.tsx:102
↓ 2 callers
Method
createJWTTokenWithKey
(apiKey string)
relay/channel/task/kling/adaptor.go:313
↓ 2 callers
Function
createJsonStringField
( t: Translate, options?: Parameters<typeof validateJsonString>[1] )
web/src/features/system-settings/models/ratio-settings-card.tsx:91
↓ 2 callers
Function
createKeySourceRow
(source?: Partial<KeySource>)
web/src/features/system-settings/general/channel-affinity/rule-editor-dialog.tsx:114
↓ 2 callers
Function
createLegacyPendingSystemTask
(t *testing.T, taskType string)
model/system_task_test.go:24
↓ 2 callers
Function
createLoginSession
(userID int, expectedAuthVersion int64, loginMethod, ip, userAgent string)
service/auth_session.go:56
↓ 2 callers
Function
createMessageVersion
(content: string)
web/src/features/playground/lib/message/message-utils.ts:32
↓ 2 callers
Function
createProgressColumn
(config: { accessorKey?: string headerLabel: string })
web/src/features/usage-logs/components/columns/column-helpers.tsx:247
↓ 2 callers
Function
createRefreshRunner
( runtime: AuthRefreshRuntime )
web/src/lib/auth-session.ts:209
↓ 2 callers
Function
createRouteKeys
(count: number)
web/src/features/channels/components/dialogs/advanced-custom-editor-dialog.tsx:243
↓ 2 callers
Function
createRowId
()
web/src/features/channels/components/model-mapping-editor.tsx:73
↓ 2 callers
Function
createScrollLayerSynchronizer
( source: ScrollSource, layers: ScrollLayers, requestFrame: RequestFrame = window.requestAnimationFrame
web/src/components/json-code-editor/json-code-editor-utils.ts:103
↓ 2 callers
Function
createSignedJWT
(email, privateKeyPEM string)
relay/channel/vertex/service_account.go:66
↓ 2 callers
Function
createStreamRequestController
( runtime: StreamRequestControllerRuntime )
web/src/features/playground/hooks/use-stream-request.ts:59
← previous
next →
1,601–1,700 of 9,195, ranked by callers