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
buildOpenAIModel
(modelName string, ownerByModel map[string]string)
controller/model.go:153
↓ 3 callers
Function
buildOperationsJson
( sourceOperations: ParamOverrideOperation[], options: { validate: boolean }, t: (key: string, options?:
web/default/src/features/channels/components/dialogs/param-override-editor-dialog.tsx:1061
↓ 3 callers
Function
buildOptionalFieldToggles
(model)
web/classic/src/pages/Setting/Ratio/hooks/useModelPricingEditorState.js:327
↓ 3 callers
Function
buildUsageFromGeminiResponse
(c *gin.Context, info *relaycommon.RelayInfo, response *dto.GeminiChatResponse)
relay/channel/gemini/relay-gemini.go:79
↓ 3 callers
Function
cacheDeleteToken
(key string)
model/token_cache.go:21
↓ 3 callers
Function
cacheIncrUserQuota
Add atomic quota operations using hash fields
model/user_cache.go:156
↓ 3 callers
Function
calculateAudioQuota
(info QuotaInfo)
service/quota.go:50
↓ 3 callers
Function
calculateModelPrice
({ record, selectedGroup, groupRatio, tokenUnit, displayPrice, currency, quotaDisplayType = 'USD
web/classic/src/helpers/utils.jsx:611
↓ 3 callers
Function
chartRecordValue
(value: unknown)
web/default/src/features/dashboard/components/flow/flow-charts.tsx:177
↓ 3 callers
Function
checkIsActive
( href: string, item: NavItem, mainNav = false )
web/default/src/components/layout/lib/url-utils.ts:57
↓ 3 callers
Function
checkUpdatePassword
(originalPassword string, newPassword string, userId int)
controller/user.go:879
↓ 3 callers
Function
chooseDB
(envName string, isLog bool)
model/main.go:127
↓ 3 callers
Function
chooseStatus
(primary, fallback int)
controller/model_sync.go:488
↓ 3 callers
Function
clamp
(v: number)
web/default/src/features/channels/components/numeric-spinner-input.tsx:57
↓ 3 callers
Function
clearSecureVerificationSession
(session sessions.Session)
middleware/secure_verification.go:80
↓ 3 callers
Function
clickHouseLogTTLExpression
(ttlDays int)
model/main.go:414
↓ 3 callers
Function
cloneRequestConverterSpec
(spec RequestConverterSpec)
service/relayconvert/request_registry.go:371
↓ 3 callers
Function
cloneStringMap
(src map[string]string)
relay/helper/billing_expr_request.go:79
↓ 3 callers
Function
closeBuy
()
web/classic/src/components/topup/SubscriptionPlansCard.jsx:101
↓ 3 callers
Function
collectPendingUpstreamModelChangesFromModels
( localModels []string, upstreamModels []string, ignoredModels []string, modelMapping map[string]string, )
controller/channel_upstream_update.go:172
↓ 3 callers
Function
combineBillingExpr
( baseExpr: string, requestRuleExpr: string )
web/default/src/features/pricing/lib/billing-expr.ts:565
↓ 3 callers
Function
combineBillingExpr
(baseExpr, requestRuleExpr)
web/classic/src/pages/Setting/Ratio/components/requestRuleExpr.js:409
↓ 3 callers
Function
compareAny
(left any, right any)
oauth/generic.go:534
↓ 3 callers
Function
compileFromCacheByHash
(exprStr, hash string)
pkg/billingexpr/compile.go:87
↓ 3 callers
Function
computeTimeRange
( days: number, startDate?: Date, endDate?: Date, useStartOfDay = false )
web/default/src/lib/time.ts:108
↓ 3 callers
Function
configureSSRFTestFetchSetting
(t *testing.T)
service/protected_fetch_client_test.go:42
↓ 3 callers
Function
convertRowsToJson
(updatedRows: EditorRow[])
web/default/src/components/json-editor.tsx:100
↓ 3 callers
Function
convertUSDToCurrency
(usdAmount, digits = 2)
web/classic/src/helpers/render.jsx:1121
↓ 3 callers
Function
copyText
(text)
web/classic/src/hooks/tokens/useTokensData.jsx:124
↓ 3 callers
Function
createAdvancedCustomRoute
()
web/default/src/features/channels/lib/advanced-custom.ts:344
↓ 3 callers
Function
createEmptyCondition
()
web/default/src/features/pricing/lib/billing-expr.ts:580
↓ 3 callers
Function
createEmptyCondition
()
web/classic/src/pages/Setting/Ratio/components/requestRuleExpr.js:37
↓ 3 callers
Function
createEmptyTimeCondition
()
web/default/src/features/pricing/lib/billing-expr.ts:584
↓ 3 callers
Function
createLoadingAssistantMessage
( startedAt: number = Date.now() )
web/default/src/features/playground/lib/message/message-utils.ts:92
↓ 3 callers
Function
createRouteKey
()
web/default/src/features/channels/components/dialogs/advanced-custom-editor-dialog.tsx:225
↓ 3 callers
Function
decodeFlowQuotaResponse
(t *testing.T, recorder *httptest.ResponseRecorder)
controller/usedata_flow_test.go:55
↓ 3 callers
Function
decodeWithFlexibleTimes
decodeWithFlexibleTimes unmarshals API responses while tolerating timestamp strings that omit timezone information by normalizing them to RFC3339Nano.
pkg/ionet/jsonutil.go:13
↓ 3 callers
Function
deriveLaneRatio
( lane: LaneKey, price: string, nextPromptPrice = promptPrice, nextLanePrices = lanePrices )
web/default/src/features/system-settings/models/model-pricing-sheet.tsx:230
↓ 3 callers
Function
editTagChannels
( params: TagOperationParams )
web/default/src/features/channels/api.ts:504
↓ 3 callers
Function
emailQuery
(tx *gorm.DB, email string)
model/user.go:208
↓ 3 callers
Function
enrichModels
enrichModels 批量填充附加信息:端点、渠道、分组、计费类型,避免 N+1 查询
controller/model_meta.go:173
↓ 3 callers
Function
ensureMapKeyInContext
(context map[string]interface{}, key string)
relay/common/override.go:1474
↓ 3 callers
Function
escapeHtml
(value: string)
web/default/src/components/ui/markdown.tsx:165
↓ 3 callers
Function
expandResponseConverterSteps
(spec ResponseConverterSpec)
service/relayconvert/response_registry.go:645
↓ 3 callers
Function
fetchCodexChannelWhamData
( c *gin.Context, fetch codexWhamFetchFunc, logPrefix string, userMessage string, )
controller/codex_usage.go:55
↓ 3 callers
Function
fetchContainerDetails
(containerId)
web/classic/src/components/table/model-deployments/modals/ViewLogsModal.jsx:193
↓ 3 callers
Function
fetchProviders
()
web/classic/src/components/settings/CustomOAuthSetting.jsx:242
↓ 3 callers
Function
fetchTokenKey
( id: number )
web/default/src/features/keys/api.ts:103
↓ 3 callers
Method
fetchedTaskIDs
()
service/task_polling_test.go:87
↓ 3 callers
Function
flowQuotaBaseQuery
(startTime int64, endTime int64)
model/usedata_flow.go:36
↓ 3 callers
Function
formatChartTime
( timestamp: number, granularity: TimeGranularity = 'day' )
web/default/src/lib/time.ts:162
↓ 3 callers
Function
formatCompactNumber
( value: number | null | undefined, locales?: Intl.LocalesArgument )
web/default/src/lib/format.ts:41
↓ 3 callers
Function
formatCreemPrice
( price: number, currency: 'USD' | 'EUR' )
web/default/src/features/wallet/lib/format.ts:28
↓ 3 callers
Function
formatCurrencyValue
( value: number, options: ResolvedCurrencyFormatOptions, meta: DisplayMeta )
web/default/src/lib/currency.ts:283
↓ 3 callers
Function
formatJsonForTextarea
(value: string)
web/default/src/features/system-settings/models/utils.ts:19
↓ 3 callers
Function
formatNumber
(value: number)
web/default/src/features/dashboard/lib/flow.ts:831
↓ 3 callers
Function
formatRatioValue
(value, digits = 6)
web/classic/src/helpers/render.jsx:1241
↓ 3 callers
Function
formatResetPeriod
( plan: Partial<SubscriptionPlan>, t: TFunction )
web/default/src/features/subscriptions/lib/format.ts:47
↓ 3 callers
Function
formatTimestamp
(ts: number)
web/default/src/features/subscriptions/lib/format.ts:65
↓ 3 callers
Function
formatTimestampRelative
( timestamp?: number, unit: 'seconds' | 'milliseconds' = 'seconds', locales?: Intl.LocalesArgument )
web/default/src/lib/format.ts:155
↓ 3 callers
Function
formatUserLogs
(logs []*Log, startIdx int)
model/log.go:116
↓ 3 callers
Function
geminiQueryAuth
()
web/default/src/features/channels/lib/advanced-custom.ts:202
↓ 3 callers
Function
generateRandomKey
()
web/classic/src/components/table/model-deployments/modals/CreateDeploymentModal.jsx:57
↓ 3 callers
Function
getAdvancedCustomRouteUpstreamPath
( route: AdvancedCustomRoute )
web/default/src/features/channels/lib/advanced-custom.ts:747
↓ 3 callers
Function
getApiKeys
( params: GetApiKeysParams = {} )
web/default/src/features/keys/api.ts:35
↓ 3 callers
Function
getAwsErrorStatusCode
getAwsErrorStatusCode extracts HTTP status code from AWS SDK error
relay/channel/aws/relay-aws.go:33
↓ 3 callers
Function
getBgColorClass
(color?: string)
web/default/src/lib/colors.ts:82
↓ 3 callers
Function
getChannelIcon
(channelType)
web/classic/src/helpers/render.jsx:330
↓ 3 callers
Function
getChannelTypeIcon
(type: number)
web/default/src/features/channels/lib/channel-utils.ts:47
↓ 3 callers
Function
getChartThemeTokens
(resolvedTheme: string)
web/default/src/features/pricing/components/model-details-charts.tsx:53
↓ 3 callers
Function
getCodexUsage
( channelId: number )
web/default/src/features/channels/api.ts:324
↓ 3 callers
Function
getConfiguredGroupRatio
( groupRatio: Record<string, number>, group: string )
web/default/src/features/pricing/lib/model-helpers.ts:45
↓ 3 callers
Function
getDashboardChartColors
(domainLength: number)
web/default/src/features/dashboard/lib/charts.ts:42
↓ 3 callers
Function
getDefaultTimeRange
()
web/default/src/features/usage-logs/lib/utils.ts:78
↓ 3 callers
Function
getDeployment
(id: string | number)
web/default/src/features/models/api.ts:376
↓ 3 callers
Function
getDisplayGroupRatio
( model: PricingModel, selectedGroup?: string )
web/default/src/features/pricing/lib/model-helpers.ts:60
↓ 3 callers
Function
getDuplicateSources
(rows: MappingRow[])
web/default/src/features/channels/components/model-mapping-editor.tsx:46
↓ 3 callers
Function
getDuration
()
service/notify-limit.go:25
↓ 3 callers
Function
getDynamicPriceEntries
( tier: ParsedTier | null, options: DynamicPriceOptions )
web/default/src/features/pricing/lib/dynamic-price.ts:126
↓ 3 callers
Function
getDynamicPricingSummary
( model: PricingModel, options: DynamicPriceOptions )
web/default/src/features/pricing/lib/dynamic-price.ts:156
↓ 3 callers
Function
getFormValues
()
web/classic/src/hooks/usage-logs/useUsageLogsData.jsx:236
↓ 3 callers
Function
getFreshModuleAccess
( module: HeaderNavModule )
web/default/src/lib/nav-modules.ts:176
↓ 3 callers
Function
getHeaderValueFromContext
(context map[string]interface{}, headerName string)
relay/common/override.go:1488
↓ 3 callers
Function
getInitValues
()
web/classic/src/components/table/users/modals/EditUserModal.jsx:82
↓ 3 callers
Function
getInitValues
()
web/classic/src/components/table/redemptions/modals/EditRedemptionModal.jsx:67
↓ 3 callers
Function
getInitValues
()
web/classic/src/components/table/tokens/modals/EditTokenModal.jsx:73
↓ 3 callers
Function
getInitValues
()
web/classic/src/components/table/models/modals/EditModelModal.jsx:115
↓ 3 callers
Function
getLogTypeConfig
(type: number)
web/default/src/features/usage-logs/lib/utils.ts:64
↓ 3 callers
Function
getMjRequestPath
(path string)
relay/mjproxy_handler.go:679
↓ 3 callers
Function
getModelListGroups
(c *gin.Context)
controller/model.go:178
↓ 3 callers
Function
getModelPriceItems
( priceData, t, quotaDisplayType = 'USD', )
web/classic/src/helpers/utils.jsx:774
↓ 3 callers
Function
getNameRuleConfig
( t: TFunction )
web/default/src/features/models/constants.ts:42
↓ 3 callers
Function
getNodeKey
(node: ParsedNode, index: number)
web/default/src/components/ai-elements/response-content.ts:167
↓ 3 callers
Function
getOptionValue
(options: Array<{ key: string; value: string }> | undefined, defaults: T)
web/default/src/features/system-settings/hooks/use-system-options.ts:102
↓ 3 callers
Function
getOrderedRatioTypes
( ratioTypes: Partial<Record<RatioType, RatioDifferenceEntry>>, filter?: string )
web/default/src/features/system-settings/models/upstream-ratio-sync-helpers.ts:92
↓ 3 callers
Function
getPerfMetricsSummary
( hours = 24 )
web/default/src/features/performance-metrics/api.ts:23
↓ 3 callers
Function
getRelativeTime
(publishDate)
web/classic/src/helpers/utils.jsx:505
↓ 3 callers
Function
getSavedGranularity
( override?: TimeGranularity )
web/default/src/features/dashboard/lib/filters.ts:78
↓ 3 callers
Function
getSubscriptionResetSub
(t *testing.T, id int)
model/subscription_reset_test.go:22
↓ 3 callers
Function
getSuccessRateLevel
(rate: number)
web/default/src/features/performance-metrics/lib/format.ts:55
← previous
next →
1,001–1,100 of 10,602, ranked by callers