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
validateJSON
(value: string)
web/src/features/models/lib/model-form.ts:139
↓ 1 callers
Function
validateModelMappingJson
(modelMapping: string)
web/src/features/channels/lib/model-mapping-validation.ts:166
↓ 1 callers
Function
validateMultipartTaskRequest
(c *gin.Context, info *RelayInfo, action string)
relay/common/relay_utils.go:159
↓ 1 callers
Function
validateOperations
( operations: ParamOverrideOperation[], t: (key: string, options?: Record<string, unknown>) => string )
web/src/features/channels/components/dialogs/param-override-editor-dialog.tsx:931
↓ 1 callers
Method
validatePlugin
validatePlugin returns the declared top-level routes the gateway does not register for plugin; their /{key} copies still serve them. A key that names
router/plugin-router.go:265
↓ 1 callers
Function
validateProviderHooks
(meta Meta, engine *Engine)
pluginkit/meta.go:785
↓ 1 callers
Function
validateRelayRoutes
validateRelayRoutes applies the Advanced Custom route rules to meta.relay. A plugin-converter route is checked as a native route of its client endpoin
pluginkit/meta.go:1499
↓ 1 callers
Function
validateRoute
(route *Route)
pluginkit/routing.go:455
↓ 1 callers
Function
validateRouteAuth
( auth: AdvancedCustomRouteAuth | undefined )
web/src/features/channels/lib/advanced-custom.ts:983
↓ 1 callers
Function
validateSecondsForReqKey
(reqKey, seconds)
plugins/tasks/jimeng/plugin.js:282
↓ 1 callers
Function
validateStreamTestResponseBody
(respBody []byte)
controller/channel-test.go:681
↓ 1 callers
Function
validateTaskArtifactStoreCredential
(name, value string, maxLength int, required bool)
setting/system_setting/task_artifact_store.go:149
↓ 1 callers
Function
validateTaskPluginFields
(fields url.Values)
middleware/task_plugin.go:1273
↓ 1 callers
Function
validateTestResponseBody
(respBody []byte, isStream bool)
controller/channel-test.go:703
↓ 1 callers
Function
validateTokenKeyUniqueConstraints
(constraints []tokenKeyUniqueConstraint)
model/token_migration.go:54
↓ 1 callers
Function
validateUptimeKumaGroups
(groupsStr string)
setting/console_setting/validation.go:263
↓ 1 callers
Function
validateUsageExampleValue
(value any, field UsageFieldSchema)
pluginkit/meta.go:1805
↓ 1 callers
Function
validateUsageExamples
(schema map[string]UsageFieldSchema, examples []UsageExample)
pluginkit/meta.go:1762
↓ 1 callers
Function
validateUsageSchema
(schema map[string]UsageFieldSchema)
pluginkit/meta.go:1544
↓ 1 callers
Method
validatedCompletionUsageFacts
(facts any, models ...string)
relay/channel/task/jsplugin/adaptor.go:1731
↓ 1 callers
Method
value
()
model/channel_priority.go:25
↓ 1 callers
Function
valueInSlice
(current any, expected any)
oauth/generic.go:600
↓ 1 callers
Function
valuesEqual
(a, b any)
controller/ratio_sync.go:55
↓ 1 callers
Function
verificationOAuthProviders
(user *model.User)
service/security_verification.go:431
↓ 1 callers
Function
verifyAPITokenAudit
(t *testing.T)
controller/token_test.go:765
↓ 1 callers
Function
verifyCalls
()
web/src/features/security/components/__tests__/access-tokens-card.test.tsx:115
↓ 1 callers
Function
verifyCreemSignature
验证Creem webhook签名
controller/topup_creem.go:37
↓ 1 callers
Function
verifyOAuth
( provider: string, operation: VerificationOperation, signal: AbortSignal )
web/src/features/auth/secure-verification/api.ts:305
↓ 1 callers
Function
verifyPasskey
( operation: VerificationOperation, signal: AbortSignal, rpID?: string, onDomains?: (domains: PasskeyD
web/src/features/auth/secure-verification/api.ts:277
↓ 1 callers
Function
verifyPassword
(user: ReturnType<typeof userEvent.setup>)
web/src/features/security/components/__tests__/access-token-create-dialog.test.tsx:93
↓ 1 callers
Function
verifyPassword
(user: ReturnType<typeof userEvent.setup>)
web/src/features/security/components/__tests__/access-tokens-card.test.tsx:107
↓ 1 callers
Function
version
(ctx)
plugins/tasks/google/plugin.js:188
↓ 1 callers
Function
version
(number: string, active: boolean)
web/src/features/task-plugins/__tests__/plugin-detail-sheet.test.tsx:582
↓ 1 callers
Function
vertexAPIKeyForm
( overrides: Partial<ChannelFormValues> = {} )
web/src/features/channels/lib/__tests__/vertex-channel.test.ts:32
↓ 1 callers
Function
viaNewAPI
(ctx)
plugins/tasks/alibaba/plugin.js:381
↓ 1 callers
Function
videoInputRatio
(model, resolution, content)
plugins/tasks/doubao/plugin.js:466
↓ 1 callers
Function
videoService
(kind)
plugins/tasks/alibaba/plugin.js:425
↓ 1 callers
Function
videoTrack
(url)
plugins/tasks/xai/plugin.js:612
↓ 1 callers
Function
view
(next: RequestPluginInstance | null)
web/src/features/task-plugins/__tests__/request-plugin-try-panel.test.tsx:117
↓ 1 callers
Function
view
(entry: Partial<ModelRatioData>)
web/src/features/model-pricing/__tests__/editor-currency.test.tsx:107
↓ 1 callers
Function
visibleFlowUsers
( users: FlowUserFilterOption[], selectedUsers: string[] )
web/src/features/dashboard/lib/flow-selection.ts:60
↓ 1 callers
Function
visualConditionExpression
( node: VisualCondition, source: string )
web/src/features/pricing/lib/billing-expression/visual.ts:362
↓ 1 callers
Method
volcSignV4
(request: {method: string; url: string; headers?: Record<string, string>; body?: string; accessKey: string; se
pluginkit/v1.d.ts:25
↓ 1 callers
Function
waitForLoadedForm
()
web/src/features/redemption-codes/components/__tests__/redemptions-mutate-drawer.test.tsx:179
↓ 1 callers
Function
waitForTaskPluginProtocolTick
( c *gin.Context, observationContext context.Context, heartbeatTicker *time.Ticker, delay time.Duration, )
controller/plugin_protocol.go:636
↓ 1 callers
Method
waitIdle
waitIdle waits for the gateway's handlers and the background work they started, such as a refund, to finish: a client may read a whole reply before it
router/provider_plugin_relay_test.go:121
↓ 1 callers
Function
waitTaskPluginImageTask
waitTaskPluginImageTask polls an asynchronous image task inside the client request through the ordinary task polling path, so completion settles billi
controller/plugin_protocol_image.go:189
↓ 1 callers
Function
waitTaskPluginProtocol
( c *gin.Context, pinned pluginruntime.PinnedEndpoint, protocolRequest pluginruntime.ProtocolRequestContext
controller/plugin_protocol.go:660
↓ 1 callers
Method
walkAttachments
walkAttachments adds the attachments in value, at pointer: the "[media:N]" strings of the view and the shapes that name a file by id or URL. key is th
relay/requestplugin/attachments.go:402
↓ 1 callers
Function
walkMedia
(value gjson.Result, pointer, key string, view *bytes.Buffer, media *[]inlineMedia)
relay/requestplugin/media.go:101
↓ 1 callers
Function
wanVideoUsageProfiles
()
plugins/tasks/alibaba/plugin.js:199
↓ 1 callers
Function
warnHTTPTransportPolicyOnce
(field, value string)
service/http_transport_policy.go:77
↓ 1 callers
Function
warnParseTaskResultInProgressFallback
(source string, stderr io.Writer)
pkg/jsplugin/cli.go:62
↓ 1 callers
Function
webpFrameSize
webpFrameSize reads the size of a WebP image's frame from the header of its first VP8 or VP8L chunk.
relay/requestplugin/media.go:335
↓ 1 callers
Method
wholeComplete
wholeComplete reports a non-stream answer whose bytes all arrived: its Content-Length, or else a whole JSON value.
relay/requestplugin/reply.go:928
↓ 1 callers
Function
windowLabel
(windowData?: CodexRateLimitWindow | null)
web/src/features/channels/components/dialogs/codex-usage-dialog.tsx:390
↓ 1 callers
Function
withBalanceTimeout
withBalanceTimeout waits for a built-in balance query at most balanceQueryTimeout. A built-in query takes no context; one that ends later still writes
controller/channel_balance.go:230
↓ 1 callers
Function
withOptionPrimaryKeyLock
(db *gorm.DB, fn func(*gorm.DB) error)
model/option_primary_key_migration.go:82
↓ 1 callers
Function
withSuffix
(value: string)
web/src/features/channels/components/channels-columns.tsx:374
↓ 1 callers
Method
work
()
relay/requestplugin/report.go:493
↓ 1 callers
Function
wrapForVendor
wrapForVendor is the vendor's answer for wrappingConverters: the standard reply wrapped, or its stream with every event's data wrapped.
router/provider_plugin_relay_test.go:1524
↓ 1 callers
Function
wrapper
(queryClient: QueryClient)
web/src/lib/__tests__/status-query.test.tsx:68
↓ 1 callers
Function
writeAfterNextChannelRead
writeAfterNextChannelRead stands for another node: right after the next read of the channel, before the writer under test writes, it stores the column
model/channel_status_test.go:170
↓ 1 callers
Function
writeCachedStatus
Persist the latest status so the next cold start can render before fetching.
web/src/lib/status-query.ts:118
↓ 1 callers
Function
writeData
(w stringWriter, data any)
common/custom-event.go:64
↓ 1 callers
Function
writeOpenaiImageStreamChunk
writeOpenaiImageStreamChunk rebuilds the SSE frame for an image stream chunk: it emits an "event:" line derived from the JSON "type" field (when prese
relay/channel/openai/relay_image.go:198
↓ 1 callers
Function
writeOpenaiImageStreamDone
(c *gin.Context)
relay/channel/openai/relay_image.go:356
↓ 1 callers
Function
writePlaceholder
(view *bytes.Buffer, media *[]inlineMedia, item inlineMedia)
relay/requestplugin/media.go:173
↓ 1 callers
Function
writeSMTPLine
(rw *bufio.ReadWriter, line string)
common/email_test.go:207
↓ 1 callers
Function
writeSessionHintCookie
writeSessionHintCookie mirrors the Refresh Cookie's lifetime with a script-readable marker. The Refresh Cookie itself is HttpOnly and scoped to api/us
service/auth_session.go:377
↓ 1 callers
Method
writeString
(string)
common/custom-event.go:16
↓ 1 callers
Function
writeSyncTargetValue
(doc *ojson.Doc, context map[string]any, target syncTarget, value any)
relay/common/override.go:1595
↓ 1 callers
Method
writeTarget
(kind int, message []byte)
relay/responses_websocket.go:858
↓ 1 callers
Function
writeTaskArtifactAccessLimited
(c *gin.Context)
middleware/task_artifact_access.go:235
↓ 1 callers
Function
writeTaskArtifactAccessNotFound
(c *gin.Context)
middleware/task_artifact_access.go:224
↓ 1 callers
Function
writeTaskMediaContentPath
writeTaskMediaContentPath answers with an artifact the upstream delivers inside a long-running operation: the base64 string at the descriptor's Conten
controller/video_proxy.go:358
↓ 1 callers
Function
writeTaskPluginProtocolFailure
( c *gin.Context, machine *relay.PluginResponsesMachine, taskStatus string, )
controller/plugin_protocol.go:1103
↓ 1 callers
Function
writeTaskPluginProtocolTimeout
( c *gin.Context, machine *relay.PluginResponsesMachine, taskStatus string, )
controller/plugin_protocol.go:1116
↓ 1 callers
Function
writeTaskPluginProtocolTimeoutResponse
( c *gin.Context, machine *relay.PluginResponsesMachine, lastStatus string, )
controller/plugin_protocol.go:1153
↓ 1 callers
Function
writeTaskPluginResponseNotFound
(c *gin.Context, responseID, reason string)
controller/plugin_protocol.go:1091
↓ 1 callers
Function
writeVisualPricing
( node: VisualPricingNode, source: string, issues: VisualBillingIssue[] )
web/src/features/pricing/lib/billing-expression/visual.ts:371
↓ 1 callers
Method
writers
()
relay/channel/volcengine/protocols.go:356
↓ 1 callers
Function
xAIHandler
(c *gin.Context, info *relaycommon.RelayInfo, resp *http.Response)
relay/channel/xai/text.go:82
↓ 1 callers
Function
xAIStreamHandler
(c *gin.Context, info *relaycommon.RelayInfo, resp *http.Response)
relay/channel/xai/text.go:38
↓ 1 callers
Function
xunfeiHandler
(c *gin.Context, textRequest dto.GeneralOpenAIRequest, appId string, apiSecret string, apiKey string)
relay/channel/xunfei/relay-xunfei.go:161
↓ 1 callers
Function
xunfeiStreamHandler
(c *gin.Context, textRequest dto.GeneralOpenAIRequest, appId string, apiSecret string, apiKey string)
relay/channel/xunfei/relay-xunfei.go:131
↓ 1 callers
Method
yieldSlot
yieldSlot lends the call's execution slot to other calls while it waits on the network. Parked runtimes are bounded by the engine's parked tokens; wit
pluginkit/fetch.go:320
↓ 1 callers
Function
zhipu4vImageHandler
(c *gin.Context, resp *http.Response, info *relaycommon.RelayInfo)
relay/channel/zhipu_4v/image.go:57
↓ 1 callers
Function
zhipuHandler
(c *gin.Context, info *relaycommon.RelayInfo, resp *http.Response)
relay/channel/zhipu/relay-zhipu.go:225
↓ 1 callers
Function
zhipuStreamHandler
(c *gin.Context, info *relaycommon.RelayInfo, resp *http.Response)
relay/channel/zhipu/relay-zhipu.go:158
Function
About
()
web/src/features/about/index.tsx:116
Function
Accent
(props: { children: ReactNode; accent: AccentTone })
web/src/features/home/components/hero-terminal-demo.tsx:543
Function
AccessTokenCreateDialog
(props: AccessTokenCreateDialogProps)
web/src/features/security/components/dialogs/access-token-create-dialog.tsx:60
Function
AccessTokenDialog
(props: { token: string onClose: () => void })
web/src/features/security/components/dialogs/access-token-dialog.tsx:27
Function
AccessTokenEditDialog
(props: AccessTokenEditDialogProps)
web/src/features/security/components/dialogs/access-token-edit-dialog.tsx:61
Function
AccessTokenItem
(props: AccessTokenItemProps)
web/src/features/security/components/access-token-item.tsx:48
Function
AccessTokensCard
()
web/src/features/security/components/access-tokens-card.tsx:57
Function
Accordion
({ className, ...props }: AccordionPrimitive.Root.Props)
web/src/components/ui/accordion.tsx:25
Function
AccordionContent
({ className, children, ...props }: AccordionPrimitive.Panel.Props)
web/src/components/ui/accordion.tsx:78
Function
AccordionItem
({ className, ...props }: AccordionPrimitive.Item.Props)
web/src/components/ui/accordion.tsx:35
← previous
next →
8,901–9,000 of 15,592, ranked by callers