Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/QuantumNous/new-api
/ functions
Functions
15,592 in github.com/QuantumNous/new-api
⨍
Functions
15,592
◇
Types & classes
2,267
↓ 1 callers
Method
tokenEndpoint
(w http.ResponseWriter, r *http.Request)
service/provider_plugin_test.go:172
↓ 1 callers
Function
tokenFor
(ctx)
plugins/tasks/kling/plugin.js:158
↓ 1 callers
Function
tokenItem
(overrides: Partial<AccessTokenItem>)
web/src/features/security/components/__tests__/access-tokens-card.test.tsx:72
↓ 1 callers
Function
tokenTier
( node: ExpressionNode, conditions: TokenTierCondition[] )
web/src/features/pricing/lib/billing-expression/display.ts:102
↓ 1 callers
Method
tokens
(w, h int)
tokenkit/image.go:165
↓ 1 callers
Method
toolArgumentsDelta
(event *dto.ResponsesStreamResponse)
relaykit/relayconvert/internal/oai_responses/to_oai_chat_stream_resp.go:319
↓ 1 callers
Function
toolCounts
(info *relaycommon.RelayInfo)
relay/channel/deepseek/adaptor_test.go:134
↓ 1 callers
Function
toolbarProps
()
web/src/features/pricing/__tests__/pricing-controls.test.tsx:31
↓ 1 callers
Function
tooltipMetricLines
( valueFormatter: (value: number) => string, labels: FlowSankeyLabels )
web/src/features/dashboard/lib/flow.ts:1086
↓ 1 callers
Function
trackSize
(bytes, start, end)
plugins/tasks/xai/plugin.js:658
↓ 1 callers
Function
transferAffiliateQuota
( request: AffiliateTransferRequest )
web/src/features/wallet/api.ts:195
↓ 1 callers
Function
transformFormDataToModelPayload
( formData: ModelFormValues )
web/src/features/models/lib/model-form.ts:106
↓ 1 callers
Function
transformFormDataToPayload
( data: UserFormValues, userId?: number, catalog?: PermissionCatalog )
web/src/features/users/lib/user-form.ts:74
↓ 1 callers
Function
transformFormDataToPayload
( data: RedemptionFormValues )
web/src/features/redemption-codes/lib/redemption-form.ts:76
↓ 1 callers
Function
transformLegacyAPIInfo
(value string)
model/frontend_option_migration.go:105
↓ 1 callers
Function
transformLegacyFAQ
(value string)
model/frontend_option_migration.go:137
↓ 1 callers
Function
transformModelToFormDefaults
(model: Model)
web/src/features/models/lib/model-form.ts:86
↓ 1 callers
Function
transformRedemptionToFormDefaults
( redemption: Redemption )
web/src/features/redemption-codes/lib/redemption-form.ts:92
↓ 1 callers
Function
transformStringValue
(doc *ojson.Doc, path string, transform func(string) string)
relay/common/override.go:1915
↓ 1 callers
Function
translate
(key, options)
web/src/features/pricing/lib/billing-expression/condition-display.ts:252
↓ 1 callers
Function
translations
(count: number)
web/src/features/task-plugins/__tests__/marketplace.test.ts:960
↓ 1 callers
Function
tree
(currentRow: Model, open: boolean)
web/src/features/models/__tests__/metadata-editing.test.tsx:413
↓ 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:1867
↓ 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:124
↓ 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
()
pluginkit/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:707
↓ 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:553
↓ 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:775
↓ 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:424
↓ 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:576
↓ 1 callers
Function
updateDeploymentName
( id: string | number, name: string )
web/src/features/models/api.ts:605
↓ 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:90
↓ 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:283
↓ 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
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:1488
↓ 1 callers
Function
updateUserUsedQuotaAndRequestCount
(id int, quota int, count int)
model/user.go:1470
↓ 1 callers
Function
updateVendor
( data: Partial<Vendor> & { id: number } )
web/src/features/models/api.ts:179
↓ 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)
pluginkit/config_schema.go:121
↓ 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
← previous
next →
8,701–8,800 of 15,592, ranked by callers