MCPcopy Create free account

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

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

↓ 1 callersFunctionshouldReplaceModelsDevCandidate
(current, next modelsDevCandidate)
controller/ratio_sync.go:1025
↓ 1 callersFunctionshouldShowMessageContent
( message: Message, versionContent: string )
web/src/features/playground/lib/message/message-content-utils.ts:57
↓ 1 callersFunctionshouldShowMessageLoader
( message: Message, isAssistant: boolean, versionContent: string )
web/src/features/playground/lib/message/message-content-utils.ts:44
↓ 1 callersFunctionshouldSkipPassthroughHeader
(name string)
relay/channel/api_request.go:142
↓ 1 callersMethodshouldTrust
shouldTrust 统一信任额度检查,适用于钱包和订阅。
service/billing_session.go:329
↓ 1 callersFunctionshouldUseGeminiStreamURL
(converter string, info *relaycommon.RelayInfo)
relay/channel/advancedcustom/adaptor.go:523
↓ 1 callersFunctionshouldUseSMTPLoginAuth
()
common/email.go:22
↓ 1 callersFunctionshouldUseStreamForAutomaticChannelTest
(channel *model.Channel)
controller/channel-test.go:712
↓ 1 callersFunctionshow
()
web/src/features/system-settings/request-policies/__tests__/routing.test.tsx:108
↓ 1 callersFunctionshow
()
web/src/features/system-settings/request-policies/__tests__/channel-health-layout.test.tsx:39
↓ 1 callersFunctionshrinkShortSide
shrinkShortSide scales an image down so its shortest side is at most limit, rounding the other side down.
tokenkit/image.go:278
↓ 1 callersFunctionside
(kind: 'removed' | 'added')
web/src/features/task-plugins/components/request-plugin-try-panel.tsx:284
↓ 1 callersFunctionsideDrawerSectionClassName
(className?: string)
web/src/components/drawer-layout.ts:48
↓ 1 callersFunctionsidebarFor
(admin?: object, user?: object, canConfigure = true)
web/src/hooks/__tests__/sidebar-config.test.tsx:69
↓ 1 callersFunctionsignVolcV4
(request volcSignRequest, now func() time.Time)
pkg/jsplugin/utils.go:435
↓ 1 callersFunctionsigningInput
signingInput reads a signing utility's byte parameter: an ArrayBuffer, SharedArrayBuffer, typed array or DataView as a copy of the bytes it holds or v
pkg/jsplugin/utils.go:384
↓ 1 callersFunctionsiliconflowRerankHandler
(c *gin.Context, info *relaycommon.RelayInfo, resp *http.Response)
relay/channel/siliconflow/relay-siliconflow.go:16
↓ 1 callersFunctionsizeOptions
(size)
plugins/tasks/xai/plugin.js:278
↓ 1 callersMethodskipDict
()
relay/requestplugin/pdf.go:757
↓ 1 callersMethodskipInlineImage
skipInlineImage moves past an inline image: its parameters, ID, the image data and EI.
relay/requestplugin/pdf.go:772
↓ 1 callersFunctionsleep
(ms: number)
web/src/features/channels/components/dialogs/channel-test-dialog.tsx:251
↓ 1 callersFunctionsmartDetectMimeType
smartDetectMimeType 智能检测 MIME 类型
service/file_service.go:249
↓ 1 callersFunctionsmokeTestExpr
(exprStr string)
setting/billing_setting/tiered_billing.go:208
↓ 1 callersFunctionsmtpServerSupportsAuth
(server *smtp.ServerInfo, mechanism string)
common/email_ntlm_auth.go:73
↓ 1 callersFunctionsmtpTLSConfig
()
common/email.go:37
↓ 1 callersFunctionsnapFloatDrift
(value: number)
web/src/features/system-settings/models/pricing-format.ts:42
↓ 1 callersFunctionsnapshot
(at: number, metrics: InferenceMetric[])
web/src/features/channels/lib/__tests__/inference-status.test.ts:30
↓ 1 callersFunctionsnapshotFiles
(files)
web/scripts/format-with-protected-headers.mjs:76
↓ 1 callersFunctionsniffPluginIconMediaType
Tells a PNG or SVG logo apart by its bytes; null for anything else.
web/src/features/task-plugins/lib/plugin-icon-file.ts:84
↓ 1 callersFunctionsortResetCredits
(credits: CodexResetCredit[])
web/src/features/channels/components/dialogs/codex-usage-dialog.tsx:260
↓ 1 callersFunctionsortedModelCategories
(models: string[])
web/src/features/channels/components/upstream-model-selection.tsx:46
↓ 1 callersFunctionsortedPluginKeys
(plugins map[string]*jsplugin.LoadedPlugin)
router/plugin-router.go:602
↓ 1 callersFunctionsortedPlugins
(plugins map[string]*jsplugin.LoadedPlugin)
router/plugin-router.go:611
↓ 1 callersMethodsortedTools
()
relaykit/relayconvert/internal/oai_chat/to_oai_responses_stream_resp.go:832
↓ 1 callersFunctionsourceEditor
()
web/src/features/task-plugins/__tests__/upload-dialog.test.tsx:63
↓ 1 callersFunctionsourceGroupPricingSignature
( groupRatio: string, userUsableGroups: string, topupGroupRatio: string )
web/src/features/system-settings/models/group-ratio-visual-editor.tsx:217
↓ 1 callersFunctionsourceWithoutCommentsAndStrings
(source string)
pkg/jsplugin/engine.go:905
↓ 1 callersMethodspend
(bytes, nodes int)
pkg/jsplugin/json_state.go:87
↓ 1 callersFunctionsplitDraft
(value: string)
web/src/components/multi-select.tsx:95
↓ 1 callersFunctionsplitFlowLabel
(label: string, maxUnits: number)
web/src/components/ui/markdown.tsx:213
↓ 1 callersFunctionsplitLines
(value: string)
web/src/features/system-settings/request-limits/ssrf-section.tsx:96
↓ 1 callersFunctionsplitModelNamespace
(modelName string)
setting/reasoning/suffix.go:98
↓ 1 callersFunctionsplitTopLevelAnd
(expr: string)
web/src/features/pricing/lib/billing-expr.ts:368
↓ 1 callersFunctionstableStringify
(obj)
web/scripts/sync-i18n.mjs:123
↓ 1 callersMethodstart
start begins the check and the capture of a response.
relay/requestplugin/socket.go:507
↓ 1 callersFunctionstartEmailBinding
( email: string, proofToken: string, signal: AbortSignal )
web/src/features/profile/api.ts:141
↓ 1 callersFunctionstartLogCleanupTask
(targetTimestamp: number)
web/src/features/system-settings/api.ts:69
↓ 1 callersFunctionstartPluginLogin
( channelId: number, keyIndex: number | null, add = false )
web/src/features/channels/api.ts:481
↓ 1 callersFunctionstartServer
()
electron/main.js:222
↓ 1 callersMethodstartTargetReader
(target *websocket.Conn)
relay/responses_websocket.go:784
↓ 1 callersFunctionstartTelegramBind
()
web/src/features/profile/api.ts:224
↓ 1 callersMethodstream
()
web/src/features/playground/hooks/use-stream-request.test.ts:54
↓ 1 callersFunctionstreamMetaResponseZhipu2OpenAI
(zhipuResponse *ZhipuStreamMetaResponse)
relay/channel/zhipu/relay-zhipu.go:144
↓ 1 callersFunctionstreamResponseBaidu2OpenAI
(baiduResponse *BaiduChatStreamResponse)
relay/channel/baidu/relay-baidu.go:78
↓ 1 callersFunctionstreamResponseDify2OpenAI
(difyResponse DifyChunkChatCompletionResponse)
relay/channel/dify/relay-dify.go:190
↓ 1 callersFunctionstreamResponsePaLM2OpenAI
(palmResponse *PaLMChatResponse)
relay/channel/palm/relay-palm.go:40
↓ 1 callersFunctionstreamResponseTencent2OpenAI
(TencentResponse *TencentChatResponse)
relay/channel/tencent/relay-tencent.go:76
↓ 1 callersFunctionstreamResponseXAI2OpenAI
(xAIResp *dto.ChatCompletionsStreamResponse, usage *dto.Usage)
relay/channel/xai/text.go:19
↓ 1 callersFunctionstreamResponseXunfei2OpenAI
(xunfeiResponse *XunfeiChatResponse)
relay/channel/xunfei/relay-xunfei.go:83
↓ 1 callersFunctionstreamResponseZhipu2OpenAI
(zhipuResponse string)
relay/channel/zhipu/relay-zhipu.go:132
↓ 1 callersMethodstreamSource
streamSource is the event source of an upstream HTTP stream: an AWS event stream by its content type, else server-sent events or, without that content
relay/channel/providerplugin/stream.go:86
↓ 1 callersFunctionstreamTaskPluginProtocol
( c *gin.Context, pinned pluginruntime.PinnedEndpoint, protocolRequest pluginruntime.ProtocolRequestContext
controller/plugin_protocol.go:400
↓ 1 callersFunctionstreamedResponse
streamedResponse reports whether a success response is read as a stream: the request's own stream choice, else the client's for the first request, els
relay/channel/providerplugin/chain.go:263
↓ 1 callersFunctionstringArray
(value: unknown)
web/src/features/task-plugins/lib/marketplace.ts:353
↓ 1 callersFunctionstrings
(value)
plugins/tasks/content-moderation/plugin.js:169
↓ 1 callersFunctionstripCustomTags
(input: unknown)
web/src/components/ai-elements/response-content.ts:146
↓ 1 callersFunctionstripProtectedHeaders
(files)
web/scripts/format-with-protected-headers.mjs:90
↓ 1 callersFunctionstripRecordNames
stripRecordNames drops the display names, which come from the plugin meta.
controller/responses_websocket_plugin_test.go:181
↓ 1 callersFunctionstripTrailingZeros
(formatted: string)
web/src/features/pricing/lib/price.ts:32
↓ 1 callersFunctionstripUptimePointSuffix
(value: string)
web/src/features/pricing/components/model-details-charts.tsx:88
↓ 1 callersFunctionstubOAuthPopup
()
web/src/features/auth/secure-verification/__tests__/verification-flow.test.tsx:51
↓ 1 callersFunctionstubResponse
(options: { ok: boolean status?: number body?: string contentLength?: string })
web/src/features/task-plugins/__tests__/plugin-url.test.ts:116
↓ 1 callersFunctionstubStatusEndpoint
Count `/api/status` calls at the network boundary and serve `system_name`.
web/src/lib/__tests__/status-query.test.tsx:52
↓ 1 callersFunctionsubmit
()
web/src/features/task-plugins/components/request-plugin-instance-editor.tsx:257
↓ 1 callersFunctionsubmitForm
()
web/src/features/redemption-codes/components/__tests__/redemptions-mutate-drawer.test.tsx:171
↓ 1 callersFunctionsubmitPaymentForm
( url: string, params: Record<string, unknown> )
web/src/features/wallet/lib/payment.ts:62
↓ 1 callersFunctionsubmitPluginLoginCallback
( plugin: string, params: Record<string, string> )
web/src/features/channels/api.ts:514
↓ 1 callersFunctionsubmitReplyLimit
submitReplyLimit bounds the submit reply and each of its SSE events. A native route that declares retainResult: false delivers the reply once and neve
relay/channel/task/jsplugin/adaptor.go:659
↓ 1 callersFunctionsubmitSettings
(ctx, action)
plugins/tasks/vidu/plugin.js:376
↓ 1 callersFunctionsubscribeAuthSessionEvents
( listener: (event: AuthSessionSyncEvent) => void )
web/src/lib/auth-session-sync.ts:80
↓ 1 callersFunctionsubscriptionPlanCacheCapacity
()
model/subscription.go:70
↓ 1 callersFunctionsubscriptionPlanInfoCacheCapacity
()
model/subscription.go:78
↓ 1 callersFunctionsumPluginKeyBalances
sumPluginKeyBalances is a multi-key channel's own result from its keys': the sum of their amounts when they share one currency, unlimited when every k
service/provider_plugin_balance.go:101
↓ 1 callersFunctionsumRankingTokens
(totals []model.RankingQuotaTotal)
service/rankings.go:548
↓ 1 callersFunctionsuperseded
()
web/src/lib/auth-session.ts:214
↓ 1 callersFunctionsupportsNewAPIUpstream
( plugin: Pick<TaskPluginOption, 'upstreams'> )
web/src/features/channels/lib/channel-plugin-extensions.ts:73
↓ 1 callersFunctionsvgValueReferencesExternal
(value string)
pkg/jsplugin/icon.go:119
↓ 1 callersFunctionswapOptionTables
(db *gorm.DB, tmp, backup string)
model/option_primary_key_migration.go:191
↓ 1 callersFunctionswapRoutes
(fromIndex: number, toIndex: number)
web/src/features/channels/components/dialogs/advanced-custom-editor-dialog.tsx:501
↓ 1 callersFunctionswitchTab
(nextTab: AdvancedCustomEditorTab)
web/src/features/channels/components/dialogs/advanced-custom-editor-dialog.tsx:602
↓ 1 callersFunctionswitchToJsonMode
()
web/src/features/system-settings/general/channel-affinity/index.tsx:155
↓ 1 callersFunctionswitchToVisualMode
()
web/src/features/system-settings/general/channel-affinity/index.tsx:166
↓ 1 callersFunctionsyncCells
()
web/src/features/system-info/__tests__/system-instances-panel.test.tsx:139
↓ 1 callersFunctionsyncClickHouseLogTTL
(ttlDays int)
model/main.go:474
↓ 1 callersFunctionsyncDarkClass
(wrapper: HTMLElement)
web/src/components/html-content.tsx:134
↓ 1 callersFunctionsyncData
(nodes: NodeSyncNode[])
web/src/features/system-info/__tests__/node-sync-indicator.test.tsx:48
↓ 1 callersFunctionsyncFieldsBetweenTargets
(doc *ojson.Doc, context map[string]any, fromSpec string, toSpec string)
relay/common/override.go:1583
↓ 1 callersFunctionsyncLaneRatios
( nextPromptPrice = promptPrice, nextLanePrices = lanePrices, nextLaneEnabled = laneEnabled )
web/src/features/system-settings/models/model-pricing-sheet.tsx:468
↓ 1 callersFunctionsyncLogCleanupStateFromRemaining
(state *LogCleanupState, remaining int64)
service/system_task.go:429
↓ 1 callersFunctionsyncReasoningEffortAfterParamOverride
(info *RelayInfo, before, after []byte)
relay/common/override.go:232
← previousnext →8,401–8,500 of 15,409, ranked by callers