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
getDateDaysAgo
(days: number)
web/src/features/system-settings/maintenance/log-settings-section.tsx:121
↓ 2 callers
Function
getDateHoursAgo
(hours: number)
web/src/features/system-settings/maintenance/log-settings-section.tsx:115
↓ 2 callers
Function
getDefaultIconName
(type: string)
web/src/features/system-settings/integrations/payment-methods-visual-editor.tsx:53
↓ 2 callers
Function
getDisplayMeta
(config: CurrencyConfig)
web/src/lib/currency.ts:187
↓ 2 callers
Function
getDisplayName
(user?: UserProfile)
web/src/features/profile/lib/format.ts:41
↓ 2 callers
Function
getDynamicDisplayGroupRatio
( model: PricingModel, selectedGroup?: string )
web/src/features/pricing/lib/dynamic-price.ts:69
↓ 2 callers
Function
getDynamicPricingTiers
(model: PricingModel)
web/src/features/pricing/lib/dynamic-price.ts:110
↓ 2 callers
Function
getFetchModelsResponseBody
(method string, requestURL string, channel *model.Channel, headers http.Header)
controller/channel_upstream_update.go:307
↓ 2 callers
Function
getFirstResponseTimeColor
( seconds: number )
web/src/features/usage-logs/lib/format.ts:184
↓ 2 callers
Function
getFlowStages
(role: FlowRole)
web/src/features/dashboard/lib/flow.ts:256
↓ 2 callers
Function
getHardcodedCompletionModelRatio
(name string)
setting/ratio_setting/model_ratio.go:492
↓ 2 callers
Function
getHeaderNavAccess
(module string)
middleware/header_nav.go:17
↓ 2 callers
Function
getImageBase64sFromForm
(c *gin.Context, fieldName string)
relay/channel/ali/image.go:93
↓ 2 callers
Function
getImageConfig
(reader io.Reader)
service/image.go:161
↓ 2 callers
Function
getIoAPIKey
(c *gin.Context)
controller/deployment.go:16
↓ 2 callers
Function
getIoClient
(c *gin.Context)
controller/deployment.go:42
↓ 2 callers
Function
getJsonValidationState
(value: string)
web/src/components/json-code-editor/json-code-editor-utils.ts:56
↓ 2 callers
Function
getLogFiles
getLogFiles 读取日志目录中的日志文件列表
controller/performance.go:197
↓ 2 callers
Function
getMatchLabel
(mode: string)
web/src/features/system-settings/models/tiered-pricing-editor.tsx:932
↓ 2 callers
Function
getMinTopup
()
controller/topup.go:179
↓ 2 callers
Function
getModuleAccessFromStatus
( status: Record<string, unknown> | null, module: HeaderNavModule )
web/src/lib/nav-modules.ts:165
↓ 2 callers
Function
getNodeName
(instance: SystemInstance)
web/src/features/system-info/components/system-instances-panel.tsx:110
↓ 2 callers
Function
getOperationSummary
( operation: ParamOverrideOperation, index: number )
web/src/features/channels/components/dialogs/param-override-editor-dialog.tsx:562
↓ 2 callers
Function
getOptionLabel
( options: ReadonlyArray<{ value: string; label: string }>, value: string )
web/src/features/channels/components/dialogs/advanced-custom-editor-dialog.tsx:131
↓ 2 callers
Function
getOrBuildAC
(dict []string)
service/str.go:98
↓ 2 callers
Function
getParamOverrideAuditRecorder
(context map[string]interface{})
relay/common/override.go:235
↓ 2 callers
Function
getPasskeyStatus
()
web/src/features/auth/passkey/api.ts:31
↓ 2 callers
Function
getPayMoney
(amount int64, group string)
controller/topup.go:149
↓ 2 callers
Function
getPayloadConfigFromPayload
( config: ChartConfig, payload: unknown, key: string )
web/src/components/ui/chart.tsx:346
↓ 2 callers
Function
getPaymentIcon
( paymentType: string | undefined, className: string = 'h-4 w-4', icon?: string, altName?: string )
web/src/features/wallet/lib/ui.tsx:65
↓ 2 callers
Function
getPerfMetrics
( modelName: string, hours = 24 )
web/src/features/performance-metrics/api.ts:32
↓ 2 callers
Function
getPinnedColumnMap
(pinnedColumns?: DataTablePinnedColumn[])
web/src/components/data-table/core/column-pinning.ts:49
↓ 2 callers
Function
getQuotaTypeConfig
( t: TFunction )
web/src/features/models/constants.ts:146
↓ 2 callers
Function
getRequestRuleMatchOptions
(source: string)
web/src/features/pricing/lib/billing-expr.ts:610
↓ 2 callers
Function
getRequestedCodeLanguage
(language?: string)
web/src/components/ai-elements/code-block.tsx:207
↓ 2 callers
Function
getResolvedColumnClassNameFromMap
( getColumnClassName?: DataTableColumnClassName, pinnedColumnById?: Map<string, DataTablePinnedColumn> )
web/src/components/data-table/core/column-pinning.ts:33
↓ 2 callers
Function
getResponseTimeColor
( seconds: number, completionTokens: number )
web/src/features/usage-logs/lib/format.ts:206
↓ 2 callers
Function
getRoleLabel
(role?: number)
web/src/lib/roles.ts:43
↓ 2 callers
Function
getRunwayDays
( remainQuota: number, recentUsage: number )
web/src/features/dashboard/components/overview/summary-cards.tsx:102
↓ 2 callers
Function
getSMTPAuth
()
common/email.go:29
↓ 2 callers
Function
getSavedLanguage
(user: AuthUser)
web/src/features/auth/lib/auth-redirect.ts:23
↓ 2 callers
Function
getSectionMeta
(sectionId: SectionId)
web/src/features/system-settings/utils/section-registry.ts:87
↓ 2 callers
Function
getSetupStatus
()
web/src/features/setup/api.ts:23
↓ 2 callers
Function
getSmtpSecurityMode
(values: { SMTPSSLEnabled: boolean SMTPStartTLSEnabled: boolean })
web/src/features/system-settings/integrations/email-settings-section.tsx:77
↓ 2 callers
Function
getString
(value: unknown)
web/src/features/channels/lib/ollama-utils.ts:42
↓ 2 callers
Function
getStripeMinTopup
()
controller/topup_stripe.go:418
↓ 2 callers
Function
getSubscriptionPlanCache
()
model/subscription.go:86
↓ 2 callers
Function
getSubscriptionPlanInfoCache
()
model/subscription.go:107
↓ 2 callers
Function
getSubscriptionUsed
(t *testing.T, id int)
service/task_billing_test.go:266
↓ 2 callers
Function
getSystemTheme
()
web/src/context/theme-provider.tsx:62
↓ 2 callers
Function
getTableSizing
(props: DataTableViewProps<TData>)
web/src/components/data-table/core/data-table-view.tsx:230
↓ 2 callers
Function
getTagModels
( tag: string )
web/src/features/channels/api.ts:515
↓ 2 callers
Function
getTextUnits
(value: string)
web/src/components/ui/markdown.tsx:197
↓ 2 callers
Function
getTierCacheMode
( tier: Partial<VisualTier> | null | undefined )
web/src/features/pricing/lib/tier-expr.ts:51
↓ 2 callers
Function
getTieredBillingSummary
( other: LogOtherData | null )
web/src/features/usage-logs/lib/format.ts:314
↓ 2 callers
Function
getTokenKeyColumnType
(t *testing.T, db *gorm.DB, dialect string)
controller/token_test.go:236
↓ 2 callers
Function
getUpstreamURLs
(locale string)
controller/model_sync.go:43
↓ 2 callers
Function
getUptimeStatus
()
web/src/features/dashboard/api.ts:88
↓ 2 callers
Function
getUsageBillingPathLabel
( t: TFunction, adminInfo: LogOtherData['admin_info'] )
web/src/features/usage-logs/components/dialogs/details-dialog.tsx:172
↓ 2 callers
Function
getUsageStatusBadge
( rateLimit: CodexRateLimit | undefined, t: (key: string) => string )
web/src/features/channels/components/dialogs/codex-usage-dialog.tsx:400
↓ 2 callers
Function
getUserActionMessage
(action: ManageUserAction)
web/src/features/users/lib/user-actions.ts:37
↓ 2 callers
Function
getUserModels
(group: string)
web/src/features/playground/api.ts:46
↓ 2 callers
Function
getUserQuotaDates
( params: { start_timestamp: number end_timestamp: number default_time?: string username?: s
web/src/features/dashboard/api.ts:37
↓ 2 callers
Function
getVendors
(params?: { p?: number page_size?: number })
web/src/features/models/api.ts:121
↓ 2 callers
Function
getVertexArrayKeys
(keys string)
controller/channel.go:576
↓ 2 callers
Function
getWaffoPancakeBuyerEmail
(user *model.User)
controller/topup_waffo_pancake.go:95
↓ 2 callers
Function
getWaffoPayMoney
getWaffoPayMoney converts the user-facing amount to USD for Waffo payment. Waffo only accepts USD, so this function handles the conversion from differ
controller/topup_waffo.go:89
↓ 2 callers
Function
getWaffoSDK
()
controller/topup_waffo.go:26
↓ 2 callers
Function
getWeChatIdByCode
(code string)
controller/wechat.go:23
↓ 2 callers
Function
getXunfeiAuthUrl
(c *gin.Context, apiKey string, apiSecret string, modelName string)
relay/channel/xunfei/relay-xunfei.go:266
↓ 2 callers
Function
handleAdd
()
web/src/features/system-settings/integrations/amount-options-visual-editor.tsx:57
↓ 2 callers
Function
handleAddCondition
(index: number)
web/src/features/system-settings/models/tiered-pricing-editor.tsx:818
↓ 2 callers
Function
handleApply
()
web/src/features/dashboard/components/models/models-filter-dialog.tsx:126
↓ 2 callers
Function
handleBranchChange
(newBranch: number)
web/src/components/ai-elements/branch.tsx:73
↓ 2 callers
Function
handleChange
(value: boolean)
web/src/features/auth/components/legal-consent.tsx:48
↓ 2 callers
Function
handleClearSelection
()
web/src/features/channels/components/data-table-bulk-actions.tsx:81
↓ 2 callers
Function
handleConditionChange
( conditionIndex: number, next: TierConditionInput )
web/src/features/system-settings/models/tiered-pricing-editor.tsx:561
↓ 2 callers
Function
handleDropdownMenuItemSelect
( event: DropdownMenuItemSelectEvent, onClick?: React.MouseEventHandler<HTMLElement>, onSelect?: Dropdow
web/src/components/ui/dropdown-menu-events.ts:29
↓ 2 callers
Function
handleEdit
(faq: FAQ)
web/src/features/system-settings/content/faq-section.tsx:146
↓ 2 callers
Function
handleOAuthError
handleOAuthError handles OAuth errors and returns translated message
controller/oauth.go:456
↓ 2 callers
Function
handleOpenChange
(open: boolean)
web/src/features/profile/components/dialogs/two-fa-backup-dialog.tsx:80
↓ 2 callers
Function
handlePageChange
(newPage: number)
web/src/features/channels/components/dialogs/multi-key-manage-dialog.tsx:158
↓ 2 callers
Function
handlePriceChange
(field: keyof VisualTier, value: number)
web/src/features/system-settings/models/tiered-pricing-editor.tsx:577
↓ 2 callers
Function
handleRemove
(amount: number)
web/src/features/system-settings/integrations/amount-options-visual-editor.tsx:76
↓ 2 callers
Function
handleSelect
(selectedValue: string)
web/src/components/ui/combobox-input.tsx:102
↓ 2 callers
Function
handleTestChannel
( id: number, options?: { channelName?: string testModel?: string endpointType?: string st
web/src/features/channels/lib/channel-actions.ts:271
↓ 2 callers
Function
handleUpdateTagField
( tag: string, fieldName: 'priority' | 'weight', value: number, queryClient?: QueryClient, onSuccess
web/src/features/channels/lib/channel-actions.ts:237
↓ 2 callers
Function
handleWeChatDialogChange
(open: boolean)
web/src/features/auth/sign-up/components/sign-up-form.tsx:201
↓ 2 callers
Function
handleWeChatDialogChange
(open: boolean)
web/src/features/auth/sign-in/components/user-auth-form.tsx:202
↓ 2 callers
Method
hasBillableUsage
hasBillableUsage reports whether this request should incur any charge. A request can carry zero tokens yet still be billable via a tool-call surcharge
service/text_quota.go:75
↓ 2 callers
Function
hasConfiguredOverrideValue
(value: unknown)
web/src/features/channels/components/drawers/channel-mutate-drawer.tsx:308
↓ 2 callers
Function
hasPricingValue
(value?: string)
web/src/features/system-settings/models/model-pricing-snapshots.ts:61
↓ 2 callers
Function
hasToolSurcharge
(other: LogOtherData | null)
web/src/features/usage-logs/lib/format.ts:116
↓ 2 callers
Function
hasValidTokenFields
(value: Record<string, unknown>)
web/src/lib/auth-session.ts:117
↓ 2 callers
Function
increaseTokenQuota
(id int, quota int)
model/token.go:401
↓ 2 callers
Function
initUserSessionSettings
()
common/init.go:139
↓ 2 callers
Function
insertSubscriptionOrderForPaymentGuardTest
(t *testing.T, tradeNo string, userID int, planID int, paymentProvider string)
model/payment_method_guard_test.go:39
↓ 2 callers
Function
insertSubscriptionPlanForPaymentGuardTest
(t *testing.T, id int)
model/payment_method_guard_test.go:23
↓ 2 callers
Function
insertTopUpForPaymentGuardTest
(t *testing.T, tradeNo string, userID int, paymentProvider string)
model/payment_method_guard_test.go:54
↓ 2 callers
Function
insertUsersForPaginationTest
(t *testing.T, total int)
model/user_pagination_test.go:12
← previous
next →
1,801–1,900 of 9,195, ranked by callers