MCPcopy Create free account

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

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

↓ 1 callersFunctionusageCacheSignals
(usage *dto.Usage)
service/channel_affinity.go:932
↓ 1 callersFunctionusageSchemaHasTokenUnit
(schema map[string]UsageFieldSchema)
pluginkit/meta.go:1753
↓ 1 callersFunctionusageSemanticFromUsage
(relayInfo *relaycommon.RelayInfo, usage *dto.Usage)
service/text_quota.go:390
↓ 1 callersFunctionusageSmokeCombinationCount
(dimensions []usageSmokeDimension, stopAfter int)
setting/billing_setting/tiered_billing.go:361
↓ 1 callersFunctionusageTotalTokens
(usage *dto.Usage)
service/channel_affinity.go:970
↓ 1 callersFunctionusdBalance
(result jsplugin.BalanceResult)
controller/channel_balance.go:35
↓ 1 callersFunctionuseAccessTokens
()
web/src/features/security/hooks/use-access-tokens.ts:43
↓ 1 callersFunctionuseAffiliate
()
web/src/features/wallet/hooks/use-affiliate.ts:38
↓ 1 callersFunctionuseAnnouncements
()
web/src/features/dashboard/hooks/use-status-data.ts:47
↓ 1 callersFunctionuseAuditLogColumns
( accessOnly?: boolean )
web/src/features/usage-logs/audit/components/audit-log-columns.tsx:31
↓ 1 callersFunctionuseBillingHistory
(options: UseBillingHistoryOptions = {})
web/src/features/wallet/hooks/use-billing-history.ts:46
↓ 1 callersFunctionuseChainOfThought
()
web/src/components/ai-elements/chain-of-thought.tsx:53
↓ 1 callersFunctionuseChannelModelDiscovery
(props: ChannelModelDiscoveryProps)
web/src/features/channels/hooks/use-channel-model-discovery.ts:40
↓ 1 callersFunctionuseChannelMutateForm
(props: UseChannelMutateFormParams)
web/src/features/channels/hooks/use-channel-mutate-form.ts:60
↓ 1 callersFunctionuseChannelPriorityDrag
(options: DragOptions)
web/src/features/channels/hooks/use-channel-priority-drag.ts:133
↓ 1 callersFunctionuseChannelPriorityOrder
(props: { channels: Channel[] desc: boolean scope: string enabled: boolean })
web/src/features/channels/hooks/use-channel-priority-order.ts:37
↓ 1 callersFunctionuseChatHandler
({ config, parameterEnabled, onMessageUpdate, }: UseChatHandlerOptions)
web/src/features/playground/hooks/use-chat-handler.ts:70
↓ 1 callersFunctionuseColumnsByCategory
( logCategory: LogCategory, isAdmin: boolean, isRoot: boolean, showBillingSource = false // eslint-d
web/src/features/usage-logs/lib/columns.ts:33
↓ 1 callersFunctionuseControllableTableState
( controlledValue: TValue | undefined, defaultValue: TValue, onChange: OnChangeFn<TValue> | undefined )
web/src/components/data-table/hooks/use-data-table.ts:125
↓ 1 callersFunctionuseCreateProvider
()
web/src/features/system-settings/auth/custom-oauth/hooks/use-custom-oauth-mutations.ts:43
↓ 1 callersFunctionuseCreemPayment
()
web/src/features/wallet/hooks/use-creem-payment.ts:30
↓ 1 callersFunctionuseCustomOAuthProviders
()
web/src/features/system-settings/auth/custom-oauth/hooks/use-custom-oauth-providers.ts:25
↓ 1 callersFunctionuseDashboardContentVisibility
()
web/src/features/dashboard/hooks/use-status-data.ts:64
↓ 1 callersFunctionuseDeleteProvider
()
web/src/features/system-settings/auth/custom-oauth/hooks/use-custom-oauth-mutations.ts:88
↓ 1 callersFunctionuseDeploymentsColumns
(opts: { onViewLogs: (id: string | number) => void onViewDetails: (id: string | number) => void onUpdate
web/src/features/models/components/deployments-columns.tsx:41
↓ 1 callersFunctionuseDiscoverEndpoints
()
web/src/features/system-settings/auth/custom-oauth/hooks/use-custom-oauth-mutations.ts:107
↓ 1 callersFunctionuseDrawingLogsColumns
( isAdmin: boolean )
web/src/features/usage-logs/components/columns/drawing-logs-columns.tsx:84
↓ 1 callersFunctionuseEmailVerification
(options?: UseEmailVerificationOptions)
web/src/features/auth/hooks/use-email-verification.ts:39
↓ 1 callersFunctionuseFAQ
()
web/src/features/dashboard/hooks/use-status-data.ts:57
↓ 1 callersMethoduseFreshCredential
useFreshCredential refreshes a credential that expires within the request margin. A failed refresh keeps a credential that has not expired yet. A cred
relay/channel/providerplugin/adaptor.go:545
↓ 1 callersMethoduseFreshSubmitCredential
useFreshSubmitCredential refreshes the submission's credential line when it is about to expire and keeps the credential for the submit request.
relay/channel/task/jsplugin/credential.go:48
↓ 1 callersFunctionuseGeminiStreamGenerateContentURL
(parsedURL *url.URL)
relay/channel/advancedcustom/adaptor.go:541
↓ 1 callersFunctionuseGroupRatios
()
web/src/features/keys/components/api-keys-columns.tsx:50
↓ 1 callersFunctionuseHiddenClickUnlock
( options: HiddenClickUnlockOptions = {} )
web/src/hooks/use-hidden-click-unlock.ts:34
↓ 1 callersFunctionuseHomePageContent
()
web/src/features/home/hooks/use-home-page-content.ts:34
↓ 1 callersFunctionuseImageSize
(src: string | undefined)
web/src/features/task-plugins/components/request-plugin-try-panel.tsx:205
↓ 1 callersFunctionuseIsAdmin
()
web/src/hooks/use-admin.ts:28
↓ 1 callersFunctionuseLimiterMiniRedis
(t *testing.T)
common/limiter/limiter_test.go:14
↓ 1 callersFunctionuseMessageActionGuard
(isGenerating: boolean)
web/src/features/playground/hooks/use-message-action-guard.ts:29
↓ 1 callersFunctionuseModelDeploymentSettings
()
web/src/features/models/hooks/use-model-deployment-settings.ts:55
↓ 1 callersFunctionuseModelPricingIssueBadge
()
web/src/features/system-settings/models/pricing-issues.ts:75
↓ 1 callersFunctionuseModelStatCardsConfig
()
web/src/features/dashboard/hooks/use-dashboard-config.tsx:46
↓ 1 callersFunctionuseModelsColumns
( vendors: Vendor[] = EMPTY_VENDORS, pricing?: ModelPricingConfig, pricingState?: 'loading' | 'error' )
web/src/features/models/components/models-columns.tsx:53
↓ 1 callersFunctionuseOptionalProviderAttachments
()
web/src/components/ai-elements/prompt-input.tsx:153
↓ 1 callersFunctionusePasskeyManagement
()
web/src/features/auth/passkey/hooks/use-passkey-management.ts:38
↓ 1 callersFunctionusePayment
()
web/src/features/wallet/hooks/use-payment.ts:84
↓ 1 callersFunctionusePlaygroundConversation
({ messages, updateMessages, sendChat, }: UsePlaygroundConversationOptions)
web/src/features/playground/hooks/use-playground-conversation.ts:37
↓ 1 callersFunctionusePlaygroundOptions
({ currentGroup, currentModel, setGroups, setModels, updateConfig, }: UsePlaygroundOptionsParams)
web/src/features/playground/hooks/use-playground-options.ts:64
↓ 1 callersFunctionusePlaygroundState
()
web/src/features/playground/hooks/use-playground-state.ts:45
↓ 1 callersFunctionusePluginLogin
(options: UsePluginLoginOptions)
web/src/features/channels/hooks/use-plugin-login.ts:52
↓ 1 callersFunctionuseRankings
(period: RankingPeriod)
web/src/features/rankings/hooks/use-rankings.ts:26
↓ 1 callersFunctionuseReasoning
()
web/src/components/ai-elements/reasoning.tsx:52
↓ 1 callersFunctionuseRedemption
()
web/src/features/wallet/hooks/use-redemption.ts:33
↓ 1 callersFunctionuseRedemptionsColumns
()
web/src/features/redemption-codes/components/redemptions-columns.tsx:38
↓ 1 callersFunctionuseResolvedColumnClassName
( table: TanstackTable<TData>, getColumnClassName?: DataTableColumnClassName, pinnedColumns?: DataTableP
web/src/components/data-table/core/data-table-view.tsx:168
↓ 1 callersFunctionuseStreamRequest
()
web/src/features/playground/hooks/use-stream-request.ts:186
↓ 1 callersFunctionuseSubscriptionsColumns
()
web/src/features/subscriptions/components/subscriptions-columns.tsx:33
↓ 1 callersFunctionuseSummaryCardsConfig
(totals: { todayUsageDisplay: string usedDisplay: string requestCountDisplay: string currencyLabel: st
web/src/features/dashboard/hooks/use-dashboard-config.tsx:111
↓ 1 callersFunctionuseSuppressSettingsSectionHeader
()
web/src/features/system-settings/components/settings-page-context.tsx:65
↓ 1 callersFunctionuseSystemUpdate
()
web/src/features/system-update/use-system-update.ts:132
↓ 1 callersFunctionuseTaskLogsColumns
( isAdmin: boolean, isRoot: boolean )
web/src/features/usage-logs/components/columns/task-logs-columns.tsx:86
↓ 1 callersFunctionuseTopupInfo
()
web/src/features/wallet/hooks/use-topup-info.ts:168
↓ 1 callersFunctionuseTwoFA
(enabled = true)
web/src/features/security/hooks/use-two-fa.ts:36
↓ 1 callersFunctionuseTwoFASetup
(refreshStatus: () => void | Promise<void>)
web/src/features/security/hooks/use-two-fa-setup.ts:40
↓ 1 callersFunctionuseUpdatePasskeyDomains
()
web/src/features/system-settings/hooks/use-update-option.ts:86
↓ 1 callersFunctionuseUpdateProvider
()
web/src/features/system-settings/auth/custom-oauth/hooks/use-custom-oauth-mutations.ts:63
↓ 1 callersFunctionuseUpstreamRatioSyncColumns
( upstreamNames: string[], isMobile: boolean )
web/src/features/system-settings/models/upstream-ratio-sync-columns.tsx:33
↓ 1 callersFunctionuseWaffoPancakePayment
()
web/src/features/wallet/hooks/use-waffo-pancake-payment.ts:74
↓ 1 callersFunctionuseWaffoPayment
()
web/src/features/wallet/hooks/use-waffo-payment.ts:54
↓ 1 callersFunctionuseWideScreen
()
web/src/features/channels/components/__tests__/channel-configuration.test.tsx:217
↓ 1 callersFunctionuserCheckinWithTransaction
userCheckinWithTransaction 使用事务执行签到(适用于 MySQL 和 PostgreSQL)
model/checkin.go:94
↓ 1 callersFunctionuserCheckinWithoutTransaction
userCheckinWithoutTransaction 不使用事务执行签到(适用于 SQLite)
model/checkin.go:124
↓ 1 callersFunctionuserMessages
(format, body)
plugins/tasks/content-moderation/plugin.js:166
↓ 1 callersFunctionuserRedisRateLimiter
userRedisRateLimiter is like redisRateLimiter but accepts a pre-built key (to support user-ID-based keys).
middleware/rate-limit.go:250
↓ 1 callersFunctionusesCl100k
usesCl100k reports whether an OpenAI model predates o200k_base: GPT-4 (but not GPT-4o, GPT-4.1, or GPT-4.5) and GPT-3.5. Every later model, including
tokenkit/tokenizer.go:98
↓ 1 callersFunctionv1NativeResolution
(model, body)
plugins/tasks/hailuo/plugin.js:270
↓ 1 callersFunctionv1Resolutions
(model, hasImage, hasLastFrame)
plugins/tasks/hailuo/plugin.js:260
↓ 1 callersFunctionvalidUserInfo
(username string, role int)
middleware/auth.go:41
↓ 1 callersFunctionvalidateAccessCondition
(condition *accessCondition, index int)
oauth/generic.go:377
↓ 1 callersFunctionvalidateAccessPolicy
(policy *accessPolicy)
oauth/generic.go:344
↓ 1 callersFunctionvalidateAccessPolicyPayload
(policy *accessPolicyPayload)
model/custom_oauth_provider.go:231
↓ 1 callersFunctionvalidateAccessTokenIdentityWithTx
(tx *gorm.DB, tokenID int, identity AuthSessionIdentity)
model/user_access_token.go:261
↓ 1 callersFunctionvalidateAdvancedCustomConverterPath
(index int, incomingPath string, converter string)
relaykit/dto/channel_settings.go:667
↓ 1 callersFunctionvalidateAdvancedCustomRouteAuth
(index int, auth *AdvancedCustomRouteAuth)
relaykit/dto/channel_settings.go:706
↓ 1 callersFunctionvalidateAdvancedCustomRouteModelRule
(index int, incomingPath string, model string)
relaykit/dto/channel_settings.go:621
↓ 1 callersFunctionvalidateAdvancedCustomRouteModels
(index int, incomingPath string, models []string, paths map[string]*advancedCustomPathModelState)
relaykit/dto/channel_settings.go:581
↓ 1 callersFunctionvalidateAdvancedCustomRouteModels
( routeIndex: number, incomingPath: string, models: string[], routeModelsByPath: Map< string,
web/src/features/channels/lib/advanced-custom.ts:855
↓ 1 callersFunctionvalidateAdvancedCustomUpstreamTarget
(index int, upstreamPath string)
relaykit/dto/channel_settings.go:649
↓ 1 callersFunctionvalidateAndNormalize
(ctx)
plugins/tasks/sunoapi/plugin.js:96
↓ 1 callersFunctionvalidateAnnouncements
(announcementsStr string)
setting/console_setting/validation.go:167
↓ 1 callersFunctionvalidateApiInfo
(apiInfoStr string)
setting/console_setting/validation.go:107
↓ 1 callersFunctionvalidateArgon2AccountPassword
(password, encoded string)
common/account_password.go:66
↓ 1 callersFunctionvalidateArtifacts
(value any)
pluginkit/task.go:350
↓ 1 callersFunctionvalidateChangelogInline
No HTML, images, task checkboxes or nested blocks can become marketplace content.
web/src/features/task-plugins/lib/plugin-changelog.ts:106
↓ 1 callersFunctionvalidateDataExportDefaultTime
* Validate and coerce DataExportDefaultTime to a safe value
web/src/features/system-settings/content/section-registry.tsx:32
↓ 1 callersFunctionvalidateFAQ
(faqStr string)
setting/console_setting/validation.go:213
↓ 1 callersFunctionvalidateFixedPricingTree
validateFixedPricingTree enforces one pricing leaf per execution. Without this invariant, adding two tiers or multiplying a fixed price by tokens woul
pkg/billingexpr/fixed.go:45
↓ 1 callersFunctionvalidateFixedPricingTree
( node: ExpressionNode, rules: CompiledBillingExpression['requestRules'] )
web/src/features/pricing/lib/billing-expression/parser.ts:432
↓ 1 callersFunctionvalidateForm
()
web/src/features/channels/components/dialogs/edit-tag-dialog.tsx:142
↓ 1 callersFunctionvalidateJSON
(value: string)
web/src/features/channels/lib/channel-form.ts:1045
← previousnext →8,801–8,900 of 15,592, ranked by callers