MCPcopy Create free account

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

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

↓ 1 callersMethodvalidatedCompletionUsageFacts
(facts any, models ...string)
relay/channel/task/jsplugin/adaptor.go:2015
↓ 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:444
↓ 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
docs/plugin-api/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:182
↓ 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:87
↓ 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:285
↓ 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:924
↓ 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:70
↓ 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:159
↓ 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:1571
↓ 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:343
↓ 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
pkg/jsplugin/fetch.go:297
↓ 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
FunctionAccordionTrigger
({ className, children, ...props }: AccordionPrimitive.Trigger.Props)
web/src/components/ui/accordion.tsx:45
FunctionAccountActionCard
(props: AccountActionCardProps)
web/src/features/security/components/account-action-card.tsx:37
FunctionAccountBindings
({ profile, onUpdate }: AccountBindingsProps)
web/src/features/security/components/account-bindings.tsx:81
FunctionAcquireAccessToken
(creds Credentials, proxy string)
relay/channel/vertex/service_account.go:138
FunctionAction
({ tooltip, children, label, className, variant = 'ghost', size = 'sm', ...props }: ActionProps)
web/src/components/ai-elements/actions.tsx:45
FunctionActions
({ className, children, ...props }: ActionsProps)
web/src/components/ai-elements/actions.tsx:34
FunctionActivityTimeCell
(props: { createdAt: number lastAt: number lastLabel: string lastClassName?: string now?: number f
web/src/components/activity-time-cell.tsx:90
FunctionAddRedemption
(c *gin.Context)
controller/redemption.go:63
MethodAddTool
AddTool 添加工具到请求中
relaykit/dto/claude.go:435
MethodAdjustBillingOnComplete
(task *model.Task, _ *relaycommon.TaskInfo)
controller/plugin_protocol_test.go:384
MethodAdjustBillingOnComplete
(_ *model.Task, _ *relaycommon.TaskInfo)
service/task_polling_test.go:123
MethodAdjustBillingOnComplete
(*model.Task, *relaycommon.TaskInfo)
service/task_polling_test.go:860
MethodAdjustBillingOnComplete
(_ *model.Task, _ *relaycommon.TaskInfo)
service/task_billing_test.go:1418
MethodAdjustBillingOnComplete
AdjustBillingOnComplete returns 0 (keep pre-charged amount).
relay/channel/task/taskcommon/helpers.go:95
MethodAdjustBillingOnComplete
(task *model.Task, result *relaycommon.TaskInfo)
relay/channel/task/jsplugin/adaptor.go:319
MethodAdjustBillingOnSubmit
AdjustBillingOnSubmit returns nil (no submit-time adjustment).
relay/channel/task/taskcommon/helpers.go:90
MethodAdjustBillingOnSubmit
(info *relaycommon.RelayInfo, taskData []byte)
relay/channel/task/jsplugin/adaptor.go:303
FunctionAdmin2FAStats
Admin2FAStats 管理员获取2FA统计信息
controller/twofa.go:161
FunctionAdminBindSubscription
(c *gin.Context)
controller/subscription.go:355
← previousnext →8,801–8,900 of 15,409, ranked by callers