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
deleteOllamaModel
(params: { channel_id: number model_name: string })
web/src/features/channels/api.ts:733
↓ 1 callers
Function
deletePasskey
( proofToken: string, signal?: AbortSignal )
web/src/features/auth/passkey/api.ts:69
↓ 1 callers
Function
deletePrefillGroup
( id: number )
web/src/features/models/api.ts:285
↓ 1 callers
Function
deleteRedemption
(id: number)
web/src/features/redemption-codes/api.ts:91
↓ 1 callers
Function
deleteRevokedUserSessionsBefore
(revokedBefore, issuanceCutoff int64)
model/user_session.go:856
↓ 1 callers
Function
deleteRow
( user: ReturnType<typeof userEvent.setup>, name: string )
web/src/features/system-settings/models/__tests__/price-changes.test.tsx:139
↓ 1 callers
Function
deleteStaleSystemInstance
(nodeName: string)
web/src/features/system-info/api.ts:52
↓ 1 callers
Function
deleteStaleSystemInstances
()
web/src/features/system-info/api.ts:45
↓ 1 callers
Function
deleteSystemTaskHistory
( filters: Pick<SystemTaskFilters, 'type' | 'status'> )
web/src/features/system-info/api.ts:59
↓ 1 callers
Function
deleteTaskPluginVersion
( key: string, version: string, force = false )
web/src/features/task-plugins/api.ts:179
↓ 1 callers
Function
deleteTaskPluginVersionRequest
(t *testing.T, key, version string)
controller/task_plugin_test.go:1477
↓ 1 callers
Function
deleteUser
( id: number, proofToken: string )
web/src/features/users/api.ts:137
↓ 1 callers
Function
deleteUserAccount
( proof: string, signal: AbortSignal )
web/src/features/profile/api.ts:104
↓ 1 callers
Function
deleteUserAuthenticationData
(tx *gorm.DB, userId int)
model/user.go:1038
↓ 1 callers
Function
deleteUserOAuthBindingsByUserId
(tx *gorm.DB, userId int)
model/user_oauth_binding.go:137
↓ 1 callers
Function
deleteUserSubscription
( subId: number )
web/src/features/subscriptions/api.ts:102
↓ 1 callers
Function
deleteValue
(doc *ojson.Doc, path string)
relay/common/override.go:1783
↓ 1 callers
Function
deletedTokenLabel
(tokenID: number, ctx: FlowPathContext)
web/src/features/dashboard/lib/flow.ts:202
↓ 1 callers
Method
deltaEvent
deltaEvent is a delta event in the client's format that carries text of output.
relay/requestplugin/reply.go:1436
↓ 1 callers
Function
deriveLanePrice
( ratio: unknown, denominator: unknown, fallback = '' )
web/src/features/system-settings/models/model-pricing-core.ts:216
↓ 1 callers
Function
deriveNextRefreshSecret
(sid, currentSecret string)
service/auth_session.go:451
↓ 1 callers
Function
deriveTextLabel
(input: PluginIconInput)
web/src/features/task-plugins/lib/plugin-icon.ts:81
↓ 1 callers
Function
describeAccessTokenScopes
( scopes: string[], resources: PermissionResourceDef[] | undefined, t: TFunction )
web/src/features/usage-logs/audit/lib/audit-details.ts:204
↓ 1 callers
Function
describeBillingCondition
( node: ExpressionNode, t: Translate, locale: string )
web/src/features/pricing/lib/billing-expression/condition-display.ts:133
↓ 1 callers
Function
describeCondition
( cond: RequestCondition, t: (key: string) => string )
web/src/features/pricing/components/dynamic-pricing-breakdown.tsx:225
↓ 1 callers
Function
describeGroup
( group: RequestRuleGroup, t: (key: string) => string, locale: string )
web/src/features/pricing/components/dynamic-pricing-breakdown.tsx:258
↓ 1 callers
Function
describeHeaders
describeHeaders names the headers header.patch effects set and removed.
relay/requestplugin/record.go:155
↓ 1 callers
Function
describeSyncPrice
( values: PricingSyncValues, t: (key: string) => string, currency = USD_PRICING_CURRENCY )
web/src/features/system-settings/models/upstream-ratio-sync-helpers.ts:211
↓ 1 callers
Function
describeTimeRange
( comparisons: TimeComparison[], t: Translate, locale: string )
web/src/features/pricing/lib/billing-expression/condition-display.ts:70
↓ 1 callers
Function
describeValue
describeValue shows a short scalar new value as it is, and only the type and length of any other.
relay/requestplugin/record.go:72
↓ 1 callers
Function
detectChatLinkType
(url: string)
web/src/features/chat/lib/chat-links.ts:77
↓ 1 callers
Function
detectErrorFromTestResponseBody
(respBody []byte)
controller/channel-test.go:651
↓ 1 callers
Function
detectErrorMessageFromJSONBytes
(jsonBytes []byte)
controller/channel-test.go:716
↓ 1 callers
Function
detectImageMimeType
detectImageMimeType determines the MIME type based on the file extension
relay/channel/openai/adaptor.go:660
↓ 1 callers
Function
detectLanguage
detectLanguage returns the language the request states, or "" when it states none. Priority: 1. User setting (if logged in) -> 2. Accept-Language head
middleware/i18n.go:23
↓ 1 callers
Function
detectModelNamingPatterns
( models: readonly string[], knownModels: readonly string[] )
web/src/features/channels/lib/model-naming-patterns.ts:45
↓ 1 callers
Function
detectScheme
(r *http.Request)
service/passkey/service.go:237
↓ 1 callers
Function
detectVideoFormat
detectVideoFormat 从 Gemini/Vertex 原始响应中探测视频格式
relay/relay_task.go:657
↓ 1 callers
Method
dialWebSocket
dialWebSocket opens the upstream session of request.
relay/channel/providerplugin/chain.go:303
↓ 1 callers
Function
diff
(path, before, after, ops)
plugins/tasks/param-override/plugin.js:92
↓ 1 callers
Function
diffLines
(before: string, after: string)
web/src/features/task-plugins/components/source-diff.tsx:35
↓ 1 callers
Function
difyHandler
(c *gin.Context, info *relaycommon.RelayInfo, resp *http.Response)
relay/channel/dify/relay-dify.go:266
↓ 1 callers
Function
difyStreamHandler
(c *gin.Context, info *relaycommon.RelayInfo, resp *http.Response)
relay/channel/dify/relay-dify.go:226
↓ 1 callers
Function
digestEncoding
digestEncoding reads a signing utility's output encoding: undefined is fallback, anything else must name hex, base64, base64url or bytes.
pkg/jsplugin/utils.go:405
↓ 1 callers
Method
dimensions
dimensions reads the pixel size of an image from its header; zero when the media is not an image the host decodes.
relay/requestplugin/media.go:60
↓ 1 callers
Function
disable2FA
( proofToken: string, signal?: AbortSignal )
web/src/lib/api.ts:98
↓ 1 callers
Function
disableAllMultiKeys
( channelId: number )
web/src/features/channels/api.ts:632
↓ 1 callers
Function
disableMultiKey
( channelId: number, keyIndex: number )
web/src/features/channels/api.ts:592
↓ 1 callers
Function
disableMultiKeyChannelIfUnavailable
(channel *model.Channel)
controller/channel.go:113
↓ 1 callers
Function
disableTagChannels
( tag: string )
web/src/features/channels/api.ts:674
↓ 1 callers
Function
discoverOIDCEndpoints
( wellKnownUrl: string )
web/src/features/system-settings/auth/custom-oauth/api.ts:73
↓ 1 callers
Function
display
(field: MetadataSyncField, value: string | number)
web/src/features/models/components/dialogs/sync-wizard-dialog.tsx:302
↓ 1 callers
Method
doNativeResponse
(c *gin.Context, resp *http.Response, info *relaycommon.RelayInfo)
relay/channel/advancedcustom/adaptor.go:364
↓ 1 callers
Method
doSGLangRerankResponse
(c *gin.Context, resp *http.Response, info *relaycommon.RelayInfo)
relay/channel/advancedcustom/rerank.go:15
↓ 1 callers
Function
domainResponse
(overrides: Partial<PasskeyDomainChange> = {})
web/src/features/system-settings/auth/__tests__/passkey-settings.test.tsx:58
↓ 1 callers
Method
done
done ends a response at its response.done: the check reads the rest of its text, and the report gets the response.
relay/requestplugin/socket.go:590
↓ 1 callers
Function
downloadCsv
(filename: string, lines: string[])
web/src/features/usage-logs/lib/export.ts:113
↓ 1 callers
Function
downloadImagesToBase64
(urls []string)
relay/channel/replicate/adaptor.go:314
↓ 1 callers
Function
draftTaskIds
(content)
plugins/tasks/doubao/plugin.js:351
↓ 1 callers
Method
drain
()
pkg/perf_metrics/types.go:144
↓ 1 callers
Function
dryRunReply
dryRunReply runs the reply checks of a dry run on text as the non-stream answer of a relay request, and adds their steps and record to result. A failu
relay/requestplugin/relay.go:715
↓ 1 callers
Function
dryRunTaskPlugin
( key: string, request: TaskPluginDryRunRequest )
web/src/features/task-plugins/api.ts:42
↓ 1 callers
Function
editorTree
(value: string)
web/src/components/ai-elements/__tests__/code-block-editor.test.tsx:28
↓ 1 callers
Function
effortPercentage
(effort Effort, adapterBudgetPercentage float64)
relaykit/relayconvert/reasoning/claude.go:476
↓ 1 callers
Function
embeddingRequestOpenAI2Baidu
(request dto.EmbeddingRequest)
relay/channel/baidu/relay-baidu.go:94
↓ 1 callers
Function
embeddingRequestOpenAI2Moka
(request dto.GeneralOpenAIRequest)
relay/channel/mokaai/relay-mokaai.go:17
↓ 1 callers
Function
embeddingResponseBaidu2OpenAI
(response *BaiduEmbeddingResponse)
relay/channel/baidu/relay-baidu.go:100
↓ 1 callers
Function
embeddingResponseMoka2OpenAI
(response *dto.EmbeddingResponse)
relay/channel/mokaai/relay-mokaai.go:38
↓ 1 callers
Method
emit
(type: string, data?: string)
web/src/features/playground/hooks/use-stream-request.test.ts:58
↓ 1 callers
Method
emit
emit writes one event with the released text in its text fields. Before an event without text, released text that no event carried goes out in a delta
relay/requestplugin/reply.go:1381
↓ 1 callers
Method
empty
()
model/prefill_group_migration.go:22
↓ 1 callers
Function
emptyBalance
emptyBalance reports a definite balance that is used up: a finite amount of 0 or less, not unlimited.
controller/channel_balance.go:41
↓ 1 callers
Function
enable2FA
( code: string, flowToken: string, signal: AbortSignal )
web/src/features/security/api.ts:202
↓ 1 callers
Function
enableAllMultiKeys
( channelId: number )
web/src/features/channels/api.ts:620
↓ 1 callers
Function
enableMultiKey
( channelId: number, keyIndex: number )
web/src/features/channels/api.ts:578
↓ 1 callers
Function
enablePluginLoginChannel
enablePluginLoginChannel re-enables the key line at index, and the channel, when the host disabled them for a missing or expired login. A manual disab
service/provider_plugin_login.go:715
↓ 1 callers
Function
enableTagChannels
( tag: string )
web/src/features/channels/api.ts:660
↓ 1 callers
Function
encodeChannelConnectionInfo
(key: string, url: string)
web/src/lib/channel-connection-info.ts:30
↓ 1 callers
Function
encodeClaudeChoice
(choice *Choice, parallelAllowed *bool, source types.RelayFormat)
relaykit/relayconvert/internal/toolconv/encode.go:1608
↓ 1 callers
Function
encodeDigest
encodeDigest returns digest in an encoding digestEncoding accepted: lowercase hex, padded base64, unpadded base64url, or an ArrayBuffer for bytes.
pkg/jsplugin/utils.go:423
↓ 1 callers
Function
encodeFilePlaceholder
(placeholder map[string]any, form *multipart.Form, limit int64, total *int64)
relay/channel/task/jsplugin/adaptor.go:513
↓ 1 callers
Function
encodeGeminiChoice
(choice *Choice)
relaykit/relayconvert/internal/toolconv/encode.go:1649
↓ 1 callers
Function
encodeOpenAIChatChoice
(choice *Choice)
relaykit/relayconvert/internal/toolconv/encode.go:1556
↓ 1 callers
Function
encodeOpenAIResponsesChoice
(choice *Choice, source types.RelayFormat)
relaykit/relayconvert/internal/toolconv/encode.go:1578
↓ 1 callers
Function
encodeWebSearch
encodeWebSearch maps hosted web search onto the DashScope OpenAI-compatible Chat fields enable_search and search_options (https://help.aliyun.com/zh/m
relay/channel/ali/web_search.go:42
↓ 1 callers
Function
encodeWebSearch
encodeWebSearch maps hosted web search onto the GLM Chat web_search tool (https://docs.bigmodel.cn/api-reference/模型-api/对话补全). Claude and Responses cl
relay/channel/zhipu_4v/web_search.go:23
↓ 1 callers
Method
encodedSize
encodedSize is the length of the value's JSON text as encode writes it, counted until it passes limit.
pkg/requestpatch/patch.go:475
↓ 1 callers
Function
endRun
(run: FadeRun)
web/src/components/ai-elements/response-fade.ts:179
↓ 1 callers
Function
endpointOptions
()
web/src/features/channels/components/__tests__/channel-test-dialog-endpoints.test.tsx:90
↓ 1 callers
Function
endpointRow
* The endpoint row that renders `path`, i.e. the list item holding both the * method badge and the path. Annotations such as the supported request fo
web/src/features/task-plugins/__tests__/plugin-detail-sheet.test.tsx:96
↓ 1 callers
Function
endsPluginLogin
(error: unknown)
web/src/features/channels/lib/plugin-login.ts:234
↓ 1 callers
Function
ensureAnthropicWebSearchEntrypoint
ensureAnthropicWebSearchEntrypoint prepends the marker block to system when the request carries a web_search_* tool; a string system becomes the block
relay/channel/ali/web_search.go:120
↓ 1 callers
Function
ensureClaudeMessagesStartWithUser
(messages []dto.ClaudeMessage)
relaykit/relayconvert/internal/oai_responses/to_claude_messages_req.go:345
↓ 1 callers
Function
ensureContextMap
(conditionContext map[string]any)
relay/common/override.go:1197
↓ 1 callers
Method
ensureFallbackToolForEvent
(event *dto.ResponsesStreamResponse)
relaykit/relayconvert/internal/oai_responses/to_oai_chat_stream_resp.go:432
↓ 1 callers
Function
ensureIncompleteResponse
(resp *dto.OpenAIResponsesResponse)
relaykit/relayconvert/internal/oai_responses/to_oai_chat_resp.go:344
↓ 1 callers
Function
ensurePageInRange
( pageCount: number, opts: { resetTo?: 'first' | 'last' } = { resetTo: 'first' } )
web/src/hooks/use-table-url-state.ts:240
↓ 1 callers
Function
ensureStringAffix
(doc *ojson.Doc, path string, value any, isPrefix bool)
relay/common/override.go:1863
↓ 1 callers
Function
ensureSubscriptionPlanTableSQLite
()
model/main.go:508
↓ 1 callers
Method
ensureTool
(event *dto.ResponsesStreamResponse)
relaykit/relayconvert/internal/oai_responses/to_oai_chat_stream_resp.go:868
← previous
next →
6,301–6,400 of 15,409, ranked by callers