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
↓ 1 callers
Function
useCreemPayment
()
web/src/features/wallet/hooks/use-creem-payment.ts:30
↓ 1 callers
Function
useCustomOAuthProviders
()
web/src/features/system-settings/auth/custom-oauth/hooks/use-custom-oauth-providers.ts:25
↓ 1 callers
Function
useDashboardContentVisibility
()
web/src/features/dashboard/hooks/use-status-data.ts:64
↓ 1 callers
Function
useDeleteProvider
()
web/src/features/system-settings/auth/custom-oauth/hooks/use-custom-oauth-mutations.ts:88
↓ 1 callers
Function
useDeploymentsColumns
(opts: { onViewLogs: (id: string | number) => void onViewDetails: (id: string | number) => void onUpdate
web/src/features/models/components/deployments-columns.tsx:41
↓ 1 callers
Function
useDiscoverEndpoints
()
web/src/features/system-settings/auth/custom-oauth/hooks/use-custom-oauth-mutations.ts:107
↓ 1 callers
Function
useDrawingLogsColumns
( isAdmin: boolean )
web/src/features/usage-logs/components/columns/drawing-logs-columns.tsx:84
↓ 1 callers
Function
useEmailVerification
(options?: UseEmailVerificationOptions)
web/src/features/auth/hooks/use-email-verification.ts:39
↓ 1 callers
Function
useFAQ
()
web/src/features/dashboard/hooks/use-status-data.ts:57
↓ 1 callers
Function
useFilters
(models: PricingModel[])
web/src/features/pricing/hooks/use-filters.ts:56
↓ 1 callers
Method
useFreshCredential
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 callers
Method
useFreshSubmitCredential
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 callers
Function
useGeminiStreamGenerateContentURL
(parsedURL *url.URL)
relay/channel/advancedcustom/adaptor.go:530
↓ 1 callers
Function
useGroupRatios
()
web/src/features/keys/components/api-keys-columns.tsx:50
↓ 1 callers
Function
useHiddenClickUnlock
( options: HiddenClickUnlockOptions = {} )
web/src/hooks/use-hidden-click-unlock.ts:34
↓ 1 callers
Function
useHomePageContent
()
web/src/features/home/hooks/use-home-page-content.ts:34
↓ 1 callers
Function
useImageSize
(src: string | undefined)
web/src/features/task-plugins/components/request-plugin-try-panel.tsx:205
↓ 1 callers
Function
useIsAdmin
()
web/src/hooks/use-admin.ts:28
↓ 1 callers
Function
useLimiterMiniRedis
(t *testing.T)
common/limiter/limiter_test.go:14
↓ 1 callers
Function
useMessageActionGuard
(isGenerating: boolean)
web/src/features/playground/hooks/use-message-action-guard.ts:29
↓ 1 callers
Function
useModelDeploymentSettings
()
web/src/features/models/hooks/use-model-deployment-settings.ts:55
↓ 1 callers
Function
useModelPricingIssueBadge
()
web/src/features/system-settings/models/pricing-issues.ts:75
↓ 1 callers
Function
useModelStatCardsConfig
()
web/src/features/dashboard/hooks/use-dashboard-config.tsx:46
↓ 1 callers
Function
useModelsColumns
( vendors: Vendor[] = EMPTY_VENDORS, pricing?: ModelPricingConfig, pricingState?: 'loading' | 'error' )
web/src/features/models/components/models-columns.tsx:53
↓ 1 callers
Function
useOptionalProviderAttachments
()
web/src/components/ai-elements/prompt-input.tsx:153
↓ 1 callers
Function
usePasskeyManagement
()
web/src/features/auth/passkey/hooks/use-passkey-management.ts:38
↓ 1 callers
Function
usePayment
()
web/src/features/wallet/hooks/use-payment.ts:84
↓ 1 callers
Function
usePlaygroundConversation
({ messages, updateMessages, sendChat, }: UsePlaygroundConversationOptions)
web/src/features/playground/hooks/use-playground-conversation.ts:37
↓ 1 callers
Function
usePlaygroundOptions
({ currentGroup, currentModel, setGroups, setModels, updateConfig, }: UsePlaygroundOptionsParams)
web/src/features/playground/hooks/use-playground-options.ts:64
↓ 1 callers
Function
usePlaygroundState
()
web/src/features/playground/hooks/use-playground-state.ts:45
↓ 1 callers
Function
usePluginLogin
(options: UsePluginLoginOptions)
web/src/features/channels/hooks/use-plugin-login.ts:52
↓ 1 callers
Function
useRankings
(period: RankingPeriod)
web/src/features/rankings/hooks/use-rankings.ts:26
↓ 1 callers
Function
useReasoning
()
web/src/components/ai-elements/reasoning.tsx:52
↓ 1 callers
Function
useRedemption
()
web/src/features/wallet/hooks/use-redemption.ts:33
↓ 1 callers
Function
useRedemptionsColumns
()
web/src/features/redemption-codes/components/redemptions-columns.tsx:38
↓ 1 callers
Function
useResolvedColumnClassName
( table: TanstackTable<TData>, getColumnClassName?: DataTableColumnClassName, pinnedColumns?: DataTableP
web/src/components/data-table/core/data-table-view.tsx:168
↓ 1 callers
Function
useStreamRequest
()
web/src/features/playground/hooks/use-stream-request.ts:186
↓ 1 callers
Function
useSubscriptionsColumns
()
web/src/features/subscriptions/components/subscriptions-columns.tsx:33
↓ 1 callers
Function
useSummaryCardsConfig
(totals: { todayUsageDisplay: string usedDisplay: string requestCountDisplay: string currencyLabel: st
web/src/features/dashboard/hooks/use-dashboard-config.tsx:111
↓ 1 callers
Function
useSuppressSettingsSectionHeader
()
web/src/features/system-settings/components/settings-page-context.tsx:65
↓ 1 callers
Function
useSystemUpdate
()
web/src/features/system-update/use-system-update.ts:132
↓ 1 callers
Function
useTaskLogsColumns
( isAdmin: boolean, isRoot: boolean )
web/src/features/usage-logs/components/columns/task-logs-columns.tsx:86
↓ 1 callers
Function
useTopupInfo
()
web/src/features/wallet/hooks/use-topup-info.ts:168
↓ 1 callers
Function
useTwoFA
(enabled = true)
web/src/features/security/hooks/use-two-fa.ts:36
↓ 1 callers
Function
useTwoFASetup
(refreshStatus: () => void | Promise<void>)
web/src/features/security/hooks/use-two-fa-setup.ts:40
↓ 1 callers
Function
useUpdatePasskeyDomains
()
web/src/features/system-settings/hooks/use-update-option.ts:86
↓ 1 callers
Function
useUpdateProvider
()
web/src/features/system-settings/auth/custom-oauth/hooks/use-custom-oauth-mutations.ts:63
↓ 1 callers
Function
useUpstreamRatioSyncColumns
( upstreamNames: string[], isMobile: boolean )
web/src/features/system-settings/models/upstream-ratio-sync-columns.tsx:33
↓ 1 callers
Function
useWaffoPancakePayment
()
web/src/features/wallet/hooks/use-waffo-pancake-payment.ts:74
↓ 1 callers
Function
useWaffoPayment
()
web/src/features/wallet/hooks/use-waffo-payment.ts:54
↓ 1 callers
Function
useWideScreen
()
web/src/features/channels/components/__tests__/channel-configuration.test.tsx:217
↓ 1 callers
Function
userCheckinWithTransaction
userCheckinWithTransaction 使用事务执行签到(适用于 MySQL 和 PostgreSQL)
model/checkin.go:94
↓ 1 callers
Function
userCheckinWithoutTransaction
userCheckinWithoutTransaction 不使用事务执行签到(适用于 SQLite)
model/checkin.go:124
↓ 1 callers
Function
userMessages
(format, body)
plugins/tasks/content-moderation/plugin.js:166
↓ 1 callers
Function
userRedisRateLimiter
userRedisRateLimiter is like redisRateLimiter but accepts a pre-built key (to support user-ID-based keys).
middleware/rate-limit.go:250
↓ 1 callers
Function
usesCl100k
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 callers
Function
v1NativeResolution
(model, body)
plugins/tasks/hailuo/plugin.js:245
↓ 1 callers
Function
v1Resolutions
(model, hasImage, hasLastFrame)
plugins/tasks/hailuo/plugin.js:235
↓ 1 callers
Function
validUserInfo
(username string, role int)
middleware/auth.go:41
↓ 1 callers
Function
validateAccessCondition
(condition *accessCondition, index int)
oauth/generic.go:377
↓ 1 callers
Function
validateAccessPolicy
(policy *accessPolicy)
oauth/generic.go:344
↓ 1 callers
Function
validateAccessPolicyPayload
(policy *accessPolicyPayload)
model/custom_oauth_provider.go:231
↓ 1 callers
Function
validateAccessTokenIdentityWithTx
(tx *gorm.DB, tokenID int, identity AuthSessionIdentity)
model/user_access_token.go:261
↓ 1 callers
Function
validateAdvancedCustomConverterPath
(index int, incomingPath string, converter string)
relaykit/dto/channel_settings.go:660
↓ 1 callers
Function
validateAdvancedCustomRouteAuth
(index int, auth *AdvancedCustomRouteAuth)
relaykit/dto/channel_settings.go:701
↓ 1 callers
Function
validateAdvancedCustomRouteModelRule
(index int, incomingPath string, model string)
relaykit/dto/channel_settings.go:614
↓ 1 callers
Function
validateAdvancedCustomRouteModels
(index int, incomingPath string, models []string, paths map[string]*advancedCustomPathModelState)
relaykit/dto/channel_settings.go:574
↓ 1 callers
Function
validateAdvancedCustomRouteModels
( routeIndex: number, incomingPath: string, models: string[], routeModelsByPath: Map< string,
web/src/features/channels/lib/advanced-custom.ts:847
↓ 1 callers
Function
validateAdvancedCustomUpstreamTarget
(index int, upstreamPath string)
relaykit/dto/channel_settings.go:642
↓ 1 callers
Function
validateAndNormalize
(ctx)
plugins/tasks/sunoapi/plugin.js:96
↓ 1 callers
Function
validateAnnouncements
(announcementsStr string)
setting/console_setting/validation.go:167
↓ 1 callers
Function
validateApiInfo
(apiInfoStr string)
setting/console_setting/validation.go:107
↓ 1 callers
Function
validateArgon2AccountPassword
(password, encoded string)
common/account_password.go:66
↓ 1 callers
Function
validateChangelogInline
No HTML, images, task checkboxes or nested blocks can become marketplace content.
web/src/features/task-plugins/lib/plugin-changelog.ts:106
↓ 1 callers
Function
validateDataExportDefaultTime
* Validate and coerce DataExportDefaultTime to a safe value
web/src/features/system-settings/content/section-registry.tsx:32
↓ 1 callers
Function
validateFAQ
(faqStr string)
setting/console_setting/validation.go:213
↓ 1 callers
Function
validateFixedPricingTree
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 callers
Function
validateFixedPricingTree
( node: ExpressionNode, rules: CompiledBillingExpression['requestRules'] )
web/src/features/pricing/lib/billing-expression/parser.ts:432
↓ 1 callers
Function
validateForm
()
web/src/features/channels/components/dialogs/edit-tag-dialog.tsx:142
↓ 1 callers
Function
validateJSON
(value: string)
web/src/features/channels/lib/channel-form.ts:1024
↓ 1 callers
Function
validateJSON
(value: string)
web/src/features/models/lib/model-form.ts:139
↓ 1 callers
Function
validateModelMappingJson
(modelMapping: string)
web/src/features/channels/lib/model-mapping-validation.ts:166
↓ 1 callers
Function
validateMultipartTaskRequest
(c *gin.Context, info *RelayInfo, action string)
relay/common/relay_utils.go:159
↓ 1 callers
Function
validateOperations
( operations: ParamOverrideOperation[], t: (key: string, options?: Record<string, unknown>) => string )
web/src/features/channels/components/dialogs/param-override-editor-dialog.tsx:931
↓ 1 callers
Method
validatePlugin
validatePlugin returns the declared top-level routes the gateway does not register for plugin; their /{key} copies still serve them. A key that names
router/plugin-router.go:265
↓ 1 callers
Function
validateProviderHooks
(meta Meta, engine *Engine)
pkg/jsplugin/registry.go:797
↓ 1 callers
Function
validateRelayRoutes
validateRelayRoutes applies the Advanced Custom route rules to meta.relay. A plugin-converter route is checked as a native route of its client endpoin
pkg/jsplugin/registry.go:1897
↓ 1 callers
Function
validateRoute
(route *Route)
pkg/jsplugin/routing.go:892
↓ 1 callers
Function
validateRouteAuth
( auth: AdvancedCustomRouteAuth | undefined )
web/src/features/channels/lib/advanced-custom.ts:974
↓ 1 callers
Function
validateSecondsForReqKey
(reqKey, seconds)
plugins/tasks/jimeng/plugin.js:282
↓ 1 callers
Function
validateStreamTestResponseBody
(respBody []byte)
controller/channel-test.go:680
↓ 1 callers
Function
validateTaskArtifactStoreCredential
(name, value string, maxLength int, required bool)
setting/system_setting/task_artifact_store.go:149
↓ 1 callers
Function
validateTaskArtifacts
(value any)
relay/channel/task/jsplugin/adaptor.go:1633
↓ 1 callers
Function
validateTaskPluginFields
(fields url.Values)
middleware/task_plugin.go:1280
↓ 1 callers
Function
validateTestResponseBody
(respBody []byte, isStream bool)
controller/channel-test.go:702
↓ 1 callers
Function
validateTokenKeyUniqueConstraints
(constraints []tokenKeyUniqueConstraint)
model/token_migration.go:54
↓ 1 callers
Function
validateUptimeKumaGroups
(groupsStr string)
setting/console_setting/validation.go:263
↓ 1 callers
Function
validateUsageExampleValue
(value any, field UsageFieldSchema)
pkg/jsplugin/registry.go:2203
↓ 1 callers
Function
validateUsageExamples
(schema map[string]UsageFieldSchema, examples []UsageExample)
pkg/jsplugin/registry.go:2160
↓ 1 callers
Function
validateUsageSchema
(schema map[string]UsageFieldSchema)
pkg/jsplugin/registry.go:1942
← previous
next →
8,701–8,800 of 15,409, ranked by callers