MCPcopy Create free account

hub / github.com/QuantumNous/new-api / functions

Functions10,602 in github.com/QuantumNous/new-api

↓ 3 callersFunctionbuildOpenAIModel
(modelName string, ownerByModel map[string]string)
controller/model.go:153
↓ 3 callersFunctionbuildOperationsJson
( sourceOperations: ParamOverrideOperation[], options: { validate: boolean }, t: (key: string, options?:
web/default/src/features/channels/components/dialogs/param-override-editor-dialog.tsx:1061
↓ 3 callersFunctionbuildOptionalFieldToggles
(model)
web/classic/src/pages/Setting/Ratio/hooks/useModelPricingEditorState.js:327
↓ 3 callersFunctionbuildUsageFromGeminiResponse
(c *gin.Context, info *relaycommon.RelayInfo, response *dto.GeminiChatResponse)
relay/channel/gemini/relay-gemini.go:79
↓ 3 callersFunctioncacheDeleteToken
(key string)
model/token_cache.go:21
↓ 3 callersFunctioncacheIncrUserQuota
Add atomic quota operations using hash fields
model/user_cache.go:156
↓ 3 callersFunctioncalculateAudioQuota
(info QuotaInfo)
service/quota.go:50
↓ 3 callersFunctioncalculateModelPrice
({ record, selectedGroup, groupRatio, tokenUnit, displayPrice, currency, quotaDisplayType = 'USD
web/classic/src/helpers/utils.jsx:611
↓ 3 callersFunctionchartRecordValue
(value: unknown)
web/default/src/features/dashboard/components/flow/flow-charts.tsx:177
↓ 3 callersFunctioncheckIsActive
( href: string, item: NavItem, mainNav = false )
web/default/src/components/layout/lib/url-utils.ts:57
↓ 3 callersFunctioncheckUpdatePassword
(originalPassword string, newPassword string, userId int)
controller/user.go:879
↓ 3 callersFunctionchooseDB
(envName string, isLog bool)
model/main.go:127
↓ 3 callersFunctionchooseStatus
(primary, fallback int)
controller/model_sync.go:488
↓ 3 callersFunctionclamp
(v: number)
web/default/src/features/channels/components/numeric-spinner-input.tsx:57
↓ 3 callersFunctionclearSecureVerificationSession
(session sessions.Session)
middleware/secure_verification.go:80
↓ 3 callersFunctionclickHouseLogTTLExpression
(ttlDays int)
model/main.go:414
↓ 3 callersFunctioncloneRequestConverterSpec
(spec RequestConverterSpec)
service/relayconvert/request_registry.go:371
↓ 3 callersFunctioncloneStringMap
(src map[string]string)
relay/helper/billing_expr_request.go:79
↓ 3 callersFunctioncloseBuy
()
web/classic/src/components/topup/SubscriptionPlansCard.jsx:101
↓ 3 callersFunctioncollectPendingUpstreamModelChangesFromModels
( localModels []string, upstreamModels []string, ignoredModels []string, modelMapping map[string]string, )
controller/channel_upstream_update.go:172
↓ 3 callersFunctioncombineBillingExpr
( baseExpr: string, requestRuleExpr: string )
web/default/src/features/pricing/lib/billing-expr.ts:565
↓ 3 callersFunctioncombineBillingExpr
(baseExpr, requestRuleExpr)
web/classic/src/pages/Setting/Ratio/components/requestRuleExpr.js:409
↓ 3 callersFunctioncompareAny
(left any, right any)
oauth/generic.go:534
↓ 3 callersFunctioncompileFromCacheByHash
(exprStr, hash string)
pkg/billingexpr/compile.go:87
↓ 3 callersFunctioncomputeTimeRange
( days: number, startDate?: Date, endDate?: Date, useStartOfDay = false )
web/default/src/lib/time.ts:108
↓ 3 callersFunctionconfigureSSRFTestFetchSetting
(t *testing.T)
service/protected_fetch_client_test.go:42
↓ 3 callersFunctionconvertRowsToJson
(updatedRows: EditorRow[])
web/default/src/components/json-editor.tsx:100
↓ 3 callersFunctionconvertUSDToCurrency
(usdAmount, digits = 2)
web/classic/src/helpers/render.jsx:1121
↓ 3 callersFunctioncopyText
(text)
web/classic/src/hooks/tokens/useTokensData.jsx:124
↓ 3 callersFunctioncreateAdvancedCustomRoute
()
web/default/src/features/channels/lib/advanced-custom.ts:344
↓ 3 callersFunctioncreateEmptyCondition
()
web/default/src/features/pricing/lib/billing-expr.ts:580
↓ 3 callersFunctioncreateEmptyCondition
()
web/classic/src/pages/Setting/Ratio/components/requestRuleExpr.js:37
↓ 3 callersFunctioncreateEmptyTimeCondition
()
web/default/src/features/pricing/lib/billing-expr.ts:584
↓ 3 callersFunctioncreateLoadingAssistantMessage
( startedAt: number = Date.now() )
web/default/src/features/playground/lib/message/message-utils.ts:92
↓ 3 callersFunctioncreateRouteKey
()
web/default/src/features/channels/components/dialogs/advanced-custom-editor-dialog.tsx:225
↓ 3 callersFunctiondecodeFlowQuotaResponse
(t *testing.T, recorder *httptest.ResponseRecorder)
controller/usedata_flow_test.go:55
↓ 3 callersFunctiondecodeWithFlexibleTimes
decodeWithFlexibleTimes unmarshals API responses while tolerating timestamp strings that omit timezone information by normalizing them to RFC3339Nano.
pkg/ionet/jsonutil.go:13
↓ 3 callersFunctionderiveLaneRatio
( lane: LaneKey, price: string, nextPromptPrice = promptPrice, nextLanePrices = lanePrices )
web/default/src/features/system-settings/models/model-pricing-sheet.tsx:230
↓ 3 callersFunctioneditTagChannels
( params: TagOperationParams )
web/default/src/features/channels/api.ts:504
↓ 3 callersFunctionemailQuery
(tx *gorm.DB, email string)
model/user.go:208
↓ 3 callersFunctionenrichModels
enrichModels 批量填充附加信息:端点、渠道、分组、计费类型,避免 N+1 查询
controller/model_meta.go:173
↓ 3 callersFunctionensureMapKeyInContext
(context map[string]interface{}, key string)
relay/common/override.go:1474
↓ 3 callersFunctionescapeHtml
(value: string)
web/default/src/components/ui/markdown.tsx:165
↓ 3 callersFunctionexpandResponseConverterSteps
(spec ResponseConverterSpec)
service/relayconvert/response_registry.go:645
↓ 3 callersFunctionfetchCodexChannelWhamData
( c *gin.Context, fetch codexWhamFetchFunc, logPrefix string, userMessage string, )
controller/codex_usage.go:55
↓ 3 callersFunctionfetchContainerDetails
(containerId)
web/classic/src/components/table/model-deployments/modals/ViewLogsModal.jsx:193
↓ 3 callersFunctionfetchProviders
()
web/classic/src/components/settings/CustomOAuthSetting.jsx:242
↓ 3 callersFunctionfetchTokenKey
( id: number )
web/default/src/features/keys/api.ts:103
↓ 3 callersMethodfetchedTaskIDs
()
service/task_polling_test.go:87
↓ 3 callersFunctionflowQuotaBaseQuery
(startTime int64, endTime int64)
model/usedata_flow.go:36
↓ 3 callersFunctionformatChartTime
( timestamp: number, granularity: TimeGranularity = 'day' )
web/default/src/lib/time.ts:162
↓ 3 callersFunctionformatCompactNumber
( value: number | null | undefined, locales?: Intl.LocalesArgument )
web/default/src/lib/format.ts:41
↓ 3 callersFunctionformatCreemPrice
( price: number, currency: 'USD' | 'EUR' )
web/default/src/features/wallet/lib/format.ts:28
↓ 3 callersFunctionformatCurrencyValue
( value: number, options: ResolvedCurrencyFormatOptions, meta: DisplayMeta )
web/default/src/lib/currency.ts:283
↓ 3 callersFunctionformatJsonForTextarea
(value: string)
web/default/src/features/system-settings/models/utils.ts:19
↓ 3 callersFunctionformatNumber
(value: number)
web/default/src/features/dashboard/lib/flow.ts:831
↓ 3 callersFunctionformatRatioValue
(value, digits = 6)
web/classic/src/helpers/render.jsx:1241
↓ 3 callersFunctionformatResetPeriod
( plan: Partial<SubscriptionPlan>, t: TFunction )
web/default/src/features/subscriptions/lib/format.ts:47
↓ 3 callersFunctionformatTimestamp
(ts: number)
web/default/src/features/subscriptions/lib/format.ts:65
↓ 3 callersFunctionformatTimestampRelative
( timestamp?: number, unit: 'seconds' | 'milliseconds' = 'seconds', locales?: Intl.LocalesArgument )
web/default/src/lib/format.ts:155
↓ 3 callersFunctionformatUserLogs
(logs []*Log, startIdx int)
model/log.go:116
↓ 3 callersFunctiongeminiQueryAuth
()
web/default/src/features/channels/lib/advanced-custom.ts:202
↓ 3 callersFunctiongenerateRandomKey
()
web/classic/src/components/table/model-deployments/modals/CreateDeploymentModal.jsx:57
↓ 3 callersFunctiongetAdvancedCustomRouteUpstreamPath
( route: AdvancedCustomRoute )
web/default/src/features/channels/lib/advanced-custom.ts:747
↓ 3 callersFunctiongetApiKeys
( params: GetApiKeysParams = {} )
web/default/src/features/keys/api.ts:35
↓ 3 callersFunctiongetAwsErrorStatusCode
getAwsErrorStatusCode extracts HTTP status code from AWS SDK error
relay/channel/aws/relay-aws.go:33
↓ 3 callersFunctiongetBgColorClass
(color?: string)
web/default/src/lib/colors.ts:82
↓ 3 callersFunctiongetChannelIcon
(channelType)
web/classic/src/helpers/render.jsx:330
↓ 3 callersFunctiongetChannelTypeIcon
(type: number)
web/default/src/features/channels/lib/channel-utils.ts:47
↓ 3 callersFunctiongetChartThemeTokens
(resolvedTheme: string)
web/default/src/features/pricing/components/model-details-charts.tsx:53
↓ 3 callersFunctiongetCodexUsage
( channelId: number )
web/default/src/features/channels/api.ts:324
↓ 3 callersFunctiongetConfiguredGroupRatio
( groupRatio: Record<string, number>, group: string )
web/default/src/features/pricing/lib/model-helpers.ts:45
↓ 3 callersFunctiongetDashboardChartColors
(domainLength: number)
web/default/src/features/dashboard/lib/charts.ts:42
↓ 3 callersFunctiongetDefaultTimeRange
()
web/default/src/features/usage-logs/lib/utils.ts:78
↓ 3 callersFunctiongetDeployment
(id: string | number)
web/default/src/features/models/api.ts:376
↓ 3 callersFunctiongetDisplayGroupRatio
( model: PricingModel, selectedGroup?: string )
web/default/src/features/pricing/lib/model-helpers.ts:60
↓ 3 callersFunctiongetDuplicateSources
(rows: MappingRow[])
web/default/src/features/channels/components/model-mapping-editor.tsx:46
↓ 3 callersFunctiongetDuration
()
service/notify-limit.go:25
↓ 3 callersFunctiongetDynamicPriceEntries
( tier: ParsedTier | null, options: DynamicPriceOptions )
web/default/src/features/pricing/lib/dynamic-price.ts:126
↓ 3 callersFunctiongetDynamicPricingSummary
( model: PricingModel, options: DynamicPriceOptions )
web/default/src/features/pricing/lib/dynamic-price.ts:156
↓ 3 callersFunctiongetFormValues
()
web/classic/src/hooks/usage-logs/useUsageLogsData.jsx:236
↓ 3 callersFunctiongetFreshModuleAccess
( module: HeaderNavModule )
web/default/src/lib/nav-modules.ts:176
↓ 3 callersFunctiongetHeaderValueFromContext
(context map[string]interface{}, headerName string)
relay/common/override.go:1488
↓ 3 callersFunctiongetInitValues
()
web/classic/src/components/table/users/modals/EditUserModal.jsx:82
↓ 3 callersFunctiongetInitValues
()
web/classic/src/components/table/redemptions/modals/EditRedemptionModal.jsx:67
↓ 3 callersFunctiongetInitValues
()
web/classic/src/components/table/tokens/modals/EditTokenModal.jsx:73
↓ 3 callersFunctiongetInitValues
()
web/classic/src/components/table/models/modals/EditModelModal.jsx:115
↓ 3 callersFunctiongetLogTypeConfig
(type: number)
web/default/src/features/usage-logs/lib/utils.ts:64
↓ 3 callersFunctiongetMjRequestPath
(path string)
relay/mjproxy_handler.go:679
↓ 3 callersFunctiongetModelListGroups
(c *gin.Context)
controller/model.go:178
↓ 3 callersFunctiongetModelPriceItems
( priceData, t, quotaDisplayType = 'USD', )
web/classic/src/helpers/utils.jsx:774
↓ 3 callersFunctiongetNameRuleConfig
( t: TFunction )
web/default/src/features/models/constants.ts:42
↓ 3 callersFunctiongetNodeKey
(node: ParsedNode, index: number)
web/default/src/components/ai-elements/response-content.ts:167
↓ 3 callersFunctiongetOptionValue
(options: Array<{ key: string; value: string }> | undefined, defaults: T)
web/default/src/features/system-settings/hooks/use-system-options.ts:102
↓ 3 callersFunctiongetOrderedRatioTypes
( ratioTypes: Partial<Record<RatioType, RatioDifferenceEntry>>, filter?: string )
web/default/src/features/system-settings/models/upstream-ratio-sync-helpers.ts:92
↓ 3 callersFunctiongetPerfMetricsSummary
( hours = 24 )
web/default/src/features/performance-metrics/api.ts:23
↓ 3 callersFunctiongetRelativeTime
(publishDate)
web/classic/src/helpers/utils.jsx:505
↓ 3 callersFunctiongetSavedGranularity
( override?: TimeGranularity )
web/default/src/features/dashboard/lib/filters.ts:78
↓ 3 callersFunctiongetSubscriptionResetSub
(t *testing.T, id int)
model/subscription_reset_test.go:22
↓ 3 callersFunctiongetSuccessRateLevel
(rate: number)
web/default/src/features/performance-metrics/lib/format.ts:55
← previousnext →1,001–1,100 of 10,602, ranked by callers