MCPcopy Create free account

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

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

↓ 1 callersFunctiondeleteOllamaModel
(params: { channel_id: number model_name: string })
web/src/features/channels/api.ts:733
↓ 1 callersFunctiondeletePasskey
( proofToken: string, signal?: AbortSignal )
web/src/features/auth/passkey/api.ts:69
↓ 1 callersFunctiondeletePrefillGroup
( id: number )
web/src/features/models/api.ts:285
↓ 1 callersFunctiondeleteRedemption
(id: number)
web/src/features/redemption-codes/api.ts:91
↓ 1 callersFunctiondeleteRevokedUserSessionsBefore
(revokedBefore, issuanceCutoff int64)
model/user_session.go:856
↓ 1 callersFunctiondeleteRow
( user: ReturnType<typeof userEvent.setup>, name: string )
web/src/features/system-settings/models/__tests__/price-changes.test.tsx:139
↓ 1 callersFunctiondeleteStaleSystemInstance
(nodeName: string)
web/src/features/system-info/api.ts:52
↓ 1 callersFunctiondeleteStaleSystemInstances
()
web/src/features/system-info/api.ts:45
↓ 1 callersFunctiondeleteSystemTaskHistory
( filters: Pick<SystemTaskFilters, 'type' | 'status'> )
web/src/features/system-info/api.ts:59
↓ 1 callersFunctiondeleteTaskPluginVersion
( key: string, version: string, force = false )
web/src/features/task-plugins/api.ts:179
↓ 1 callersFunctiondeleteTaskPluginVersionRequest
(t *testing.T, key, version string)
controller/task_plugin_test.go:1477
↓ 1 callersFunctiondeleteUser
( id: number, proofToken: string )
web/src/features/users/api.ts:137
↓ 1 callersFunctiondeleteUserAccount
( proof: string, signal: AbortSignal )
web/src/features/profile/api.ts:104
↓ 1 callersFunctiondeleteUserAuthenticationData
(tx *gorm.DB, userId int)
model/user.go:1038
↓ 1 callersFunctiondeleteUserOAuthBindingsByUserId
(tx *gorm.DB, userId int)
model/user_oauth_binding.go:137
↓ 1 callersFunctiondeleteUserSubscription
( subId: number )
web/src/features/subscriptions/api.ts:102
↓ 1 callersFunctiondeleteValue
(doc *ojson.Doc, path string)
relay/common/override.go:1783
↓ 1 callersFunctiondeletedTokenLabel
(tokenID: number, ctx: FlowPathContext)
web/src/features/dashboard/lib/flow.ts:202
↓ 1 callersMethoddeltaEvent
deltaEvent is a delta event in the client's format that carries text of output.
relay/requestplugin/reply.go:1436
↓ 1 callersFunctionderiveLanePrice
( ratio: unknown, denominator: unknown, fallback = '' )
web/src/features/system-settings/models/model-pricing-core.ts:216
↓ 1 callersFunctionderiveNextRefreshSecret
(sid, currentSecret string)
service/auth_session.go:451
↓ 1 callersFunctionderiveTextLabel
(input: PluginIconInput)
web/src/features/task-plugins/lib/plugin-icon.ts:81
↓ 1 callersFunctiondescribeAccessTokenScopes
( scopes: string[], resources: PermissionResourceDef[] | undefined, t: TFunction )
web/src/features/usage-logs/audit/lib/audit-details.ts:204
↓ 1 callersFunctiondescribeBillingCondition
( node: ExpressionNode, t: Translate, locale: string )
web/src/features/pricing/lib/billing-expression/condition-display.ts:133
↓ 1 callersFunctiondescribeCondition
( cond: RequestCondition, t: (key: string) => string )
web/src/features/pricing/components/dynamic-pricing-breakdown.tsx:225
↓ 1 callersFunctiondescribeGroup
( group: RequestRuleGroup, t: (key: string) => string, locale: string )
web/src/features/pricing/components/dynamic-pricing-breakdown.tsx:258
↓ 1 callersFunctiondescribeHeaders
describeHeaders names the headers header.patch effects set and removed.
relay/requestplugin/record.go:155
↓ 1 callersFunctiondescribeSyncPrice
( values: PricingSyncValues, t: (key: string) => string, currency = USD_PRICING_CURRENCY )
web/src/features/system-settings/models/upstream-ratio-sync-helpers.ts:211
↓ 1 callersFunctiondescribeTimeRange
( comparisons: TimeComparison[], t: Translate, locale: string )
web/src/features/pricing/lib/billing-expression/condition-display.ts:70
↓ 1 callersFunctiondescribeValue
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 callersFunctiondetectChatLinkType
(url: string)
web/src/features/chat/lib/chat-links.ts:77
↓ 1 callersFunctiondetectErrorFromTestResponseBody
(respBody []byte)
controller/channel-test.go:651
↓ 1 callersFunctiondetectErrorMessageFromJSONBytes
(jsonBytes []byte)
controller/channel-test.go:716
↓ 1 callersFunctiondetectImageMimeType
detectImageMimeType determines the MIME type based on the file extension
relay/channel/openai/adaptor.go:660
↓ 1 callersFunctiondetectLanguage
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 callersFunctiondetectModelNamingPatterns
( models: readonly string[], knownModels: readonly string[] )
web/src/features/channels/lib/model-naming-patterns.ts:45
↓ 1 callersFunctiondetectScheme
(r *http.Request)
service/passkey/service.go:237
↓ 1 callersFunctiondetectVideoFormat
detectVideoFormat 从 Gemini/Vertex 原始响应中探测视频格式
relay/relay_task.go:657
↓ 1 callersMethoddialWebSocket
dialWebSocket opens the upstream session of request.
relay/channel/providerplugin/chain.go:303
↓ 1 callersFunctiondiff
(path, before, after, ops)
plugins/tasks/param-override/plugin.js:92
↓ 1 callersFunctiondiffLines
(before: string, after: string)
web/src/features/task-plugins/components/source-diff.tsx:35
↓ 1 callersFunctiondifyHandler
(c *gin.Context, info *relaycommon.RelayInfo, resp *http.Response)
relay/channel/dify/relay-dify.go:266
↓ 1 callersFunctiondifyStreamHandler
(c *gin.Context, info *relaycommon.RelayInfo, resp *http.Response)
relay/channel/dify/relay-dify.go:226
↓ 1 callersFunctiondigestEncoding
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 callersMethoddimensions
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 callersFunctiondisable2FA
( proofToken: string, signal?: AbortSignal )
web/src/lib/api.ts:98
↓ 1 callersFunctiondisableAllMultiKeys
( channelId: number )
web/src/features/channels/api.ts:632
↓ 1 callersFunctiondisableMultiKey
( channelId: number, keyIndex: number )
web/src/features/channels/api.ts:592
↓ 1 callersFunctiondisableMultiKeyChannelIfUnavailable
(channel *model.Channel)
controller/channel.go:113
↓ 1 callersFunctiondisableTagChannels
( tag: string )
web/src/features/channels/api.ts:674
↓ 1 callersFunctiondiscoverOIDCEndpoints
( wellKnownUrl: string )
web/src/features/system-settings/auth/custom-oauth/api.ts:73
↓ 1 callersFunctiondisplay
(field: MetadataSyncField, value: string | number)
web/src/features/models/components/dialogs/sync-wizard-dialog.tsx:302
↓ 1 callersMethoddoNativeResponse
(c *gin.Context, resp *http.Response, info *relaycommon.RelayInfo)
relay/channel/advancedcustom/adaptor.go:364
↓ 1 callersMethoddoSGLangRerankResponse
(c *gin.Context, resp *http.Response, info *relaycommon.RelayInfo)
relay/channel/advancedcustom/rerank.go:15
↓ 1 callersFunctiondomainResponse
(overrides: Partial<PasskeyDomainChange> = {})
web/src/features/system-settings/auth/__tests__/passkey-settings.test.tsx:58
↓ 1 callersMethoddone
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 callersFunctiondownloadCsv
(filename: string, lines: string[])
web/src/features/usage-logs/lib/export.ts:113
↓ 1 callersFunctiondownloadImagesToBase64
(urls []string)
relay/channel/replicate/adaptor.go:314
↓ 1 callersFunctiondraftTaskIds
(content)
plugins/tasks/doubao/plugin.js:351
↓ 1 callersMethoddrain
()
pkg/perf_metrics/types.go:144
↓ 1 callersFunctiondryRunReply
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 callersFunctiondryRunTaskPlugin
( key: string, request: TaskPluginDryRunRequest )
web/src/features/task-plugins/api.ts:42
↓ 1 callersFunctioneditorTree
(value: string)
web/src/components/ai-elements/__tests__/code-block-editor.test.tsx:28
↓ 1 callersFunctioneffortPercentage
(effort Effort, adapterBudgetPercentage float64)
relaykit/relayconvert/reasoning/claude.go:476
↓ 1 callersFunctionembeddingRequestOpenAI2Baidu
(request dto.EmbeddingRequest)
relay/channel/baidu/relay-baidu.go:94
↓ 1 callersFunctionembeddingRequestOpenAI2Moka
(request dto.GeneralOpenAIRequest)
relay/channel/mokaai/relay-mokaai.go:17
↓ 1 callersFunctionembeddingResponseBaidu2OpenAI
(response *BaiduEmbeddingResponse)
relay/channel/baidu/relay-baidu.go:100
↓ 1 callersFunctionembeddingResponseMoka2OpenAI
(response *dto.EmbeddingResponse)
relay/channel/mokaai/relay-mokaai.go:38
↓ 1 callersMethodemit
(type: string, data?: string)
web/src/features/playground/hooks/use-stream-request.test.ts:58
↓ 1 callersMethodemit
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 callersMethodempty
()
model/prefill_group_migration.go:22
↓ 1 callersFunctionemptyBalance
emptyBalance reports a definite balance that is used up: a finite amount of 0 or less, not unlimited.
controller/channel_balance.go:41
↓ 1 callersFunctionenable2FA
( code: string, flowToken: string, signal: AbortSignal )
web/src/features/security/api.ts:202
↓ 1 callersFunctionenableAllMultiKeys
( channelId: number )
web/src/features/channels/api.ts:620
↓ 1 callersFunctionenableMultiKey
( channelId: number, keyIndex: number )
web/src/features/channels/api.ts:578
↓ 1 callersFunctionenablePluginLoginChannel
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 callersFunctionenableTagChannels
( tag: string )
web/src/features/channels/api.ts:660
↓ 1 callersFunctionencodeChannelConnectionInfo
(key: string, url: string)
web/src/lib/channel-connection-info.ts:30
↓ 1 callersFunctionencodeClaudeChoice
(choice *Choice, parallelAllowed *bool, source types.RelayFormat)
relaykit/relayconvert/internal/toolconv/encode.go:1608
↓ 1 callersFunctionencodeDigest
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 callersFunctionencodeFilePlaceholder
(placeholder map[string]any, form *multipart.Form, limit int64, total *int64)
relay/channel/task/jsplugin/adaptor.go:513
↓ 1 callersFunctionencodeGeminiChoice
(choice *Choice)
relaykit/relayconvert/internal/toolconv/encode.go:1649
↓ 1 callersFunctionencodeOpenAIChatChoice
(choice *Choice)
relaykit/relayconvert/internal/toolconv/encode.go:1556
↓ 1 callersFunctionencodeOpenAIResponsesChoice
(choice *Choice, source types.RelayFormat)
relaykit/relayconvert/internal/toolconv/encode.go:1578
↓ 1 callersFunctionencodeWebSearch
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 callersFunctionencodeWebSearch
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 callersMethodencodedSize
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 callersFunctionendRun
(run: FadeRun)
web/src/components/ai-elements/response-fade.ts:179
↓ 1 callersFunctionendpointOptions
()
web/src/features/channels/components/__tests__/channel-test-dialog-endpoints.test.tsx:90
↓ 1 callersFunctionendpointRow
* 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 callersFunctionendsPluginLogin
(error: unknown)
web/src/features/channels/lib/plugin-login.ts:234
↓ 1 callersFunctionensureAnthropicWebSearchEntrypoint
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 callersFunctionensureClaudeMessagesStartWithUser
(messages []dto.ClaudeMessage)
relaykit/relayconvert/internal/oai_responses/to_claude_messages_req.go:345
↓ 1 callersFunctionensureContextMap
(conditionContext map[string]any)
relay/common/override.go:1197
↓ 1 callersMethodensureFallbackToolForEvent
(event *dto.ResponsesStreamResponse)
relaykit/relayconvert/internal/oai_responses/to_oai_chat_stream_resp.go:432
↓ 1 callersFunctionensureIncompleteResponse
(resp *dto.OpenAIResponsesResponse)
relaykit/relayconvert/internal/oai_responses/to_oai_chat_resp.go:344
↓ 1 callersFunctionensurePageInRange
( pageCount: number, opts: { resetTo?: 'first' | 'last' } = { resetTo: 'first' } )
web/src/hooks/use-table-url-state.ts:240
↓ 1 callersFunctionensureStringAffix
(doc *ojson.Doc, path string, value any, isPrefix bool)
relay/common/override.go:1863
↓ 1 callersFunctionensureSubscriptionPlanTableSQLite
()
model/main.go:508
↓ 1 callersMethodensureTool
(event *dto.ResponsesStreamResponse)
relaykit/relayconvert/internal/oai_responses/to_oai_chat_stream_resp.go:868
← previousnext →6,301–6,400 of 15,409, ranked by callers