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
Function
setStoredPageSize
(size: number)
web/src/hooks/use-table-url-state.ts:41
↓ 1 callers
Function
setTaskPluginEnabledOption
(enabled: boolean)
web/src/features/task-plugins/api.ts:203
↓ 1 callers
Function
setTaskPluginStatus
( key: string, enabled: boolean, options?: { cascade?: boolean; force?: boolean } )
web/src/features/task-plugins/api.ts:166
↓ 1 callers
Function
settingsOf
(payload: { settings?: string | null })
web/src/features/channels/lib/__tests__/task-plugin-channel-settings.test.ts:44
↓ 1 callers
Method
settleStart
(task *model.Task, quota int)
controller/task_plugin_debug.go:201
↓ 1 callers
Function
setup
()
web/src/features/redemption-codes/components/__tests__/bulk-delete.test.tsx:81
↓ 1 callers
Function
setup2FA
( proofToken: string, signal: AbortSignal )
web/src/features/security/api.ts:189
↓ 1 callers
Function
setupChannelSelectAutoGroupsTest
(t *testing.T)
service/channel_select_auto_groups_test.go:21
↓ 1 callers
Function
setupPasskeyNetwork
()
web/src/features/auth/passkey/__tests__/domain-verification.test.tsx:59
↓ 1 callers
Function
sha256Hex
( bytes: Uint8Array<ArrayBuffer> )
web/src/features/task-plugins/lib/plugin-icon-file.ts:71
↓ 1 callers
Function
sha256hex
(s string)
relay/channel/tencent/relay-tencent.go:176
↓ 1 callers
Function
shiftMarks
shiftMarks moves the part marks of text past the masks applied to it, which releaseReply merged and sorted. A mask across a mark stays with the part w
relay/requestplugin/reply.go:541
↓ 1 callers
Function
shouldAppendClaudeBetaQuery
(info *relaycommon.RelayInfo)
relay/channel/claude/adaptor.go:92
↓ 1 callers
Function
shouldApplyClaudeHeaders
(converter string, info *relaycommon.RelayInfo)
relay/channel/advancedcustom/adaptor.go:552
↓ 1 callers
Function
shouldAuditOperation
(mode, path, from, to string)
relay/common/override.go:432
↓ 1 callers
Function
shouldAuthenticateSMTP
()
common/email.go:33
↓ 1 callers
Function
shouldChargeViolationFee
(err *types.NewAPIError)
service/violation_fee.go:73
↓ 1 callers
Function
shouldClearModelForGroup
( models: ModelOption[], currentModel: string )
web/src/features/playground/lib/options/playground-option-utils.ts:34
↓ 1 callers
Function
shouldCloseActiveWebSocketsAfterDisable
(channelId int)
service/channel.go:20
↓ 1 callers
Function
shouldEnableParamOverrideAudit
(paramOverride map[string]any)
relay/common/override.go:364
↓ 1 callers
Function
shouldRenderColumnResizer
( table: TanstackTable<TData>, header: Header<TData, unknown> )
web/src/components/data-table/core/data-table-header.tsx:240
↓ 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:534
↓ 1 callers
Function
shouldUseSMTPLoginAuth
()
common/email.go:22
↓ 1 callers
Function
shouldUseStreamForAutomaticChannelTest
(channel *model.Channel)
controller/channel-test.go:713
↓ 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)
pluginkit/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
pluginkit/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)
pluginkit/engine.go:903
↓ 1 callers
Method
spend
(bytes, nodes int)
pluginkit/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:497
↓ 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 ojson.Result)
relaykit/relayconvert/internal/shared/claude/schema.go:181
↓ 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:295
↓ 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:530
↓ 1 callers
Function
submitReplyLimit
submitReplyLimit allows inline Base64 images in the submit reply and its SSE events on routes that discard immediate results.
relay/channel/task/jsplugin/adaptor.go:491
← previous
next →
8,501–8,600 of 15,592, ranked by callers