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
buildApiPath
(endpoint: string, isAdmin: boolean)
web/default/src/features/usage-logs/api.ts:36
↓ 2 callers
Function
buildAssertionResult
( credential: PublicKeyCredential | null )
web/default/src/lib/passkey.ts:215
↓ 2 callers
Function
buildAssertionResult
(assertion)
web/classic/src/helpers/passkey.js:128
↓ 2 callers
Function
buildChannelAffinityKeyHint
(s string)
service/channel_affinity.go:424
↓ 2 callers
Function
buildChannelListQuery
(group string, statusFilter int, typeFilter int)
controller/channel.go:84
↓ 2 callers
Function
buildCurlCommand
(args: { endpoint: string apiKey: string model: string })
web/default/src/features/dashboard/components/overview/overview-dashboard.tsx:170
↓ 2 callers
Function
buildDashboardFlowData
( rows: FlowQuotaDataItem[], metric: FlowMetric = 'quota', options: FlowBuildOptions = {} )
web/default/src/features/dashboard/lib/flow.ts:972
↓ 2 callers
Function
buildDiscordOAuthUrl
(clientId: string, state: string)
web/default/src/lib/oauth.ts:35
↓ 2 callers
Function
buildFlowSankeySpec
( flow: DashboardFlowGraph, title: string, valueFormatter: (value: number) => string = formatNumber, l
web/default/src/features/dashboard/lib/flow.ts:1118
↓ 2 callers
Function
buildFormDefaults
(defaults: FlatPerfDefaults)
web/default/src/features/system-settings/maintenance/performance-section.tsx:100
↓ 2 callers
Function
buildFormDefaults
( defaults: FlatPasskeyDefaults )
web/default/src/features/system-settings/auth/passkey-section.tsx:97
↓ 2 callers
Function
buildFormDefaults
(defaults: FlatGrokDefaults)
web/default/src/features/system-settings/models/grok-settings-card.tsx:72
↓ 2 callers
Function
buildGitHubOAuthUrl
(clientId: string, state: string)
web/default/src/lib/oauth.ts:28
↓ 2 callers
Function
buildGroupPerformance
(model: PricingModel)
web/default/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/default/src/lib/oauth.ts:68
↓ 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
buildMessageContent
( textContent, imageUrls = [], imageEnabled = false, )
web/classic/src/helpers/utils.jsx:413
↓ 2 callers
Function
buildModalFormValues
(rule)
web/classic/src/pages/Setting/Operation/SettingsChannelAffinity.jsx:273
↓ 2 callers
Function
buildNodeFilterOptions
( rows: FlowQuotaDataItem[], metric: FlowMetric, role: FlowRole, visibleStages: FlowNodeKind[] | undef
web/default/src/features/dashboard/lib/flow.ts:880
↓ 2 callers
Function
buildOIDCOAuthUrl
( authUrl: string, clientId: string, state: string )
web/default/src/lib/oauth.ts:51
↓ 2 callers
Function
buildOpField
buildOpField 构建语言无关的操作描述(写入 Other.op)。 前端依据 action(稳定操作标识) + params(结构化参数) 在渲染期用 i18n 本地化展示, 因此不在数据库中存储自然语言句子。
model/log.go:189
↓ 2 callers
Function
buildQueryParams
( params: Record<string, unknown> )
web/default/src/features/usage-logs/lib/utils.ts:97
↓ 2 callers
Function
buildQueryParams
( timeRange: { start_timestamp: number; end_timestamp: number }, filters?: { time_granularity?: TimeGranul
web/default/src/features/dashboard/lib/filters.ts:155
↓ 2 callers
Function
buildSearchParams
( filters: LogFilters, logCategory: LogCategory )
web/default/src/features/usage-logs/lib/filter.ts:38
↓ 2 callers
Function
buildSettingJSON
* Build the setting JSON string from form extra settings
web/default/src/features/channels/lib/channel-form.ts:493
↓ 2 callers
Function
buildSettingsJSON
* Build the settings JSON string (for type-specific config like vertex_key_type)
web/default/src/features/channels/lib/channel-form.ts:508
↓ 2 callers
Function
buildSubscriptionResetResult
(plan *SubscriptionPlan, subs []UserSubscription, advanceResetTime bool)
model/subscription.go:1004
↓ 2 callers
Function
buildSubscriptionSummaries
(subs []UserSubscription)
model/subscription.go:887
↓ 2 callers
Function
buildSyncTargetSpec
(type, key)
web/classic/src/components/table/channels/modals/ParamOverrideEditorModal.jsx:776
↓ 2 callers
Function
buildSyntaxError
( error: unknown, jsonString: string )
web/default/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/default/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:440
↓ 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/default/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:163
↓ 2 callers
Function
cacheIncrTokenQuota
(key string, increment int64)
model/token_cache.go:30
↓ 2 callers
Function
cacheWriteTokensTotal
(summary textQuotaSummary)
service/text_quota.go:60
↓ 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/default/src/features/pricing/lib/price.ts:63
↓ 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/default/src/features/chat/lib/chat-links.ts:87
↓ 2 callers
Function
checkAndPersistChannelUpstreamModelUpdates
( channel *model.Channel, settings *dto.ChannelOtherSettings, force bool, allowAutoApply bool, )
controller/channel_upstream_update.go:356
↓ 2 callers
Function
checkAndSendQuotaNotify
(relayInfo *relaycommon.RelayInfo, quota int, preConsumedQuota int)
service/quota.go:457
↓ 2 callers
Function
checkClusterNameAvailability
(name: string)
web/default/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:706
↓ 2 callers
Function
checkTelegramAuthorization
(params map[string][]string, token string)
controller/telegram.go:101
↓ 2 callers
Function
checkVerificationMethods
()
web/default/src/features/auth/secure-verification/api.ts:36
↓ 2 callers
Function
clampPercent
(value)
web/classic/src/components/table/channels/modals/CodexUsageModal.jsx:50
↓ 2 callers
Function
clampThinkingBudget
(modelName string, budget int)
service/relayconvert/internal/shared/gemini/request.go:215
↓ 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
clickHouseCreateTableHasTTL
(createTableSQL string)
model/main.go:482
↓ 2 callers
Function
clickHouseLogCreateTableSQL
(ttlDays int)
model/main.go:429
↓ 2 callers
Function
clickHouseLogTTLClause
(ttlDays int)
model/main.go:421
↓ 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
closeModal
()
web/classic/src/components/settings/CustomOAuthSetting.jsx:236
↓ 2 callers
Function
collect
(ch)
web/classic/src/hooks/channels/useChannelsData.jsx:1115
↓ 2 callers
Function
collectPendingApplyUpstreamModelChanges
(settings dto.ChannelOtherSettings)
controller/channel_upstream_update.go:852
↓ 2 callers
Function
commonPointer
(value T)
relay/channel/claude/relay_claude_test.go:13
↓ 2 callers
Function
compactFlowSelectionLabel
(count: number)
web/default/src/features/dashboard/lib/flow-selection.ts:55
↓ 2 callers
Function
completeReasoningTiming
( message: Message, completedAt: number = Date.now() )
web/default/src/features/playground/lib/message/message-timing-utils.ts:53
↓ 2 callers
Function
computeBuildRevision
()
web/default/src/lib/build-metadata.ts:77
↓ 2 callers
Function
configToMap
辅助函数:将配置对象转换为map
setting/config/config.go:93
↓ 2 callers
Function
confirmMissingModelMappings
(missingModels)
web/classic/src/components/table/channels/modals/EditChannelModal.jsx:1447
↓ 2 callers
Function
confirmStatusCodeRisk
(detailItems)
web/classic/src/components/table/channels/modals/EditChannelModal.jsx:1514
↓ 2 callers
Function
confirmSwitchToDefaultFrontend
(t, options = {})
web/classic/src/helpers/frontendTheme.js:25
↓ 2 callers
Function
convertAliStatus
(aliStatus string)
relay/channel/task/ali/adaptor.go:624
↓ 2 callers
Function
convertRowsToJson
(updatedRows: MappingRow[])
web/default/src/features/channels/components/model-mapping-editor.tsx:137
↓ 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
copyTextToClipboard
(text, successMessage = t('已复制到剪贴板'))
web/classic/src/components/settings/personal/components/TwoFASetting.jsx:192
↓ 2 callers
Function
copyToClipboard
()
web/default/src/components/ai-elements/code-block.tsx:623
↓ 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/default/src/features/usage-logs/components/columns/column-helpers.tsx:166
↓ 2 callers
Function
createChannelTestCachePatch
( responseTime?: number, completedAt = Date.now() )
web/default/src/features/channels/components/dialogs/channel-test-dialog.tsx:145
↓ 2 callers
Function
createDefaultOperation
()
web/default/src/features/channels/components/dialogs/param-override-editor-dialog.tsx:520
↓ 2 callers
Function
createDefaultVisualConfig
()
web/default/src/features/pricing/lib/tier-expr.ts:81
↓ 2 callers
Function
createDefaultVisualConfig
()
web/classic/src/pages/Setting/Ratio/components/TieredPricingEditor.jsx:125
↓ 2 callers
Function
createDurationColumn
(config: { submitTimeKey: string finishTimeKey: string unit?: 'seconds' | 'milliseconds' headerLabel:
web/default/src/features/usage-logs/components/columns/column-helpers.tsx:105
↓ 2 callers
Function
createEmptyTimeCondition
()
web/classic/src/pages/Setting/Ratio/components/requestRuleExpr.js:41
↓ 2 callers
Function
createGroupPricingId
()
web/default/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/default/src/features/system-settings/models/ratio-settings-card.tsx:91
↓ 2 callers
Function
createKeySourceRow
(source?: Partial<KeySource>)
web/default/src/features/system-settings/general/channel-affinity/rule-editor-dialog.tsx:113
↓ 2 callers
Function
createLegacyPendingSystemTask
(t *testing.T, taskType string)
model/system_task_test.go:24
← previous
next →
1,601–1,700 of 10,602, ranked by callers