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
shouldReplaceModelsDevCandidate
(current, next modelsDevCandidate)
controller/ratio_sync.go:1025
↓ 1 callers
Function
shouldShowMessageContent
( message: Message, versionContent: string )
web/src/features/playground/lib/message/message-content-utils.ts:57
↓ 1 callers
Function
shouldShowMessageLoader
( message: Message, isAssistant: boolean, versionContent: string )
web/src/features/playground/lib/message/message-content-utils.ts:44
↓ 1 callers
Function
shouldSkipPassthroughHeader
(name string)
relay/channel/api_request.go:142
↓ 1 callers
Method
shouldTrust
shouldTrust 统一信任额度检查,适用于钱包和订阅。
service/billing_session.go:329
↓ 1 callers
Function
shouldUseGeminiStreamURL
(converter string, info *relaycommon.RelayInfo)
relay/channel/advancedcustom/adaptor.go:523
↓ 1 callers
Function
shouldUseSMTPLoginAuth
()
common/email.go:22
↓ 1 callers
Function
shouldUseStreamForAutomaticChannelTest
(channel *model.Channel)
controller/channel-test.go:712
↓ 1 callers
Function
show
()
web/src/features/system-settings/request-policies/__tests__/routing.test.tsx:108
↓ 1 callers
Function
show
()
web/src/features/system-settings/request-policies/__tests__/channel-health-layout.test.tsx:39
↓ 1 callers
Function
shrinkShortSide
shrinkShortSide scales an image down so its shortest side is at most limit, rounding the other side down.
tokenkit/image.go:278
↓ 1 callers
Function
side
(kind: 'removed' | 'added')
web/src/features/task-plugins/components/request-plugin-try-panel.tsx:284
↓ 1 callers
Function
sideDrawerSectionClassName
(className?: string)
web/src/components/drawer-layout.ts:48
↓ 1 callers
Function
sidebarFor
(admin?: object, user?: object, canConfigure = true)
web/src/hooks/__tests__/sidebar-config.test.tsx:69
↓ 1 callers
Function
signVolcV4
(request volcSignRequest, now func() time.Time)
pkg/jsplugin/utils.go:435
↓ 1 callers
Function
signingInput
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 callers
Function
siliconflowRerankHandler
(c *gin.Context, info *relaycommon.RelayInfo, resp *http.Response)
relay/channel/siliconflow/relay-siliconflow.go:16
↓ 1 callers
Function
sizeOptions
(size)
plugins/tasks/xai/plugin.js:278
↓ 1 callers
Method
skipDict
()
relay/requestplugin/pdf.go:757
↓ 1 callers
Method
skipInlineImage
skipInlineImage moves past an inline image: its parameters, ID, the image data and EI.
relay/requestplugin/pdf.go:772
↓ 1 callers
Function
sleep
(ms: number)
web/src/features/channels/components/dialogs/channel-test-dialog.tsx:251
↓ 1 callers
Function
smartDetectMimeType
smartDetectMimeType 智能检测 MIME 类型
service/file_service.go:249
↓ 1 callers
Function
smokeTestExpr
(exprStr string)
setting/billing_setting/tiered_billing.go:208
↓ 1 callers
Function
smtpServerSupportsAuth
(server *smtp.ServerInfo, mechanism string)
common/email_ntlm_auth.go:73
↓ 1 callers
Function
smtpTLSConfig
()
common/email.go:37
↓ 1 callers
Function
snapFloatDrift
(value: number)
web/src/features/system-settings/models/pricing-format.ts:42
↓ 1 callers
Function
snapshot
(at: number, metrics: InferenceMetric[])
web/src/features/channels/lib/__tests__/inference-status.test.ts:30
↓ 1 callers
Function
snapshotFiles
(files)
web/scripts/format-with-protected-headers.mjs:76
↓ 1 callers
Function
sniffPluginIconMediaType
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 callers
Function
sortResetCredits
(credits: CodexResetCredit[])
web/src/features/channels/components/dialogs/codex-usage-dialog.tsx:260
↓ 1 callers
Function
sortedModelCategories
(models: string[])
web/src/features/channels/components/upstream-model-selection.tsx:46
↓ 1 callers
Function
sortedPluginKeys
(plugins map[string]*jsplugin.LoadedPlugin)
router/plugin-router.go:602
↓ 1 callers
Function
sortedPlugins
(plugins map[string]*jsplugin.LoadedPlugin)
router/plugin-router.go:611
↓ 1 callers
Method
sortedTools
()
relaykit/relayconvert/internal/oai_chat/to_oai_responses_stream_resp.go:832
↓ 1 callers
Function
sourceEditor
()
web/src/features/task-plugins/__tests__/upload-dialog.test.tsx:63
↓ 1 callers
Function
sourceGroupPricingSignature
( groupRatio: string, userUsableGroups: string, topupGroupRatio: string )
web/src/features/system-settings/models/group-ratio-visual-editor.tsx:217
↓ 1 callers
Function
sourceWithoutCommentsAndStrings
(source string)
pkg/jsplugin/engine.go:905
↓ 1 callers
Method
spend
(bytes, nodes int)
pkg/jsplugin/json_state.go:87
↓ 1 callers
Function
splitDraft
(value: string)
web/src/components/multi-select.tsx:95
↓ 1 callers
Function
splitFlowLabel
(label: string, maxUnits: number)
web/src/components/ui/markdown.tsx:213
↓ 1 callers
Function
splitLines
(value: string)
web/src/features/system-settings/request-limits/ssrf-section.tsx:96
↓ 1 callers
Function
splitModelNamespace
(modelName string)
setting/reasoning/suffix.go:98
↓ 1 callers
Function
splitTopLevelAnd
(expr: string)
web/src/features/pricing/lib/billing-expr.ts:368
↓ 1 callers
Function
stableStringify
(obj)
web/scripts/sync-i18n.mjs:123
↓ 1 callers
Method
start
start begins the check and the capture of a response.
relay/requestplugin/socket.go:507
↓ 1 callers
Function
startEmailBinding
( email: string, proofToken: string, signal: AbortSignal )
web/src/features/profile/api.ts:141
↓ 1 callers
Function
startLogCleanupTask
(targetTimestamp: number)
web/src/features/system-settings/api.ts:69
↓ 1 callers
Function
startPluginLogin
( channelId: number, keyIndex: number | null, add = false )
web/src/features/channels/api.ts:481
↓ 1 callers
Function
startServer
()
electron/main.js:222
↓ 1 callers
Method
startTargetReader
(target *websocket.Conn)
relay/responses_websocket.go:784
↓ 1 callers
Function
startTelegramBind
()
web/src/features/profile/api.ts:224
↓ 1 callers
Method
stream
()
web/src/features/playground/hooks/use-stream-request.test.ts:54
↓ 1 callers
Function
streamMetaResponseZhipu2OpenAI
(zhipuResponse *ZhipuStreamMetaResponse)
relay/channel/zhipu/relay-zhipu.go:144
↓ 1 callers
Function
streamResponseBaidu2OpenAI
(baiduResponse *BaiduChatStreamResponse)
relay/channel/baidu/relay-baidu.go:78
↓ 1 callers
Function
streamResponseDify2OpenAI
(difyResponse DifyChunkChatCompletionResponse)
relay/channel/dify/relay-dify.go:190
↓ 1 callers
Function
streamResponsePaLM2OpenAI
(palmResponse *PaLMChatResponse)
relay/channel/palm/relay-palm.go:40
↓ 1 callers
Function
streamResponseTencent2OpenAI
(TencentResponse *TencentChatResponse)
relay/channel/tencent/relay-tencent.go:76
↓ 1 callers
Function
streamResponseXAI2OpenAI
(xAIResp *dto.ChatCompletionsStreamResponse, usage *dto.Usage)
relay/channel/xai/text.go:19
↓ 1 callers
Function
streamResponseXunfei2OpenAI
(xunfeiResponse *XunfeiChatResponse)
relay/channel/xunfei/relay-xunfei.go:83
↓ 1 callers
Function
streamResponseZhipu2OpenAI
(zhipuResponse string)
relay/channel/zhipu/relay-zhipu.go:132
↓ 1 callers
Method
streamSource
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 callers
Function
streamTaskPluginProtocol
( c *gin.Context, pinned pluginruntime.PinnedEndpoint, protocolRequest pluginruntime.ProtocolRequestContext
controller/plugin_protocol.go:400
↓ 1 callers
Function
streamedResponse
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 callers
Function
stringArray
(value: unknown)
web/src/features/task-plugins/lib/marketplace.ts:353
↓ 1 callers
Function
strings
(value)
plugins/tasks/content-moderation/plugin.js:169
↓ 1 callers
Function
stripCustomTags
(input: unknown)
web/src/components/ai-elements/response-content.ts:146
↓ 1 callers
Function
stripProtectedHeaders
(files)
web/scripts/format-with-protected-headers.mjs:90
↓ 1 callers
Function
stripRecordNames
stripRecordNames drops the display names, which come from the plugin meta.
controller/responses_websocket_plugin_test.go:181
↓ 1 callers
Function
stripTrailingZeros
(formatted: string)
web/src/features/pricing/lib/price.ts:32
↓ 1 callers
Function
stripUptimePointSuffix
(value: string)
web/src/features/pricing/components/model-details-charts.tsx:88
↓ 1 callers
Function
stubOAuthPopup
()
web/src/features/auth/secure-verification/__tests__/verification-flow.test.tsx:51
↓ 1 callers
Function
stubResponse
(options: { ok: boolean status?: number body?: string contentLength?: string })
web/src/features/task-plugins/__tests__/plugin-url.test.ts:116
↓ 1 callers
Function
stubStatusEndpoint
Count `/api/status` calls at the network boundary and serve `system_name`.
web/src/lib/__tests__/status-query.test.tsx:52
↓ 1 callers
Function
submit
()
web/src/features/task-plugins/components/request-plugin-instance-editor.tsx:257
↓ 1 callers
Function
submitForm
()
web/src/features/redemption-codes/components/__tests__/redemptions-mutate-drawer.test.tsx:171
↓ 1 callers
Function
submitPaymentForm
( url: string, params: Record<string, unknown> )
web/src/features/wallet/lib/payment.ts:62
↓ 1 callers
Function
submitPluginLoginCallback
( plugin: string, params: Record<string, string> )
web/src/features/channels/api.ts:514
↓ 1 callers
Function
submitReplyLimit
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 callers
Function
submitSettings
(ctx, action)
plugins/tasks/vidu/plugin.js:376
↓ 1 callers
Function
subscribeAuthSessionEvents
( listener: (event: AuthSessionSyncEvent) => void )
web/src/lib/auth-session-sync.ts:80
↓ 1 callers
Function
subscriptionPlanCacheCapacity
()
model/subscription.go:70
↓ 1 callers
Function
subscriptionPlanInfoCacheCapacity
()
model/subscription.go:78
↓ 1 callers
Function
sumPluginKeyBalances
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 callers
Function
sumRankingTokens
(totals []model.RankingQuotaTotal)
service/rankings.go:548
↓ 1 callers
Function
superseded
()
web/src/lib/auth-session.ts:214
↓ 1 callers
Function
supportsNewAPIUpstream
( plugin: Pick<TaskPluginOption, 'upstreams'> )
web/src/features/channels/lib/channel-plugin-extensions.ts:73
↓ 1 callers
Function
svgValueReferencesExternal
(value string)
pkg/jsplugin/icon.go:119
↓ 1 callers
Function
swapOptionTables
(db *gorm.DB, tmp, backup string)
model/option_primary_key_migration.go:191
↓ 1 callers
Function
swapRoutes
(fromIndex: number, toIndex: number)
web/src/features/channels/components/dialogs/advanced-custom-editor-dialog.tsx:501
↓ 1 callers
Function
switchTab
(nextTab: AdvancedCustomEditorTab)
web/src/features/channels/components/dialogs/advanced-custom-editor-dialog.tsx:602
↓ 1 callers
Function
switchToJsonMode
()
web/src/features/system-settings/general/channel-affinity/index.tsx:155
↓ 1 callers
Function
switchToVisualMode
()
web/src/features/system-settings/general/channel-affinity/index.tsx:166
↓ 1 callers
Function
syncCells
()
web/src/features/system-info/__tests__/system-instances-panel.test.tsx:139
↓ 1 callers
Function
syncClickHouseLogTTL
(ttlDays int)
model/main.go:474
↓ 1 callers
Function
syncDarkClass
(wrapper: HTMLElement)
web/src/components/html-content.tsx:134
↓ 1 callers
Function
syncData
(nodes: NodeSyncNode[])
web/src/features/system-info/__tests__/node-sync-indicator.test.tsx:48
↓ 1 callers
Function
syncFieldsBetweenTargets
(doc *ojson.Doc, context map[string]any, fromSpec string, toSpec string)
relay/common/override.go:1583
↓ 1 callers
Function
syncLaneRatios
( nextPromptPrice = promptPrice, nextLanePrices = lanePrices, nextLaneEnabled = laneEnabled )
web/src/features/system-settings/models/model-pricing-sheet.tsx:468
↓ 1 callers
Function
syncLogCleanupStateFromRemaining
(state *LogCleanupState, remaining int64)
service/system_task.go:429
↓ 1 callers
Function
syncReasoningEffortAfterParamOverride
(info *RelayInfo, before, after []byte)
relay/common/override.go:232
← previous
next →
8,401–8,500 of 15,409, ranked by callers