MCPcopy Create free account

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

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

↓ 1 callersFunctionvalidateJSON
(value: string)
web/src/features/models/lib/model-form.ts:139
↓ 1 callersFunctionvalidateModelMappingJson
(modelMapping: string)
web/src/features/channels/lib/model-mapping-validation.ts:166
↓ 1 callersFunctionvalidateMultipartTaskRequest
(c *gin.Context, info *RelayInfo, action string)
relay/common/relay_utils.go:159
↓ 1 callersFunctionvalidateOperations
( operations: ParamOverrideOperation[], t: (key: string, options?: Record<string, unknown>) => string )
web/src/features/channels/components/dialogs/param-override-editor-dialog.tsx:931
↓ 1 callersMethodvalidatePlugin
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 callersFunctionvalidateProviderHooks
(meta Meta, engine *Engine)
pluginkit/meta.go:785
↓ 1 callersFunctionvalidateRelayRoutes
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 callersFunctionvalidateRoute
(route *Route)
pluginkit/routing.go:455
↓ 1 callersFunctionvalidateRouteAuth
( auth: AdvancedCustomRouteAuth | undefined )
web/src/features/channels/lib/advanced-custom.ts:983
↓ 1 callersFunctionvalidateSecondsForReqKey
(reqKey, seconds)
plugins/tasks/jimeng/plugin.js:282
↓ 1 callersFunctionvalidateStreamTestResponseBody
(respBody []byte)
controller/channel-test.go:681
↓ 1 callersFunctionvalidateTaskArtifactStoreCredential
(name, value string, maxLength int, required bool)
setting/system_setting/task_artifact_store.go:149
↓ 1 callersFunctionvalidateTaskPluginFields
(fields url.Values)
middleware/task_plugin.go:1273
↓ 1 callersFunctionvalidateTestResponseBody
(respBody []byte, isStream bool)
controller/channel-test.go:703
↓ 1 callersFunctionvalidateTokenKeyUniqueConstraints
(constraints []tokenKeyUniqueConstraint)
model/token_migration.go:54
↓ 1 callersFunctionvalidateUptimeKumaGroups
(groupsStr string)
setting/console_setting/validation.go:263
↓ 1 callersFunctionvalidateUsageExampleValue
(value any, field UsageFieldSchema)
pluginkit/meta.go:1805
↓ 1 callersFunctionvalidateUsageExamples
(schema map[string]UsageFieldSchema, examples []UsageExample)
pluginkit/meta.go:1762
↓ 1 callersFunctionvalidateUsageSchema
(schema map[string]UsageFieldSchema)
pluginkit/meta.go:1544
↓ 1 callersMethodvalidatedCompletionUsageFacts
(facts any, models ...string)
relay/channel/task/jsplugin/adaptor.go:1731
↓ 1 callersMethodvalue
()
model/channel_priority.go:25
↓ 1 callersFunctionvalueInSlice
(current any, expected any)
oauth/generic.go:600
↓ 1 callersFunctionvaluesEqual
(a, b any)
controller/ratio_sync.go:55
↓ 1 callersFunctionverificationOAuthProviders
(user *model.User)
service/security_verification.go:431
↓ 1 callersFunctionverifyAPITokenAudit
(t *testing.T)
controller/token_test.go:765
↓ 1 callersFunctionverifyCalls
()
web/src/features/security/components/__tests__/access-tokens-card.test.tsx:115
↓ 1 callersFunctionverifyCreemSignature
验证Creem webhook签名
controller/topup_creem.go:37
↓ 1 callersFunctionverifyOAuth
( provider: string, operation: VerificationOperation, signal: AbortSignal )
web/src/features/auth/secure-verification/api.ts:305
↓ 1 callersFunctionverifyPasskey
( operation: VerificationOperation, signal: AbortSignal, rpID?: string, onDomains?: (domains: PasskeyD
web/src/features/auth/secure-verification/api.ts:277
↓ 1 callersFunctionverifyPassword
(user: ReturnType<typeof userEvent.setup>)
web/src/features/security/components/__tests__/access-token-create-dialog.test.tsx:93
↓ 1 callersFunctionverifyPassword
(user: ReturnType<typeof userEvent.setup>)
web/src/features/security/components/__tests__/access-tokens-card.test.tsx:107
↓ 1 callersFunctionversion
(ctx)
plugins/tasks/google/plugin.js:188
↓ 1 callersFunctionversion
(number: string, active: boolean)
web/src/features/task-plugins/__tests__/plugin-detail-sheet.test.tsx:582
↓ 1 callersFunctionvertexAPIKeyForm
( overrides: Partial<ChannelFormValues> = {} )
web/src/features/channels/lib/__tests__/vertex-channel.test.ts:32
↓ 1 callersFunctionviaNewAPI
(ctx)
plugins/tasks/alibaba/plugin.js:381
↓ 1 callersFunctionvideoInputRatio
(model, resolution, content)
plugins/tasks/doubao/plugin.js:466
↓ 1 callersFunctionvideoService
(kind)
plugins/tasks/alibaba/plugin.js:425
↓ 1 callersFunctionvideoTrack
(url)
plugins/tasks/xai/plugin.js:612
↓ 1 callersFunctionview
(next: RequestPluginInstance | null)
web/src/features/task-plugins/__tests__/request-plugin-try-panel.test.tsx:117
↓ 1 callersFunctionview
(entry: Partial<ModelRatioData>)
web/src/features/model-pricing/__tests__/editor-currency.test.tsx:107
↓ 1 callersFunctionvisibleFlowUsers
( users: FlowUserFilterOption[], selectedUsers: string[] )
web/src/features/dashboard/lib/flow-selection.ts:60
↓ 1 callersFunctionvisualConditionExpression
( node: VisualCondition, source: string )
web/src/features/pricing/lib/billing-expression/visual.ts:362
↓ 1 callersMethodvolcSignV4
(request: {method: string; url: string; headers?: Record<string, string>; body?: string; accessKey: string; se
pluginkit/v1.d.ts:25
↓ 1 callersFunctionwaitForLoadedForm
()
web/src/features/redemption-codes/components/__tests__/redemptions-mutate-drawer.test.tsx:179
↓ 1 callersFunctionwaitForTaskPluginProtocolTick
( c *gin.Context, observationContext context.Context, heartbeatTicker *time.Ticker, delay time.Duration, )
controller/plugin_protocol.go:636
↓ 1 callersMethodwaitIdle
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 callersFunctionwaitTaskPluginImageTask
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 callersFunctionwaitTaskPluginProtocol
( c *gin.Context, pinned pluginruntime.PinnedEndpoint, protocolRequest pluginruntime.ProtocolRequestContext
controller/plugin_protocol.go:660
↓ 1 callersMethodwalkAttachments
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 callersFunctionwalkMedia
(value gjson.Result, pointer, key string, view *bytes.Buffer, media *[]inlineMedia)
relay/requestplugin/media.go:101
↓ 1 callersFunctionwanVideoUsageProfiles
()
plugins/tasks/alibaba/plugin.js:199
↓ 1 callersFunctionwarnHTTPTransportPolicyOnce
(field, value string)
service/http_transport_policy.go:77
↓ 1 callersFunctionwarnParseTaskResultInProgressFallback
(source string, stderr io.Writer)
pkg/jsplugin/cli.go:62
↓ 1 callersFunctionwebpFrameSize
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 callersMethodwholeComplete
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 callersFunctionwindowLabel
(windowData?: CodexRateLimitWindow | null)
web/src/features/channels/components/dialogs/codex-usage-dialog.tsx:390
↓ 1 callersFunctionwithBalanceTimeout
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 callersFunctionwithOptionPrimaryKeyLock
(db *gorm.DB, fn func(*gorm.DB) error)
model/option_primary_key_migration.go:82
↓ 1 callersFunctionwithSuffix
(value: string)
web/src/features/channels/components/channels-columns.tsx:374
↓ 1 callersMethodwork
()
relay/requestplugin/report.go:493
↓ 1 callersFunctionwrapForVendor
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 callersFunctionwrapper
(queryClient: QueryClient)
web/src/lib/__tests__/status-query.test.tsx:68
↓ 1 callersFunctionwriteAfterNextChannelRead
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 callersFunctionwriteCachedStatus
Persist the latest status so the next cold start can render before fetching.
web/src/lib/status-query.ts:118
↓ 1 callersFunctionwriteData
(w stringWriter, data any)
common/custom-event.go:64
↓ 1 callersFunctionwriteOpenaiImageStreamChunk
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 callersFunctionwriteOpenaiImageStreamDone
(c *gin.Context)
relay/channel/openai/relay_image.go:356
↓ 1 callersFunctionwritePlaceholder
(view *bytes.Buffer, media *[]inlineMedia, item inlineMedia)
relay/requestplugin/media.go:173
↓ 1 callersFunctionwriteSMTPLine
(rw *bufio.ReadWriter, line string)
common/email_test.go:207
↓ 1 callersFunctionwriteSessionHintCookie
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 callersMethodwriteString
(string)
common/custom-event.go:16
↓ 1 callersFunctionwriteSyncTargetValue
(doc *ojson.Doc, context map[string]any, target syncTarget, value any)
relay/common/override.go:1595
↓ 1 callersMethodwriteTarget
(kind int, message []byte)
relay/responses_websocket.go:858
↓ 1 callersFunctionwriteTaskArtifactAccessLimited
(c *gin.Context)
middleware/task_artifact_access.go:235
↓ 1 callersFunctionwriteTaskArtifactAccessNotFound
(c *gin.Context)
middleware/task_artifact_access.go:224
↓ 1 callersFunctionwriteTaskMediaContentPath
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 callersFunctionwriteTaskPluginProtocolFailure
( c *gin.Context, machine *relay.PluginResponsesMachine, taskStatus string, )
controller/plugin_protocol.go:1103
↓ 1 callersFunctionwriteTaskPluginProtocolTimeout
( c *gin.Context, machine *relay.PluginResponsesMachine, taskStatus string, )
controller/plugin_protocol.go:1116
↓ 1 callersFunctionwriteTaskPluginProtocolTimeoutResponse
( c *gin.Context, machine *relay.PluginResponsesMachine, lastStatus string, )
controller/plugin_protocol.go:1153
↓ 1 callersFunctionwriteTaskPluginResponseNotFound
(c *gin.Context, responseID, reason string)
controller/plugin_protocol.go:1091
↓ 1 callersFunctionwriteVisualPricing
( node: VisualPricingNode, source: string, issues: VisualBillingIssue[] )
web/src/features/pricing/lib/billing-expression/visual.ts:371
↓ 1 callersMethodwriters
()
relay/channel/volcengine/protocols.go:356
↓ 1 callersFunctionxAIHandler
(c *gin.Context, info *relaycommon.RelayInfo, resp *http.Response)
relay/channel/xai/text.go:82
↓ 1 callersFunctionxAIStreamHandler
(c *gin.Context, info *relaycommon.RelayInfo, resp *http.Response)
relay/channel/xai/text.go:38
↓ 1 callersFunctionxunfeiHandler
(c *gin.Context, textRequest dto.GeneralOpenAIRequest, appId string, apiSecret string, apiKey string)
relay/channel/xunfei/relay-xunfei.go:161
↓ 1 callersFunctionxunfeiStreamHandler
(c *gin.Context, textRequest dto.GeneralOpenAIRequest, appId string, apiSecret string, apiKey string)
relay/channel/xunfei/relay-xunfei.go:131
↓ 1 callersMethodyieldSlot
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 callersFunctionzhipu4vImageHandler
(c *gin.Context, resp *http.Response, info *relaycommon.RelayInfo)
relay/channel/zhipu_4v/image.go:57
↓ 1 callersFunctionzhipuHandler
(c *gin.Context, info *relaycommon.RelayInfo, resp *http.Response)
relay/channel/zhipu/relay-zhipu.go:225
↓ 1 callersFunctionzhipuStreamHandler
(c *gin.Context, info *relaycommon.RelayInfo, resp *http.Response)
relay/channel/zhipu/relay-zhipu.go:158
FunctionAbout
()
web/src/features/about/index.tsx:116
FunctionAccent
(props: { children: ReactNode; accent: AccentTone })
web/src/features/home/components/hero-terminal-demo.tsx:543
FunctionAccessTokenCreateDialog
(props: AccessTokenCreateDialogProps)
web/src/features/security/components/dialogs/access-token-create-dialog.tsx:60
FunctionAccessTokenDialog
(props: { token: string onClose: () => void })
web/src/features/security/components/dialogs/access-token-dialog.tsx:27
FunctionAccessTokenEditDialog
(props: AccessTokenEditDialogProps)
web/src/features/security/components/dialogs/access-token-edit-dialog.tsx:61
FunctionAccessTokenItem
(props: AccessTokenItemProps)
web/src/features/security/components/access-token-item.tsx:48
FunctionAccessTokensCard
()
web/src/features/security/components/access-tokens-card.tsx:57
FunctionAccordion
({ className, ...props }: AccordionPrimitive.Root.Props)
web/src/components/ui/accordion.tsx:25
FunctionAccordionContent
({ className, children, ...props }: AccordionPrimitive.Panel.Props)
web/src/components/ui/accordion.tsx:78
FunctionAccordionItem
({ className, ...props }: AccordionPrimitive.Item.Props)
web/src/components/ui/accordion.tsx:35
← previousnext →8,901–9,000 of 15,592, ranked by callers