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
tree
(currentRow: ApiKey, open: boolean)
web/src/features/keys/components/__tests__/api-keys-mutate-drawer.test.tsx:329
↓ 1 callers
Function
trimMessagesByContentSize
(messages: Message[])
web/src/features/playground/lib/storage/storage.ts:273
↓ 1 callers
Function
trimStringValue
(doc *ojson.Doc, path string, value any, isPrefix bool)
relay/common/override.go:1843
↓ 1 callers
Function
truncateBase64
(s string)
service/task_polling.go:761
↓ 1 callers
Function
truncateFailureSummary
(summary: string)
web/src/features/channels/components/dialogs/channel-test-dialog.tsx:266
↓ 1 callers
Function
truncateResponse
(demo: ApiDemoConfig)
web/src/features/home/components/hero-terminal-demo.tsx:449
↓ 1 callers
Function
truncateText
(text string, limit int)
service/provider_plugin.go:780
↓ 1 callers
Function
truncateText
(text: string, maxLength: number)
web/src/lib/utils.ts:84
↓ 1 callers
Function
truncateText
(text: string, maxLength: number)
web/src/features/playground/lib/storage/storage.ts:124
↓ 1 callers
Function
tryConnect
()
electron/main.js:182
↓ 1 callers
Function
tryParseRequestCondition
(expr: string)
web/src/features/pricing/lib/billing-expr.ts:454
↓ 1 callers
Function
tryParseRuleGroupFactor
(part: string)
web/src/features/pricing/lib/billing-expr.ts:565
↓ 1 callers
Function
tryParseTimeRangePair
( lower: string, upper: string )
web/src/features/pricing/lib/billing-expr.ts:514
↓ 1 callers
Method
tryReserveCurrent
(state *responsesWSCallState)
relay/responses_websocket.go:830
↓ 1 callers
Function
typeByExtension
(filename string)
relay/requestplugin/attachments.go:349
↓ 1 callers
Function
uintPtr
(v uint)
relay/channel/minimax/adaptor_test.go:135
↓ 1 callers
Function
unavailablePlugin
unavailablePlugin returns the load error of a plugin the node should run but has not loaded; ok is false for a plugin that is loaded, disabled or dele
relay/requestplugin/plan.go:120
↓ 1 callers
Function
unbindCustomOAuth
( providerId: number, proofToken: string, signal: AbortSignal )
web/src/features/profile/api.ts:267
↓ 1 callers
Function
unitsPerSecond
(model, mode, metadata)
plugins/tasks/kling/plugin.js:259
↓ 1 callers
Method
unixNow
()
docs/plugin-api/v1.d.ts:13
↓ 1 callers
Function
unorderedUsage
(start: string, interval: number)
web/src/features/dashboard/lib/__tests__/charts.test.ts:79
↓ 1 callers
Function
unpredict
unpredict reverses the PNG predictors of rows of columns bytes, each led by its filter type.
relay/requestplugin/pdf.go:1356
↓ 1 callers
Function
unsupportedProtocolFormMessage
(candidates []pluginruntime.ProtocolBinding, protocol string, stream, background bool)
middleware/task_plugin.go:710
↓ 1 callers
Function
unwrapExpressionParens
(source: string)
web/src/features/pricing/lib/billing-expression/structure.ts:56
↓ 1 callers
Function
unwrapOuterParens
(expr: string)
web/src/features/pricing/lib/billing-expr.ts:608
↓ 1 callers
Function
update
(patch: Partial<AuditFilters>)
web/src/features/usage-logs/audit/components/audit-log-viewer.tsx:108
↓ 1 callers
Function
update
()
web/src/features/channels/components/drawers/channel-mutate-drawer.tsx:551
↓ 1 callers
Function
update
(row: RequestPluginConfigRow, name: string, value: unknown)
web/src/features/task-plugins/components/request-plugin-config-model-values.tsx:89
↓ 1 callers
Function
update
(name: string, value: unknown, path = name)
web/src/features/task-plugins/components/request-plugin-config-form.tsx:69
↓ 1 callers
Function
updateAccessToken
( id: number, input: AccessTokenUpdate, proof?: { token: string; signal: AbortSignal } )
web/src/features/security/api.ts:127
↓ 1 callers
Function
updateAllChannelsBalance
updateAllChannelsBalance queries the balance of every enabled channel, balanceUpdateConcurrency channels at once, and reports how many of them it has
controller/channel-billing.go:779
↓ 1 callers
Function
updateAllChannelsBalance
()
web/src/features/channels/api.ts:759
↓ 1 callers
Function
updateApiKey
( data: ApiKeyFormData & { id: number } )
web/src/features/keys/api.ts:81
↓ 1 callers
Function
updateApiKeyStatus
( id: number, status: number )
web/src/features/keys/api.ts:103
↓ 1 callers
Function
updateAssistantMessageWithError
( messages: Message[], errorMessage: string, errorCode?: string, title: string = ERROR_MESSAGES.API_RE
web/src/features/playground/lib/message/message-update-utils.ts:27
↓ 1 callers
Function
updateBillingPreference
( preference: string )
web/src/features/subscriptions/api.ts:227
↓ 1 callers
Function
updateChannelAIGC2DBalance
(channel *model.Channel)
controller/channel-billing.go:369
↓ 1 callers
Function
updateChannelAIProxyBalance
(channel *model.Channel)
controller/channel-billing.go:224
↓ 1 callers
Function
updateChannelAPI2GPTBalance
(channel *model.Channel)
controller/channel-billing.go:244
↓ 1 callers
Function
updateChannelDeepSeekBalance
(channel *model.Channel)
controller/channel-billing.go:350
↓ 1 callers
Function
updateChannelMoonshotBalance
(channel *model.Channel)
controller/channel-billing.go:400
↓ 1 callers
Function
updateChannelNewAPIBalance
updateChannelNewAPIBalance reads the upstream key's remaining quota. When the upstream also returns its owner's quota, the smaller of the two is what
controller/channel-billing.go:484
↓ 1 callers
Function
updateChannelOpenRouterBalance
(channel *model.Channel)
controller/channel-billing.go:384
↓ 1 callers
Function
updateChannelSiliconFlowBalance
(channel *model.Channel)
controller/channel-billing.go:260
↓ 1 callers
Function
updateClaudeStreamBillingUsage
(claudeUsage *dto.ClaudeUsage, claudeInfo *ClaudeResponseInfo, terminal bool)
relaykit/relayconvert/internal/claude_messages/to_oai_chat_resp.go:423
↓ 1 callers
Function
updateCursorLocation
()
web/src/components/json-code-editor.tsx:130
↓ 1 callers
Function
updateCustomOAuthProvider
( id: number, data: Partial<CustomOAuthProvider> )
web/src/features/system-settings/auth/custom-oauth/api.ts:58
↓ 1 callers
Function
updateDeployment
( id: string | number, data: { env_variables?: Record<string, string> secret_env_variables?: Recor
web/src/features/models/api.ts:564
↓ 1 callers
Function
updateDeploymentName
( id: string | number, name: string )
web/src/features/models/api.ts:593
↓ 1 callers
Function
updateGroupIncomingPath
( group: AdvancedCustomRouteGroup, nextIncomingPath: string | null )
web/src/features/channels/components/dialogs/advanced-custom-editor-dialog.tsx:461
↓ 1 callers
Function
updateModel
( data: Partial<Model> & { id: number } )
web/src/features/models/api.ts:89
↓ 1 callers
Function
updateParameterConfig
( key: PlaygroundParameterKey, value: number | null )
web/src/features/playground/components/input/playground-parameter-panel.tsx:84
↓ 1 callers
Function
updatePasskeyDomains
( request: UpdatePasskeyDomainsRequest )
web/src/features/system-settings/api.ts:47
↓ 1 callers
Function
updatePlan
( id: number, data: PlanPayload )
web/src/features/subscriptions/api.ts:51
↓ 1 callers
Function
updatePrefillGroup
(data: { id: number type?: 'model' | 'tag' | 'endpoint' name?: string items?: string | string[] desc
web/src/features/models/api.ts:271
↓ 1 callers
Function
updateRedemption
( data: RedemptionFormData & { id: number } )
web/src/features/redemption-codes/api.ts:74
↓ 1 callers
Function
updateRedemptionStatus
( id: number, status: number )
web/src/features/redemption-codes/api.ts:82
↓ 1 callers
Function
updateStandardChannelBalance
(channel *model.Channel)
controller/channel-billing.go:643
↓ 1 callers
Function
updateSystemOption
(request: UpdateOptionRequest)
web/src/features/system-settings/api.ts:42
↓ 1 callers
Function
updateTheme
()
web/src/lib/use-chart-theme.ts:41
↓ 1 callers
Function
updateTheme
()
web/src/features/dashboard/components/users/user-charts.tsx:125
↓ 1 callers
Function
updateTheme
()
web/src/features/dashboard/components/models/model-charts.tsx:81
↓ 1 callers
Function
updateTheme
()
web/src/features/dashboard/components/models/consumption-distribution-chart.tsx:83
↓ 1 callers
Function
updateUser
( data: UserFormData & { id: number }, proofToken?: string )
web/src/features/users/api.ts:126
↓ 1 callers
Function
updateUserLanguage
( language: string )
web/src/features/profile/api.ts:94
↓ 1 callers
Function
updateUserProfile
( data: UpdateUserRequest )
web/src/features/profile/api.ts:51
↓ 1 callers
Function
updateUserQuotaUsedQuotaAndRequestCount
(id int, quota int, usedQuota int, requestCount int)
model/user.go:1472
↓ 1 callers
Function
updateUserUsedQuotaAndRequestCount
(id int, quota int, count int)
model/user.go:1454
↓ 1 callers
Function
updateVendor
( data: Partial<Vendor> & { id: number } )
web/src/features/models/api.ts:178
↓ 1 callers
Function
updateVideoTasks
(ctx context.Context, platform constant.TaskPlatform, channelId int, taskIds []string, taskM map[string]*model
service/task_polling.go:491
↓ 1 callers
Function
uploadDifyFile
(c *gin.Context, info *relaycommon.RelayInfo, user string, media dto.MediaContent)
relay/channel/dify/relay-dify.go:26
↓ 1 callers
Function
uploadFileFromForm
(c *gin.Context, info *relaycommon.RelayInfo, fieldCandidates ...string)
relay/channel/replicate/adaptor.go:412
↓ 1 callers
Function
uploadSource
(user: ReturnType<typeof userEvent.setup>)
web/src/features/task-plugins/__tests__/upload-dialog.test.tsx:105
↓ 1 callers
Function
uploadTaskPlugin
( source: string, remark: string, icon?: string )
web/src/features/task-plugins/api.ts:99
↓ 1 callers
Function
upsertPasskeyCredentialWithTx
(tx *gorm.DB, credential *PasskeyCredential)
model/passkey.go:210
↓ 1 callers
Function
upsertSubscriptionTopUpTx
(tx *gorm.DB, order *SubscriptionOrder)
model/subscription.go:664
↓ 1 callers
Method
urlHosts
(value any, hosts []string)
pkg/jsplugin/config_schema.go:122
↓ 1 callers
Function
urlQueryEscape
(value string)
middleware/task_artifact_access_test.go:155
↓ 1 callers
Function
urlToString
* Convert LinkProps['to'] to string * Handles both string URLs and object URLs (e.g., { pathname, search })
web/src/components/layout/lib/url-utils.ts:27
↓ 1 callers
Function
usageCacheSignals
(usage *dto.Usage)
service/channel_affinity.go:932
↓ 1 callers
Function
usageExampleNumber
(value any)
pkg/jsplugin/registry.go:2239
↓ 1 callers
Function
usageSchemaHasTokenUnit
(schema map[string]UsageFieldSchema)
pkg/jsplugin/registry.go:2151
↓ 1 callers
Function
usageSemanticFromUsage
(relayInfo *relaycommon.RelayInfo, usage *dto.Usage)
service/text_quota.go:390
↓ 1 callers
Function
usageSmokeCombinationCount
(dimensions []usageSmokeDimension, stopAfter int)
setting/billing_setting/tiered_billing.go:361
↓ 1 callers
Function
usageTotalTokens
(usage *dto.Usage)
service/channel_affinity.go:970
↓ 1 callers
Function
usdBalance
(result jsplugin.BalanceResult)
controller/channel_balance.go:35
↓ 1 callers
Function
useAccessTokens
()
web/src/features/security/hooks/use-access-tokens.ts:43
↓ 1 callers
Function
useAffiliate
()
web/src/features/wallet/hooks/use-affiliate.ts:38
↓ 1 callers
Function
useAnnouncements
()
web/src/features/dashboard/hooks/use-status-data.ts:47
↓ 1 callers
Function
useAuditLogColumns
( accessOnly?: boolean )
web/src/features/usage-logs/audit/components/audit-log-columns.tsx:31
↓ 1 callers
Function
useBillingHistory
(options: UseBillingHistoryOptions = {})
web/src/features/wallet/hooks/use-billing-history.ts:46
↓ 1 callers
Function
useChainOfThought
()
web/src/components/ai-elements/chain-of-thought.tsx:53
↓ 1 callers
Function
useChannelModelDiscovery
(props: ChannelModelDiscoveryProps)
web/src/features/channels/hooks/use-channel-model-discovery.ts:40
↓ 1 callers
Function
useChannelMutateForm
(props: UseChannelMutateFormParams)
web/src/features/channels/hooks/use-channel-mutate-form.ts:60
↓ 1 callers
Function
useChannelPriorityDrag
(options: DragOptions)
web/src/features/channels/hooks/use-channel-priority-drag.ts:133
↓ 1 callers
Function
useChannelPriorityOrder
(props: { channels: Channel[] desc: boolean scope: string enabled: boolean })
web/src/features/channels/hooks/use-channel-priority-order.ts:37
↓ 1 callers
Function
useChatHandler
({ config, parameterEnabled, onMessageUpdate, }: UseChatHandlerOptions)
web/src/features/playground/hooks/use-chat-handler.ts:70
↓ 1 callers
Function
useColumnsByCategory
( logCategory: LogCategory, isAdmin: boolean, isRoot: boolean, showBillingSource = false // eslint-d
web/src/features/usage-logs/lib/columns.ts:33
↓ 1 callers
Function
useControllableTableState
( controlledValue: TValue | undefined, defaultValue: TValue, onChange: OnChangeFn<TValue> | undefined )
web/src/components/data-table/hooks/use-data-table.ts:125
↓ 1 callers
Function
useCreateProvider
()
web/src/features/system-settings/auth/custom-oauth/hooks/use-custom-oauth-mutations.ts:43
← previous
next →
8,601–8,700 of 15,409, ranked by callers