MCPcopy Create free account

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

Functions15,409 in github.com/QuantumNous/new-api

↓ 2 callersFunctiongetSubscriptionUsed
(t *testing.T, id int)
service/task_billing_test.go:555
↓ 2 callersFunctiongetSystemTheme
()
web/src/context/theme-provider.tsx:64
↓ 2 callersFunctiongetTableSizing
(props: DataTableViewProps<TData>)
web/src/components/data-table/core/data-table-view.tsx:227
↓ 2 callersFunctiongetTagModels
( tag: string )
web/src/features/channels/api.ts:698
↓ 2 callersMethodgetTarget
()
relay/responses_websocket.go:840
↓ 2 callersFunctiongetTaskArtifacts
(taskId: string)
web/src/features/usage-logs/api.ts:177
↓ 2 callersFunctiongetTaskMatrixDisplayTiers
( expression: string | null | undefined, schema: BillingUsageSchema | null | undefined )
web/src/features/pricing/lib/task-matrix-display.ts:39
↓ 2 callersFunctiongetTaskPlugin
(key: string, version?: string)
web/src/features/task-plugins/api.ts:80
↓ 2 callersFunctiongetTaskUsageQuantityUnitLabelKey
( unit: BillingUsageUnit | undefined )
web/src/features/pricing/lib/dynamic-price.ts:104
↓ 2 callersFunctiongetTextUnits
(value: string)
web/src/components/ui/markdown.tsx:199
↓ 2 callersFunctiongetTokenFromDB
(t *testing.T, id int)
model/quota_reserve_test.go:51
↓ 2 callersFunctiongetTokenKeyColumnType
(t *testing.T, db *gorm.DB, dialect string)
controller/token_test.go:244
↓ 2 callersFunctiongetTokenRequestUserGroup
(c *gin.Context)
controller/token.go:82
↓ 2 callersFunctiongetTopUpQuota
(amount int64)
controller/topup.go:203
↓ 2 callersFunctiongetUpdateErrorMessage
( code: UpdateCheckErrorCode, t: TFunction )
web/src/features/system-update/use-system-update.ts:52
↓ 2 callersFunctiongetUptimeStatus
()
web/src/features/dashboard/api.ts:88
↓ 2 callersFunctiongetUsageBillingPathLabel
( t: TFunction, adminInfo: LogOtherData['admin_info'] )
web/src/features/usage-logs/components/dialogs/details-dialog.tsx:127
↓ 2 callersFunctiongetUsageStatusBadge
( rateLimit: CodexRateLimit | undefined, t: (key: string) => string )
web/src/features/channels/components/dialogs/codex-usage-dialog.tsx:401
↓ 2 callersFunctiongetUserActionMessage
(action: ManageUserAction)
web/src/features/users/lib/user-actions.ts:37
↓ 2 callersFunctiongetUserQuotaDates
( params: { start_timestamp: number end_timestamp: number default_time?: string username?: s
web/src/features/dashboard/api.ts:37
↓ 2 callersFunctiongetUserVerificationState
(tx *gorm.DB, userID int, forUpdate bool)
model/login_verification.go:27
↓ 2 callersFunctiongetVertexArrayKeys
(keys string)
controller/channel.go:783
↓ 2 callersFunctiongetWaffoPancakeBuyerEmail
(user *model.User)
controller/topup_waffo_pancake.go:98
↓ 2 callersFunctiongetWaffoPayMoney
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 callersFunctiongetWaffoSDK
()
controller/topup_waffo.go:26
↓ 2 callersFunctiongetWeChatIdByCode
(code string)
controller/wechat.go:28
↓ 2 callersFunctiongetXunfeiAuthUrl
(c *gin.Context, apiKey string, apiSecret string, modelName string)
relay/channel/xunfei/relay-xunfei.go:266
↓ 2 callersFunctiongroundingAnnotationsToChat
(metadata *dto.GeminiGroundingMetadata, content dto.GeminiChatContent, rendered string)
relaykit/relayconvert/internal/gemini_chat/grounding.go:88
↓ 2 callersFunctionh3ArtifactURL
(ctx)
plugins/tasks/hailuo/plugin.js:776
↓ 2 callersFunctionh3Duration
(raw)
plugins/tasks/hailuo/plugin.js:283
↓ 2 callersFunctionh3HasVisualContent
(content)
plugins/tasks/hailuo/plugin.js:413
↓ 2 callersFunctionh3MediaItem
(type, url, role)
plugins/tasks/hailuo/plugin.js:302
↓ 2 callersFunctionh3MediaList
(source, key)
plugins/tasks/hailuo/plugin.js:310
↓ 2 callersFunctionh3Request
(req)
plugins/tasks/hailuo/plugin.js:441
↓ 2 callersMethodhandle
(w http.ResponseWriter, r *http.Request)
service/provider_plugin_test.go:143
↓ 2 callersFunctionhandleAdd
()
web/src/features/system-settings/integrations/amount-options-visual-editor.tsx:57
↓ 2 callersFunctionhandleApply
()
web/src/features/dashboard/components/models/models-filter-dialog.tsx:126
↓ 2 callersFunctionhandleBranchChange
(newBranch: number)
web/src/components/ai-elements/branch.tsx:73
↓ 2 callersFunctionhandleChange
(value: boolean)
web/src/features/auth/components/legal-consent.tsx:48
↓ 2 callersFunctionhandleClearSelection
()
web/src/features/channels/components/data-table-bulk-actions.tsx:81
↓ 2 callersFunctionhandleConfigUpdate
handleConfigUpdate 处理分层配置更新,返回是否已处理
model/option.go:718
↓ 2 callersFunctionhandleDropdownMenuItemSelect
( event: DropdownMenuItemSelectEvent, onClick?: React.MouseEventHandler<HTMLElement>, onSelect?: Dropdow
web/src/components/ui/dropdown-menu-events.ts:29
↓ 2 callersFunctionhandleEdit
(faq: FAQ)
web/src/features/system-settings/content/faq-section.tsx:147
↓ 2 callersFunctionhandleFetchModels
()
web/src/features/channels/components/dialogs/fetch-models-dialog.tsx:108
↓ 2 callersFunctionhandleOpenChange
(open: boolean)
web/src/features/security/components/dialogs/wechat-bind-dialog.tsx:77
↓ 2 callersFunctionhandleOpenChange
(open: boolean)
web/src/features/security/components/dialogs/email-bind-dialog.tsx:108
↓ 2 callersFunctionhandlePageChange
(newPage: number)
web/src/features/channels/components/dialogs/multi-key-manage-dialog.tsx:192
↓ 2 callersFunctionhandlePermissionRoute
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 callersFunctionhandleRemove
(amount: number)
web/src/features/system-settings/integrations/amount-options-visual-editor.tsx:76
↓ 2 callersFunctionhandleSelect
(selectedValue: string)
web/src/components/ui/combobox-input.tsx:159
↓ 2 callersFunctionhandleTestChannel
( id: number, options?: { channelName?: string testModel?: string endpointType?: string st
web/src/features/channels/lib/channel-actions.ts:277
↓ 2 callersFunctionhandleUpdateAllBalances
( queryClient?: QueryClient, onSuccess?: () => void )
web/src/features/channels/lib/channel-actions.ts:718
↓ 2 callersFunctionhandleUpdateTagField
( tag: string, fieldName: 'priority' | 'weight', value: number, queryClient?: QueryClient, onSuccess
web/src/features/channels/lib/channel-actions.ts:243
↓ 2 callersFunctionhandleWeChatDialogChange
(open: boolean)
web/src/features/auth/sign-up/components/sign-up-form.tsx:213
↓ 2 callersFunctionhandleWeChatDialogChange
(open: boolean)
web/src/features/auth/sign-in/components/user-auth-form.tsx:209
↓ 2 callersFunctionhandlerMultiKeyUpdate
(channel *Channel, usingKey string, status int, reason string)
model/channel.go:796
↓ 2 callersFunctionhasEnabledMultiKey
(channel *model.Channel)
controller/channel.go:94
↓ 2 callersFunctionhasHostDiagnosticCode
(diagnostics []types.ConversionDiagnostic, code string)
relay/convert_request_error_test.go:249
↓ 2 callersFunctionhasToolSurcharge
(other: LogOtherData | null)
web/src/features/usage-logs/lib/format.ts:119
↓ 2 callersFunctionhasValidTokenFields
(value: Record<string, unknown>)
web/src/lib/auth-session.ts:119
↓ 2 callersFunctionhasVideo
(content)
plugins/tasks/doubao/plugin.js:398
↓ 2 callersMethodheaderOverrideInfo
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 callersFunctionheaderValue
(ctx, name)
plugins/tasks/alibaba/plugin.js:386
↓ 2 callersMethodhook
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 callersFunctionhookHTTPResponse
(resp *http.Response)
relay/channel/task/jsplugin/adaptor.go:1603
↓ 2 callersFunctionhostAllowed
(request *url.URL, allowedHosts []string)
pkg/jsplugin/request.go:42
↓ 2 callersFunctionhostedEventPrefix
(outputType string)
relaykit/relayconvert/internal/oai_chat/to_oai_responses_stream_resp.go:928
↓ 2 callersFunctionhostedJSONString
(value []byte)
relaykit/relayconvert/internal/oai_chat/to_oai_responses_stream_resp.go:955
↓ 2 callersFunctionhostedOutsideRegularRange
(hosted []int, regular []int)
relaykit/relayconvert/internal/toolconv/response_artifacts.go:666
↓ 2 callersFunctionhostedTerminalEvent
(outputType string, failed bool)
relaykit/relayconvert/internal/oai_chat/to_oai_responses_stream_resp.go:939
↓ 2 callersFunctionimageCountPricingRoot
(node: ExpressionNode)
web/src/features/pricing/lib/billing-expression/visual.ts:208
↓ 2 callersFunctionimageEntries
(body)
plugins/tasks/doubao/plugin.js:613
↓ 2 callersFunctionimageInput
(value, files)
plugins/tasks/google/plugin.js:141
↓ 2 callersFunctionimageMime
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 callersFunctionimageModelCandidates
(ctx)
plugins/tasks/doubao/plugin.js:463
↓ 2 callersFunctionimagePayloads
(body)
plugins/tasks/doubao/plugin.js:633
↓ 2 callersFunctionimageProfile
(ctx)
plugins/tasks/doubao/plugin.js:468
↓ 2 callersFunctionimageProtocolTestOutcome
(info *relaycommon.RelayInfo, status model.TaskStatus, images ...string)
controller/plugin_protocol_test.go:1656
↓ 2 callersFunctionimageRatios
(ctx, converted, count)
plugins/tasks/alibaba/plugin.js:727
↓ 2 callersFunctionimageSizePixels
(value)
plugins/tasks/doubao/plugin.js:481
↓ 2 callersFunctionimageUsage
(ctx, body)
plugins/tasks/alibaba/plugin.js:753
↓ 2 callersMethodincomplete
()
relay/plugin_protocol.go:948
↓ 2 callersFunctionincreaseTokenQuota
(id int, quota int)
model/token.go:402
↓ 2 callersFunctionindexCustomOAuthBindings
( bindings: CustomOAuthBinding[] )
web/src/lib/oauth.ts:33
↓ 2 callersFunctionindexHasIntegrityHashes
(index: MarketplaceIndex)
web/src/features/task-plugins/lib/marketplace.ts:443
↓ 2 callersFunctioninitTaskArtifactAdaptor
(task *model.Task)
controller/task.go:215
↓ 2 callersFunctioninitUserSessionSettings
()
common/init.go:149
↓ 2 callersFunctioninitializeFrontendCache
()
web/src/lib/frontend-cache.ts:32
↓ 2 callersFunctioninputImage
(ctx, image)
plugins/tasks/vertex-ai/plugin.js:162
↓ 2 callersMethodinsertStart
(task *model.Task)
controller/task_plugin_debug.go:171
↓ 2 callersFunctioninsertSubscriptionOrderForPaymentGuardTest
(t *testing.T, tradeNo string, userID int, planID int, paymentProvider string)
model/payment_method_guard_test.go:40
↓ 2 callersFunctioninsertSubscriptionPlanForPaymentGuardTest
(t *testing.T, id int)
model/payment_method_guard_test.go:24
↓ 2 callersFunctioninsertTopUpForPaymentGuardTest
(t *testing.T, tradeNo string, userID int, paymentProvider string)
model/payment_method_guard_test.go:55
↓ 2 callersFunctioninsertUsersForPaginationTest
(t *testing.T, total int)
model/user_pagination_test.go:12
↓ 2 callersFunctioninspectTokenKeyIndex
(db *gorm.DB, tableName string)
model/token_migration.go:76
↓ 2 callersFunctioninspectTokenKeyUniqueConstraints
(db *gorm.DB, tableName string)
model/token_migration.go:30
↓ 2 callersFunctionintegerField
(value, name, minimum, maximum)
plugins/tasks/xai/plugin.js:154
↓ 2 callersFunctionintegerMetaField
(object map[string]any, name string)
pkg/jsplugin/registry.go:2374
↓ 2 callersFunctioninterleavedReasoningAndTextOutput
()
relaykit/relayconvert/internal/oai_responses/to_oai_chat_resp_test.go:565
↓ 2 callersMethodinvalidAttempt
(now time.Time, ip string)
middleware/task_artifact_access.go:54
← previousnext →4,101–4,200 of 15,409, ranked by callers