MCPcopy Create free account

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

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

↓ 1 callersFunctionresponsesInputItems
(raw []byte)
relaykit/relayconvert/internal/oai_responses/req_helpers.go:32
↓ 1 callersFunctionresponsesInputItems
(raw json.RawMessage)
relaykit/relayconvert/internal/toolconv/encode.go:1370
↓ 1 callersFunctionresponsesItemFields
responsesItemFields are the output_text parts of a Responses message item at prefix.
relay/requestplugin/reply.go:1241
↓ 1 callersFunctionresponsesObjectValue
(value any, fallbackKey string)
relaykit/relayconvert/internal/oai_responses/req_helpers.go:172
↓ 1 callersFunctionresponsesOfType
(responses []*dto.ClaudeResponse, responseType string)
relaykit/relayconvert/internal/oai_responses/to_claude_messages_stream_resp_test.go:98
↓ 1 callersFunctionresponsesOutputAnnotationCount
(output *dto.ResponsesOutput)
relaykit/relayconvert/internal/oai_responses/to_oai_chat_stream_resp.go:275
↓ 1 callersFunctionresponsesOutputText
(ctx, task)
plugins/tasks/alibaba/plugin.js:1045
↓ 1 callersFunctionresponsesOutputText
(ctx, task)
plugins/tasks/doubao/plugin.js:721
↓ 1 callersFunctionresponsesParallelToolCalls
(raw []byte)
relaykit/relayconvert/internal/oai_responses/req_helpers.go:226
↓ 1 callersFunctionresponsesPartDataAndMime
(part map[string]any, keys ...string)
relaykit/relayconvert/internal/oai_responses/req_helpers.go:269
↓ 1 callersFunctionresponsesRawFloat
(raw json.RawMessage)
relaykit/relayconvert/internal/oai_responses/to_oai_chat_req.go:685
↓ 1 callersFunctionresponsesReasoningEffort
(req *dto.OpenAIResponsesRequest)
relaykit/relayconvert/internal/oai_responses/req_helpers.go:161
↓ 1 callersFunctionresponsesRequestFunctionDeclarations
(raw []byte)
relaykit/relayconvert/internal/oai_responses/req_helpers.go:125
↓ 1 callersFunctionresponsesRequestMessagesToChat
(ctx context.Context, req *dto.OpenAIResponsesRequest)
relaykit/relayconvert/internal/oai_responses/to_oai_chat_req.go:146
↓ 1 callersFunctionresponsesRequestToolsToChat
(raw json.RawMessage)
relaykit/relayconvert/internal/oai_responses/to_oai_chat_req.go:380
↓ 1 callersFunctionresponsesStreamChunk
(raw string)
relaykit/relayconvert/golden_test.go:454
↓ 1 callersFunctionresponsesStreamEvent
(eventType string, payload dto.ResponsesStreamResponse)
relaykit/relayconvert/internal/oai_chat/to_oai_responses_resp.go:306
↓ 1 callersFunctionresponsesText
(req)
plugins/tasks/sunoapi/plugin.js:45
↓ 1 callersFunctionresponsesToolOutputToChat
responsesToolOutputToChat maps a function_call_output payload onto Chat Completions, where a tool message may only carry text. A Responses content-par
relaykit/relayconvert/internal/oai_responses/to_oai_chat_req.go:639
↓ 1 callersFunctionresponsesToolOutputToClaude
responsesToolOutputToClaude maps a function_call_output payload onto Claude tool_result content. A Responses content-part array becomes the text, imag
relaykit/relayconvert/internal/oai_responses/to_claude_messages_req.go:248
↓ 1 callersFunctionresponsesToolOutputToGemini
responsesToolOutputToGemini maps a function_call_output payload onto a Gemini functionResponse. A Responses content-part array keeps its text in respo
relaykit/relayconvert/internal/oai_responses/to_gemini_chat_req.go:322
↓ 1 callersFunctionresponsesToolState
responsesToolState records which Responses custom tools were sent upstream as functions and which tool names were flattened from namespaces, so the re
relaykit/relayconvert/request_registry.go:312
↓ 1 callersFunctionresponsesVideoPartToChatVideoURL
(part map[string]any)
relaykit/relayconvert/internal/oai_responses/to_oai_chat_req.go:552
↓ 1 callersFunctionresponsesVideoText
(ctx)
plugins/tasks/jimeng/plugin.js:88
↓ 1 callersFunctionresponsesVideoText
(ctx)
plugins/tasks/alibaba/plugin.js:1033
↓ 1 callersFunctionresponsesVideoText
(ctx)
plugins/tasks/doubao/plugin.js:713
↓ 1 callersFunctionresponsesVideoText
(ctx, task)
plugins/tasks/xai/plugin.js:388
↓ 1 callersFunctionresponsesVideoText
(ctx)
plugins/tasks/google/plugin.js:110
↓ 1 callersFunctionresponsesVideoText
(ctx)
plugins/tasks/sora/plugin.js:81
↓ 1 callersFunctionresponsesVideoText
(ctx)
plugins/tasks/vidu/plugin.js:297
↓ 1 callersFunctionresponsesVideoText
(ctx)
plugins/tasks/hailuo/plugin.js:531
↓ 1 callersFunctionresponsesVideoText
(ctx)
plugins/tasks/kling/plugin.js:140
↓ 1 callersFunctionrestoreMultiKeyChannelIfAvailable
(channel *model.Channel)
controller/channel.go:128
↓ 1 callersFunctionrestoreProtectedHeaders
(headers)
web/scripts/format-with-protected-headers.mjs:111
↓ 1 callersFunctionrestoreSnapshot
(snapshot)
web/scripts/format-with-protected-headers.mjs:84
↓ 1 callersFunctionresult
( overrides: Partial<RequestPluginDryRunResult> )
web/src/features/task-plugins/__tests__/request-plugin-try-panel.test.tsx:86
↓ 1 callersMethodresult
result is the text read, truncated when a bound, the deadline or a failure left some out. A file with no text is unchecked: it ran out of time, has a
relay/requestplugin/pdf.go:141
↓ 1 callersMethodresume
resume restarts the clock with the time left at pause and the same timeout cause. When the time is up or ctx ended meanwhile, it waits for the interru
pkg/jsplugin/engine.go:866
↓ 1 callersFunctionrevokeAccessToken
( id: number, proofToken: string, signal: AbortSignal )
web/src/features/security/api.ts:146
↓ 1 callersFunctionrevokeLegacyAccessToken
( proofToken: string, signal: AbortSignal )
web/src/features/security/api.ts:162
↓ 1 callersFunctionrevokeLoginSession
(sid: string)
web/src/features/profile/api.ts:240
↓ 1 callersFunctionrevokeOtherLoginSessions
()
web/src/features/profile/api.ts:245
↓ 1 callersFunctionrewriteDraftTaskContent
(content, originTasks)
plugins/tasks/doubao/plugin.js:365
↓ 1 callersFunctionringColorClass
(percent: number | null)
web/src/features/system-info/components/system-instances-panel.tsx:147
↓ 1 callersFunctionroleDescriptionKey
(instance: SystemInstance)
web/src/features/system-info/components/system-instances-panel.tsx:102
↓ 1 callersFunctionroleGrants
(spec RoleSpec)
service/authz/role.go:62
↓ 1 callersFunctionroleGrants
( catalog: PermissionCatalog, roleKey: string )
web/src/lib/admin-permissions.ts:89
↓ 1 callersFunctionroleLabel
(instance: SystemInstance)
web/src/features/system-info/components/system-instances-panel.tsx:97
↓ 1 callersFunctionroleSpec
(roleKey string)
service/authz/role.go:74
↓ 1 callersMethodrollbackFundingReserve
(delta int)
service/billing_session.go:303
↓ 1 callersFunctionrootAPIError
rootAPIError follows host wrappers back to the error that describes what actually happened, e.g. an upstream credential error re-wrapped as a local in
pkg/perf_metrics/outcome.go:85
↓ 1 callersFunctionroundToDecimals
(value: number, decimals: number)
web/src/features/system-settings/models/pricing-format.ts:37
↓ 1 callersMethodrouteAnsweredByHost
routeAnsweredByHost reports whether a static route of the same method, or the trailing-slash redirect it causes, answers requests the plugin route cou
router/plugin-router.go:320
↓ 1 callersFunctionrouteHasOwnPrefix
routeHasOwnPrefix reports whether a declared route already lives under the plugin's own address: its first segment is the key or a proper prefix of it
pkg/jsplugin/routing.go:986
↓ 1 callersFunctionrouteIntersectsStaticRoute
routeIntersectsStaticRoute reports whether a request the plugin route could serve is answered first by the static route or by the trailing-slash redir
router/plugin-router.go:673
↓ 1 callersFunctionroutePatternIntersectsNamespace
(routePath, namespace string)
pkg/jsplugin/routing.go:874
↓ 1 callersFunctionroutePatternsIntersect
(leftPath, rightPath string)
router/plugin-router.go:642
↓ 1 callersMethodrouteURL
(info *relaycommon.RelayInfo)
relay/channel/advancedcustom/adaptor.go:423
↓ 1 callersFunctionroutingPolicyOptions
( values: RoutingPolicyFormValues )
web/src/features/system-settings/request-policies/routing-form.ts:69
↓ 1 callersFunctionrowActions
(row: RequestPluginConfigRow, index: number)
web/src/features/task-plugins/components/request-plugin-config-rows.tsx:140
↓ 1 callersFunctionrowInputId
(rowId: string, field: MappingField)
web/src/features/channels/components/model-mapping-editor.tsx:138
↓ 1 callersFunctionrowValue
(label: string)
web/src/features/usage-logs/components/__tests__/usage-facts.test.tsx:93
↓ 1 callersFunctionrowsToObject
(rows: ToolPriceRow[])
web/src/features/system-settings/models/tool-price-settings.tsx:80
↓ 1 callersFunctionrsaOaepEncrypt
( password: string, publicKeyPEM: string, keyId: string )
web/src/features/auth/lib/password-encryption.ts:78
↓ 1 callersFunctionruleMatches
(rule, summary)
plugins/tasks/auto-reasoning/plugin.js:193
↓ 1 callersFunctionruleMet
(password: string, ruleId: string)
web/src/components/__tests__/password-strength.test.tsx:44
↓ 1 callersFunctionrun
(...events: PluginLoginEvent[])
web/src/features/channels/lib/__tests__/plugin-login.test.ts:46
↓ 1 callersMethodrun
run builds the record and calls each instance's report hook in plan order. A failure is logged by plugin key, instance id and error class only.
relay/requestplugin/report.go:339
↓ 1 callersFunctionrunBootScript
()
web/src/context/__tests__/theme-boot-script.test.ts:34
↓ 1 callersMethodrunCall
(c *gin.Context, state *responsesWSCallState, create responsesWSCreateRequest)
relay/responses_websocket.go:245
↓ 1 callersMethodrunChain
runChain sends the first request of a plugin route and every request the plugin chains after it, and returns the client response. A rejected credentia
relay/channel/providerplugin/chain.go:50
↓ 1 callersFunctionrunChannelTestTask
runChannelTestTask runs one synchronous channel test cycle for the system task runner (both the scheduled job and the manual "test all channels" trigg
controller/channel-test.go:1139
↓ 1 callersFunctionrunChannelUpstreamModelUpdateTaskOnce
runChannelUpstreamModelUpdateTaskOnce runs one synchronous upstream model detection cycle and returns a summary for system task history. It honors ctx
controller/channel_upstream_update.go:789
↓ 1 callersFunctionrunClassOf
runClassOf groups runes the way tiktoken's pre-tokenizer joins them into pieces. Digits are split into groups of three by the encoder itself.
tokenkit/tokenizer.go:70
↓ 1 callersFunctionrunCodexCredentialAutoRefreshOnce
()
service/codex_credential_refresh_task.go:54
↓ 1 callersFunctionrunFixedPriceAccountingCases
(t *testing.T, db, logDB *gorm.DB)
service/text_quota_test.go:97
↓ 1 callersFunctionrunGoAwayAfterFirstRequestServer
(ln net.Listener)
relay/channel/api_request_getbody_test.go:389
↓ 1 callersMethodrunInstance
runInstance calls one instance on body and checks its effects. The error class names the failure for the audit.
relay/requestplugin/plan.go:396
↓ 1 callersFunctionrunLogCleanupTask
(ctx context.Context, task *model.SystemTask, runnerID string)
service/system_task.go:339
↓ 1 callersFunctionrunMidjourneyTaskUpdateOnce
runMidjourneyTaskUpdateOnce performs one Midjourney polling pass synchronously. It honors ctx cancellation (the system-task runner cancels it when the
controller/midjourney.go:34
↓ 1 callersFunctionrunOriginGuardRequest
(t *testing.T, origin, referer string)
middleware/auth_origin_test.go:13
↓ 1 callersFunctionrunRefresh
(refreshEpoch: number)
web/src/lib/auth-session.ts:298
↓ 1 callersMethodrunRequest
(state *responsesWSCallState, message []byte, envelope responsesWSCreateEvent, streamID string, requestID stri
relay/responses_websocket.go:189
↓ 1 callersFunctionrunSubscriptionQuotaResetOnce
()
service/subscription_reset_task.go:46
↓ 1 callersFunctionrunUpdateSystemTaskStateIdenticalPayloadKeepsLock
(t *testing.T, taskType string)
model/system_task_test.go:520
↓ 1 callersFunctionrunWithLeaseHeartbeat
runWithLeaseHeartbeat renews the per-type lock on a background ticker while fn runs. The TTL is a crash-detection window, not a task time limit: an ar
service/system_task.go:309
↓ 1 callersFunctionruntimeLabel
(instance: SystemInstance)
web/src/features/system-info/components/system-instances-panel.tsx:109
↓ 1 callersFunctionsafeDivide
( value: number, divisor: number, precision: number = 3 )
web/src/features/dashboard/lib/stats.ts:24
↓ 1 callersFunctionsafeMime
safeMime is mime when it is a plain type/subtype, otherwise application/octet-stream: it is written into a JSON string unescaped.
relay/requestplugin/attachments.go:723
↓ 1 callersFunctionsafeNavigate
(target: unknown, fallback = '/dashboard')
web/src/routes/oauth/$provider.tsx:194
↓ 1 callersFunctionsafeParseJson
(str: string)
web/src/features/system-settings/models/group-special-usable-editor.tsx:88
↓ 1 callersFunctionsameBillingUsageDialect
(current *BillingUsage, incoming *BillingUsage)
relaykit/dto/usage_merge.go:139
↓ 1 callersFunctionsamePluginMap
(left, right map[string]*LoadedPlugin)
pkg/jsplugin/registry.go:1324
↓ 1 callersFunctionsameTaskMediaOrigin
(left, right *url.URL)
controller/video_proxy.go:547
↓ 1 callersFunctionsameValue
(left, right)
plugins/tasks/param-override/plugin.js:65
↓ 1 callersFunctionsampleImagePart
The console's sample image as one content part of a request format.
web/src/features/task-plugins/lib/request-plugin-samples.ts:52
↓ 1 callersFunctionsanitizeClickHouseLikePattern
(input string)
model/log.go:48
↓ 1 callersFunctionsanitizeHtmlContent
( content: string, variant: HtmlContentVariant )
web/src/components/html-content.tsx:121
↓ 1 callersFunctionsanitizeMessagesOnLoad
(messages: Message[])
web/src/features/playground/lib/message/message-streaming-utils.ts:217
↓ 1 callersFunctionsankeyDatumFlag
(datum: Record<string, unknown>, key: string)
web/src/features/dashboard/lib/flow.ts:1053
← previousnext →8,201–8,300 of 15,409, ranked by callers