Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/QuantumNous/new-api
/ functions
Functions
15,409 in github.com/QuantumNous/new-api
⨍
Functions
15,409
◇
Types & classes
2,241
↓ 2 callers
Function
getSubscriptionUsed
(t *testing.T, id int)
service/task_billing_test.go:555
↓ 2 callers
Function
getSystemTheme
()
web/src/context/theme-provider.tsx:64
↓ 2 callers
Function
getTableSizing
(props: DataTableViewProps<TData>)
web/src/components/data-table/core/data-table-view.tsx:227
↓ 2 callers
Function
getTagModels
( tag: string )
web/src/features/channels/api.ts:698
↓ 2 callers
Method
getTarget
()
relay/responses_websocket.go:840
↓ 2 callers
Function
getTaskArtifacts
(taskId: string)
web/src/features/usage-logs/api.ts:177
↓ 2 callers
Function
getTaskMatrixDisplayTiers
( expression: string | null | undefined, schema: BillingUsageSchema | null | undefined )
web/src/features/pricing/lib/task-matrix-display.ts:39
↓ 2 callers
Function
getTaskPlugin
(key: string, version?: string)
web/src/features/task-plugins/api.ts:80
↓ 2 callers
Function
getTaskUsageQuantityUnitLabelKey
( unit: BillingUsageUnit | undefined )
web/src/features/pricing/lib/dynamic-price.ts:104
↓ 2 callers
Function
getTextUnits
(value: string)
web/src/components/ui/markdown.tsx:199
↓ 2 callers
Function
getTokenFromDB
(t *testing.T, id int)
model/quota_reserve_test.go:51
↓ 2 callers
Function
getTokenKeyColumnType
(t *testing.T, db *gorm.DB, dialect string)
controller/token_test.go:244
↓ 2 callers
Function
getTokenRequestUserGroup
(c *gin.Context)
controller/token.go:82
↓ 2 callers
Function
getTopUpQuota
(amount int64)
controller/topup.go:203
↓ 2 callers
Function
getUpdateErrorMessage
( code: UpdateCheckErrorCode, t: TFunction )
web/src/features/system-update/use-system-update.ts:52
↓ 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:127
↓ 2 callers
Function
getUsageStatusBadge
( rateLimit: CodexRateLimit | undefined, t: (key: string) => string )
web/src/features/channels/components/dialogs/codex-usage-dialog.tsx:401
↓ 2 callers
Function
getUserActionMessage
(action: ManageUserAction)
web/src/features/users/lib/user-actions.ts:37
↓ 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
getUserVerificationState
(tx *gorm.DB, userID int, forUpdate bool)
model/login_verification.go:27
↓ 2 callers
Function
getVertexArrayKeys
(keys string)
controller/channel.go:783
↓ 2 callers
Function
getWaffoPancakeBuyerEmail
(user *model.User)
controller/topup_waffo_pancake.go:98
↓ 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:28
↓ 2 callers
Function
getXunfeiAuthUrl
(c *gin.Context, apiKey string, apiSecret string, modelName string)
relay/channel/xunfei/relay-xunfei.go:266
↓ 2 callers
Function
groundingAnnotationsToChat
(metadata *dto.GeminiGroundingMetadata, content dto.GeminiChatContent, rendered string)
relaykit/relayconvert/internal/gemini_chat/grounding.go:88
↓ 2 callers
Function
h3ArtifactURL
(ctx)
plugins/tasks/hailuo/plugin.js:776
↓ 2 callers
Function
h3Duration
(raw)
plugins/tasks/hailuo/plugin.js:283
↓ 2 callers
Function
h3HasVisualContent
(content)
plugins/tasks/hailuo/plugin.js:413
↓ 2 callers
Function
h3MediaItem
(type, url, role)
plugins/tasks/hailuo/plugin.js:302
↓ 2 callers
Function
h3MediaList
(source, key)
plugins/tasks/hailuo/plugin.js:310
↓ 2 callers
Function
h3Request
(req)
plugins/tasks/hailuo/plugin.js:441
↓ 2 callers
Method
handle
(w http.ResponseWriter, r *http.Request)
service/provider_plugin_test.go:143
↓ 2 callers
Function
handleAdd
()
web/src/features/system-settings/integrations/amount-options-visual-editor.tsx:57
↓ 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
handleConfigUpdate
handleConfigUpdate 处理分层配置更新,返回是否已处理
model/option.go:718
↓ 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:147
↓ 2 callers
Function
handleFetchModels
()
web/src/features/channels/components/dialogs/fetch-models-dialog.tsx:108
↓ 2 callers
Function
handleOpenChange
(open: boolean)
web/src/features/security/components/dialogs/wechat-bind-dialog.tsx:77
↓ 2 callers
Function
handleOpenChange
(open: boolean)
web/src/features/security/components/dialogs/email-bind-dialog.tsx:108
↓ 2 callers
Function
handlePageChange
(newPage: number)
web/src/features/channels/components/dialogs/multi-key-manage-dialog.tsx:192
↓ 2 callers
Function
handlePermissionRoute
handlePermissionRoute registers a Casbin-guarded route and declares the same permission as the access token scope that route requires.
router/channel-router.go:22
↓ 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:159
↓ 2 callers
Function
handleTestChannel
( id: number, options?: { channelName?: string testModel?: string endpointType?: string st
web/src/features/channels/lib/channel-actions.ts:277
↓ 2 callers
Function
handleUpdateAllBalances
( queryClient?: QueryClient, onSuccess?: () => void )
web/src/features/channels/lib/channel-actions.ts:718
↓ 2 callers
Function
handleUpdateTagField
( tag: string, fieldName: 'priority' | 'weight', value: number, queryClient?: QueryClient, onSuccess
web/src/features/channels/lib/channel-actions.ts:243
↓ 2 callers
Function
handleWeChatDialogChange
(open: boolean)
web/src/features/auth/sign-up/components/sign-up-form.tsx:213
↓ 2 callers
Function
handleWeChatDialogChange
(open: boolean)
web/src/features/auth/sign-in/components/user-auth-form.tsx:209
↓ 2 callers
Function
handlerMultiKeyUpdate
(channel *Channel, usingKey string, status int, reason string)
model/channel.go:796
↓ 2 callers
Function
hasEnabledMultiKey
(channel *model.Channel)
controller/channel.go:94
↓ 2 callers
Function
hasHostDiagnosticCode
(diagnostics []types.ConversionDiagnostic, code string)
relay/convert_request_error_test.go:249
↓ 2 callers
Function
hasToolSurcharge
(other: LogOtherData | null)
web/src/features/usage-logs/lib/format.ts:119
↓ 2 callers
Function
hasValidTokenFields
(value: Record<string, unknown>)
web/src/lib/auth-session.ts:119
↓ 2 callers
Function
hasVideo
(content)
plugins/tasks/doubao/plugin.js:398
↓ 2 callers
Method
headerOverrideInfo
headerOverrideInfo carries the channel's Request Header Override for a request built outside the client request, with {api_key} set to key.
relay/channel/task/jsplugin/adaptor.go:1417
↓ 2 callers
Function
headerValue
(ctx, name)
plugins/tasks/alibaba/plugin.js:386
↓ 2 callers
Method
hook
hook resolves a hook path against the module's export table. Only declared exports resolve; the handle is cached, while the bindings it names are read
pkg/jsplugin/engine.go:570
↓ 2 callers
Function
hookHTTPResponse
(resp *http.Response)
relay/channel/task/jsplugin/adaptor.go:1603
↓ 2 callers
Function
hostAllowed
(request *url.URL, allowedHosts []string)
pkg/jsplugin/request.go:42
↓ 2 callers
Function
hostedEventPrefix
(outputType string)
relaykit/relayconvert/internal/oai_chat/to_oai_responses_stream_resp.go:928
↓ 2 callers
Function
hostedJSONString
(value []byte)
relaykit/relayconvert/internal/oai_chat/to_oai_responses_stream_resp.go:955
↓ 2 callers
Function
hostedOutsideRegularRange
(hosted []int, regular []int)
relaykit/relayconvert/internal/toolconv/response_artifacts.go:666
↓ 2 callers
Function
hostedTerminalEvent
(outputType string, failed bool)
relaykit/relayconvert/internal/oai_chat/to_oai_responses_stream_resp.go:939
↓ 2 callers
Function
imageCountPricingRoot
(node: ExpressionNode)
web/src/features/pricing/lib/billing-expression/visual.ts:208
↓ 2 callers
Function
imageEntries
(body)
plugins/tasks/doubao/plugin.js:613
↓ 2 callers
Function
imageInput
(value, files)
plugins/tasks/google/plugin.js:141
↓ 2 callers
Function
imageMime
The MIME type of an object that holds an image as base64 data.
web/src/features/task-plugins/components/request-plugin-try-panel.tsx:139
↓ 2 callers
Function
imageModelCandidates
(ctx)
plugins/tasks/doubao/plugin.js:463
↓ 2 callers
Function
imagePayloads
(body)
plugins/tasks/doubao/plugin.js:633
↓ 2 callers
Function
imageProfile
(ctx)
plugins/tasks/doubao/plugin.js:468
↓ 2 callers
Function
imageProtocolTestOutcome
(info *relaycommon.RelayInfo, status model.TaskStatus, images ...string)
controller/plugin_protocol_test.go:1656
↓ 2 callers
Function
imageRatios
(ctx, converted, count)
plugins/tasks/alibaba/plugin.js:727
↓ 2 callers
Function
imageSizePixels
(value)
plugins/tasks/doubao/plugin.js:481
↓ 2 callers
Function
imageUsage
(ctx, body)
plugins/tasks/alibaba/plugin.js:753
↓ 2 callers
Method
incomplete
()
relay/plugin_protocol.go:948
↓ 2 callers
Function
increaseTokenQuota
(id int, quota int)
model/token.go:402
↓ 2 callers
Function
indexCustomOAuthBindings
( bindings: CustomOAuthBinding[] )
web/src/lib/oauth.ts:33
↓ 2 callers
Function
indexHasIntegrityHashes
(index: MarketplaceIndex)
web/src/features/task-plugins/lib/marketplace.ts:443
↓ 2 callers
Function
initTaskArtifactAdaptor
(task *model.Task)
controller/task.go:215
↓ 2 callers
Function
initUserSessionSettings
()
common/init.go:149
↓ 2 callers
Function
initializeFrontendCache
()
web/src/lib/frontend-cache.ts:32
↓ 2 callers
Function
inputImage
(ctx, image)
plugins/tasks/vertex-ai/plugin.js:162
↓ 2 callers
Method
insertStart
(task *model.Task)
controller/task_plugin_debug.go:171
↓ 2 callers
Function
insertSubscriptionOrderForPaymentGuardTest
(t *testing.T, tradeNo string, userID int, planID int, paymentProvider string)
model/payment_method_guard_test.go:40
↓ 2 callers
Function
insertSubscriptionPlanForPaymentGuardTest
(t *testing.T, id int)
model/payment_method_guard_test.go:24
↓ 2 callers
Function
insertTopUpForPaymentGuardTest
(t *testing.T, tradeNo string, userID int, paymentProvider string)
model/payment_method_guard_test.go:55
↓ 2 callers
Function
insertUsersForPaginationTest
(t *testing.T, total int)
model/user_pagination_test.go:12
↓ 2 callers
Function
inspectTokenKeyIndex
(db *gorm.DB, tableName string)
model/token_migration.go:76
↓ 2 callers
Function
inspectTokenKeyUniqueConstraints
(db *gorm.DB, tableName string)
model/token_migration.go:30
↓ 2 callers
Function
integerField
(value, name, minimum, maximum)
plugins/tasks/xai/plugin.js:154
↓ 2 callers
Function
integerMetaField
(object map[string]any, name string)
pkg/jsplugin/registry.go:2374
↓ 2 callers
Function
interleavedReasoningAndTextOutput
()
relaykit/relayconvert/internal/oai_responses/to_oai_chat_resp_test.go:565
↓ 2 callers
Method
invalidAttempt
(now time.Time, ip string)
middleware/task_artifact_access.go:54
← previous
next →
4,101–4,200 of 15,409, ranked by callers