MCPcopy Create free account

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

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

↓ 2 callersFunctioncompileConfigPlugin
(schema string)
pkg/jsplugin/registry_test.go:1318
↓ 2 callersMethodcomplete
(task *model.Task, quota int)
controller/task_plugin_debug.go:215
↓ 2 callersFunctioncompleteAssistantMessage
(message: Message)
web/src/features/playground/lib/message/message-streaming-utils.ts:151
↓ 2 callersFunctioncompleteReasoningTiming
( message: Message, completedAt: number = Date.now() )
web/src/features/playground/lib/message/message-timing-utils.ts:53
↓ 2 callersFunctioncompleteVerifiedLoginResponse
(c *gin.Context, bundle *service.AuthBundle, method string, migration *service.LegacyGitHubMigration)
controller/login_verification.go:149
↓ 2 callersFunctioncomputeBuildRevision
()
web/src/lib/build-metadata.ts:76
↓ 2 callersFunctionconfigAddressPath
configAddressPath splits an upstream_path of the form {config.<name>}<rest>.
pkg/jsplugin/registry.go:216
↓ 2 callersFunctionconfigObject
(config json.RawMessage)
pkg/jsplugin/config_schema.go:308
↓ 2 callersFunctionconfigToMap
辅助函数:将配置对象转换为map
setting/config/config.go:93
↓ 2 callersFunctionconnectionOtherSettings
connectionOtherSettings is the channel's other settings as its requests use them: a task plugin channel runs on the relay routes of the plugin pinned
relay/responses_websocket.go:725
↓ 2 callersFunctionconsumeOAuthLoginRedirect
(state: string)
web/src/features/auth/lib/oauth-callback-mode.ts:34
↓ 2 callersFunctioncontainsPricingMarker
(node ast.Node)
pkg/billingexpr/fixed.go:22
↓ 2 callersFunctioncontentStart
contentStart is the offset of a part's content in its segment: past the rest of the delimiter line, the headers and the blank line after them.
relay/requestplugin/form.go:276
↓ 2 callersFunctionconvert
(ctx)
plugins/tasks/alibaba/plugin.js:853
↓ 2 callersFunctionconvertCrossProtocolResponsesRequest
convertCrossProtocolResponsesRequest converts a Claude or Gemini client request for an OpenAI Responses upstream.
relay/channel/advancedcustom/adaptor.go:592
↓ 2 callersMethodconvertNext
convertNext converts the next upstream event, or the end of the stream, and queues the output the plugin returns.
relay/channel/providerplugin/stream.go:232
↓ 2 callersMethodconvertOpenAICompatibleRequest
(c *gin.Context, info *relaycommon.RelayInfo, request *dto.GeneralOpenAIRequest)
relay/channel/advancedcustom/adaptor.go:604
↓ 2 callersFunctionconvertResponsesResponseForClient
(c *gin.Context, info *relaycommon.RelayInfo, response *dto.OpenAIResponsesResponse)
relay/channel/openai/chat_via_responses.go:150
↓ 2 callersFunctionconvertRowsToJson
(updatedRows: MappingRow[])
web/src/features/channels/components/model-mapping-editor.tsx:267
↓ 2 callersFunctionconvertedBody
convertedBody reads the body member of a convert result: a string is the body text, any other value is sent as the JSON text JSON.stringify writes.
pkg/jsplugin/provider.go:1416
↓ 2 callersFunctioncopyChannel
( id: number, params: CopyChannelParams = {} )
web/src/features/channels/api.ts:368
↓ 2 callersFunctioncopyFile
(target io.Writer, header *multipart.FileHeader)
relay/channel/providerplugin/adaptor.go:395
↓ 2 callersFunctioncopyHeaderInContext
(context map[string]any, fromHeader, toHeader string, keepOrigin bool)
relay/common/override.go:1378
↓ 2 callersFunctioncopyRequest
(req *dto.ClaudeRequest, version string)
relay/channel/vertex/dto.go:26
↓ 2 callersFunctioncopyToClipboard
()
web/src/components/ai-elements/code-block.tsx:655
↓ 2 callersFunctioncountClaudeContentBlockTools
countClaudeContentBlockTools counts the billable tool calls of one content block. On a channel whose upstream prices search itself (WebSearchBillingKe
relay/channel/claude/relay-claude.go:243
↓ 2 callersFunctioncountPasswordCharacters
(password: string)
web/src/lib/password-policy.ts:25
↓ 2 callersFunctioncountPluginKinds
( partsList: Required<TaskPluginParts>[] )
web/src/features/task-plugins/lib/plugin-kinds.ts:40
↓ 2 callersFunctioncountSystemTasks
(t *testing.T, taskType string)
service/system_task_test.go:58
↓ 2 callersFunctioncreateChannelColumn
(config: { accessorKey?: string headerLabel: string })
web/src/features/usage-logs/components/columns/column-helpers.tsx:168
↓ 2 callersFunctioncreateChannelFieldUpdateScheduler
( onUpdate: (value: number) => void, timers: ChannelFieldUpdateTimers = browserTimers )
web/src/features/channels/lib/channel-field-update.ts:32
↓ 2 callersFunctioncreateChannelTestCachePatch
( responseTime?: number, completedAt = Date.now() )
web/src/features/channels/components/dialogs/channel-test-dialog.tsx:142
↓ 2 callersFunctioncreateDefaultOperation
()
web/src/features/channels/components/dialogs/param-override-editor-dialog.tsx:537
↓ 2 callersFunctioncreateDefaultVisualConfig
()
web/src/features/pricing/lib/tier-expr.ts:93
↓ 2 callersFunctioncreateDurationColumn
(config: { submitTimeKey: string finishTimeKey: string unit?: 'seconds' | 'milliseconds' headerLabel:
web/src/features/usage-logs/components/columns/column-helpers.tsx:107
↓ 2 callersFunctioncreateEmailSchema
(t: (key: string) => string)
web/src/features/system-settings/integrations/email-settings-schema.ts:21
↓ 2 callersFunctioncreateEmptyVisualCondition
()
web/src/features/pricing/lib/billing-expression/visual.ts:83
↓ 2 callersFunctioncreateFadeState
()
web/src/components/ai-elements/response-fade.ts:132
↓ 2 callersFunctioncreateGroupPricingId
()
web/src/features/system-settings/models/group-ratio-visual-editor.tsx:126
↓ 2 callersFunctioncreateJsonStringField
( t: Translate, options?: Parameters<typeof validateJsonString>[1] )
web/src/features/system-settings/models/ratio-settings-card.tsx:103
↓ 2 callersFunctioncreateKeySourceRow
(source?: Partial<KeySource>)
web/src/features/system-settings/general/channel-affinity/rule-editor-dialog.tsx:118
↓ 2 callersFunctioncreateLegacyPendingSystemTask
(t *testing.T, taskType string)
model/system_task_test.go:182
↓ 2 callersFunctioncreateLoginSession
(userID int, expectedAuthVersion int64, loginMethod, ip, userAgent string)
service/auth_session.go:63
↓ 2 callersFunctioncreateMessageVersion
(content: string)
web/src/features/playground/lib/message/message-utils.ts:32
↓ 2 callersFunctioncreateProgressColumn
(config: { accessorKey?: string headerLabel: string })
web/src/features/usage-logs/components/columns/column-helpers.tsx:253
↓ 2 callersFunctioncreateQueryClient
()
web/src/features/users/components/dialogs/__tests__/user-binding-dialog.test.tsx:52
↓ 2 callersFunctioncreateRefreshRunner
( runtime: AuthRefreshRuntime )
web/src/lib/auth-session.ts:211
↓ 2 callersFunctioncreateScrollLayerSynchronizer
( source: ScrollSource, layers: ScrollLayers, requestFrame: RequestFrame = window.requestAnimationFrame
web/src/components/json-code-editor/json-code-editor-utils.ts:103
↓ 2 callersFunctioncreateStreamRequestController
( runtime: StreamRequestControllerRuntime )
web/src/features/playground/hooks/use-stream-request.ts:59
↓ 2 callersFunctioncreateUserSessionWithTx
(tx *gorm.DB, session *UserSession)
model/user_session.go:143
↓ 2 callersFunctioncreateWindow
()
electron/main.js:388
↓ 2 callersMethodcredentialContext
(info *relaycommon.RelayInfo)
relay/channel/providerplugin/adaptor.go:586
↓ 2 callersFunctioncurrentValidAuthBundle
()
web/src/lib/auth-session.ts:345
↓ 2 callersFunctioncustomToolHistoryRequest
(t *testing.T, items ...map[string]any)
relaykit/relayconvert/request_registry_test.go:555
↓ 2 callersMethoddecide
decide reads the first response the handler writes: a 2xx event stream or JSON body is an answer to check, an error passes on as it is, and any other
relay/requestplugin/reply.go:891
↓ 2 callersFunctiondecodeBalanceResult
decodeBalanceResult reads {amount, currency, unlimited?, windows?}.
pkg/jsplugin/provider.go:2042
↓ 2 callersFunctiondecodeCredentialResult
(object map[string]any, subject string)
pkg/jsplugin/provider.go:1675
↓ 2 callersFunctiondecodeDoubaoOpenAIImage
(t *testing.T, plugin *jsplugin.LoadedPlugin, operation, model string, body map[string]any)
plugins/doubao_responses_test.go:854
↓ 2 callersFunctiondecodeEffects
(data []byte, allowed ...string)
pkg/requestpatch/patch.go:89
↓ 2 callersFunctiondecodeJWTClaims
(token string)
service/codex_oauth.go:156
↓ 2 callersFunctiondecodeListModelsPayload
(t *testing.T, recorder *httptest.ResponseRecorder)
controller/model_list_test.go:144
↓ 2 callersFunctiondecodeNextRequest
decodeNextRequest reads the next request and state of a chain result; text is the JSON text of next.body.
pkg/jsplugin/provider.go:1154
↓ 2 callersFunctiondecodeNoticeAndFindings
decodeNoticeAndFindings reads the notice and findings members a stage or reply hook result shares.
pkg/jsplugin/transform.go:386
↓ 2 callersFunctiondecodeOpenAIResponsesDefinition
(raw json.RawMessage)
relaykit/relayconvert/internal/toolconv/decode.go:393
↓ 2 callersFunctiondecodeOpenAIResponsesDefinitions
decodeOpenAIResponsesDefinitions decodes one Responses tool. A namespace tool expands into its member tools, each renamed with convmeta.NamespacedTool
relaykit/relayconvert/internal/toolconv/decode.go:251
↓ 2 callersFunctiondecodeSchema
(text []byte, subject string, channel bool)
pkg/jsplugin/config_schema.go:415
↓ 2 callersFunctiondecodeString
(data json.RawMessage, target *string)
pkg/requestpatch/patch.go:270
↓ 2 callersFunctiondecodeSystemTaskJSONString
(data string, v any)
model/system_task.go:604
↓ 2 callersFunctiondecodeTaskId
(value)
plugins/tasks/vertex-ai/plugin.js:338
↓ 2 callersFunctiondecodeToolCounts
decodeToolCounts reads the tools member of a result: tool calls per tool name, nil when the result has none.
pkg/jsplugin/provider.go:1219
↓ 2 callersFunctiondecodeToolPricesJSON
(value string, ignoreInvalidEntries bool)
setting/operation_setting/tools.go:151
↓ 2 callersFunctiondecodeUsageExamples
(value any)
pkg/jsplugin/registry.go:2112
↓ 2 callersFunctiondecodeUsageSchema
(value any)
pkg/jsplugin/registry.go:1990
↓ 2 callersFunctiondecodeUserModelsResponse
(t *testing.T, recorder *httptest.ResponseRecorder)
controller/model_list_test.go:174
↓ 2 callersFunctiondecodeWebSocketMessages
decodeWebSocketMessages reads an array of text messages and {bodyBase64} binary ones.
pkg/jsplugin/provider.go:895
↓ 2 callersFunctiondefaultPluginKind
( counts: Record<PluginKind, number> )
web/src/features/task-plugins/lib/plugin-kinds.ts:55
↓ 2 callersFunctiondefaultTaskPluginMarketplaceSources
()
setting/task_plugin.go:48
↓ 2 callersFunctiondeleteHeaderOverrideInContext
(context map[string]any, headerName string)
relay/common/override.go:1406
↓ 2 callersFunctiondeletePasskeyWithAuthVersion
(userID int, identity *AuthSessionIdentity)
model/passkey.go:273
↓ 2 callersFunctiondeliver
(value: unknown)
web/src/lib/auth-session-sync.ts:85
↓ 2 callersFunctiondeliveredImages
(body)
plugins/tasks/doubao/plugin.js:624
↓ 2 callersFunctiondescribeChanges
describeChanges lists the json.patch operations of effects as users read them, the first 20 and the count of the rest. before and after are the body a
relay/requestplugin/record.go:42
↓ 2 callersFunctiondescribePluginDocumentProblem
( t: TFunction, error: PluginDocumentFormatError )
web/src/features/task-plugins/lib/plugin-document-problem.ts:27
↓ 2 callersFunctiondetectQuickRangeDays
( filters: DashboardFilters | undefined )
web/src/features/dashboard/components/models/models-filter-dialog.tsx:75
↓ 2 callersFunctiondiffText
(before: string, after: string)
web/src/features/task-plugins/lib/text-diff.ts:39
↓ 2 callersFunctiondisableTwoFAWithAuthVersion
(userId int, identity *AuthSessionIdentity)
model/twofa.go:247
↓ 2 callersFunctiondispatchSelectedPayment
( paymentMethod: PaymentMethod, topupAmount: number, waffoMethodIndex: number | null, processors: Paym
web/src/features/wallet/lib/payment.ts:120
↓ 2 callersFunctiondistributorTaskPluginSource
(key string, channelType int)
middleware/distributor_test.go:190
↓ 2 callersFunctiondoRequest
(req *http.Request, info *relaycommon.RelayInfo)
relay/channel/coze/relay-coze.go:281
↓ 2 callersFunctiondocxText
docxText reads the text of a DOCX file's word/document.xml: the runs of each paragraph, a line per paragraph, tabs and breaks as they are.
relay/requestplugin/extract.go:125
↓ 2 callersMethoddone
()
relay/requestplugin/pdf.go:133
↓ 2 callersFunctiondottedPath
dottedPath renders a JSON Pointer as a.b[1].c. An array item takes brackets: a token whose parent is an array in one of bodies, or, where no body has
relay/requestplugin/record.go:97
↓ 2 callersFunctiondownloadPluginDocument
( file: PluginDocumentFile, signal: AbortSignal )
web/src/features/task-plugins/lib/plugin-document.ts:153
↓ 2 callersFunctiondrawerTree
(currentRow: Redemption, open = true)
web/src/features/redemption-codes/components/__tests__/redemptions-mutate-drawer.test.tsx:96
↓ 2 callersMethoddrop
drop counts a dropped request and, at most once a minute, writes a warning with the number dropped since the last one.
relay/requestplugin/report.go:502
↓ 2 callersFunctiondryRunBuiltInAs
dryRunBuiltInAs is dryRunBuiltIn for a request of another format and path.
plugins/request_plugins_test.go:1126
↓ 2 callersMethoddurable
(task *model.Task)
controller/task_plugin_debug.go:187
↓ 2 callersFunctionduration
(req)
plugins/tasks/vertex-ai/plugin.js:312
↓ 2 callersFunctioneffectiveModelPricing
(values map[string]map[string]any, name string)
model/model_pricing_config.go:173
↓ 2 callersFunctioneffectivePricingSyncData
effectivePricingSyncData follows the billing engine's mode precedence. An inactive expression and numeric settings covered by an active expression are
controller/ratio_sync.go:145
← previousnext →3,801–3,900 of 15,409, ranked by callers