Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/QuantumNous/new-api
/ functions
Functions
15,409 in github.com/QuantumNous/new-api
⨍
Functions
15,409
◇
Types & classes
2,241
↓ 1 callers
Function
responsesInputItems
(raw []byte)
relaykit/relayconvert/internal/oai_responses/req_helpers.go:32
↓ 1 callers
Function
responsesInputItems
(raw json.RawMessage)
relaykit/relayconvert/internal/toolconv/encode.go:1370
↓ 1 callers
Function
responsesItemFields
responsesItemFields are the output_text parts of a Responses message item at prefix.
relay/requestplugin/reply.go:1241
↓ 1 callers
Function
responsesObjectValue
(value any, fallbackKey string)
relaykit/relayconvert/internal/oai_responses/req_helpers.go:172
↓ 1 callers
Function
responsesOfType
(responses []*dto.ClaudeResponse, responseType string)
relaykit/relayconvert/internal/oai_responses/to_claude_messages_stream_resp_test.go:98
↓ 1 callers
Function
responsesOutputAnnotationCount
(output *dto.ResponsesOutput)
relaykit/relayconvert/internal/oai_responses/to_oai_chat_stream_resp.go:275
↓ 1 callers
Function
responsesOutputText
(ctx, task)
plugins/tasks/alibaba/plugin.js:1045
↓ 1 callers
Function
responsesOutputText
(ctx, task)
plugins/tasks/doubao/plugin.js:721
↓ 1 callers
Function
responsesParallelToolCalls
(raw []byte)
relaykit/relayconvert/internal/oai_responses/req_helpers.go:226
↓ 1 callers
Function
responsesPartDataAndMime
(part map[string]any, keys ...string)
relaykit/relayconvert/internal/oai_responses/req_helpers.go:269
↓ 1 callers
Function
responsesRawFloat
(raw json.RawMessage)
relaykit/relayconvert/internal/oai_responses/to_oai_chat_req.go:685
↓ 1 callers
Function
responsesReasoningEffort
(req *dto.OpenAIResponsesRequest)
relaykit/relayconvert/internal/oai_responses/req_helpers.go:161
↓ 1 callers
Function
responsesRequestFunctionDeclarations
(raw []byte)
relaykit/relayconvert/internal/oai_responses/req_helpers.go:125
↓ 1 callers
Function
responsesRequestMessagesToChat
(ctx context.Context, req *dto.OpenAIResponsesRequest)
relaykit/relayconvert/internal/oai_responses/to_oai_chat_req.go:146
↓ 1 callers
Function
responsesRequestToolsToChat
(raw json.RawMessage)
relaykit/relayconvert/internal/oai_responses/to_oai_chat_req.go:380
↓ 1 callers
Function
responsesStreamChunk
(raw string)
relaykit/relayconvert/golden_test.go:454
↓ 1 callers
Function
responsesStreamEvent
(eventType string, payload dto.ResponsesStreamResponse)
relaykit/relayconvert/internal/oai_chat/to_oai_responses_resp.go:306
↓ 1 callers
Function
responsesText
(req)
plugins/tasks/sunoapi/plugin.js:45
↓ 1 callers
Function
responsesToolOutputToChat
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 callers
Function
responsesToolOutputToClaude
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 callers
Function
responsesToolOutputToGemini
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 callers
Function
responsesToolState
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 callers
Function
responsesVideoPartToChatVideoURL
(part map[string]any)
relaykit/relayconvert/internal/oai_responses/to_oai_chat_req.go:552
↓ 1 callers
Function
responsesVideoText
(ctx)
plugins/tasks/jimeng/plugin.js:88
↓ 1 callers
Function
responsesVideoText
(ctx)
plugins/tasks/alibaba/plugin.js:1033
↓ 1 callers
Function
responsesVideoText
(ctx)
plugins/tasks/doubao/plugin.js:713
↓ 1 callers
Function
responsesVideoText
(ctx, task)
plugins/tasks/xai/plugin.js:388
↓ 1 callers
Function
responsesVideoText
(ctx)
plugins/tasks/google/plugin.js:110
↓ 1 callers
Function
responsesVideoText
(ctx)
plugins/tasks/sora/plugin.js:81
↓ 1 callers
Function
responsesVideoText
(ctx)
plugins/tasks/vidu/plugin.js:297
↓ 1 callers
Function
responsesVideoText
(ctx)
plugins/tasks/hailuo/plugin.js:531
↓ 1 callers
Function
responsesVideoText
(ctx)
plugins/tasks/kling/plugin.js:140
↓ 1 callers
Function
restoreMultiKeyChannelIfAvailable
(channel *model.Channel)
controller/channel.go:128
↓ 1 callers
Function
restoreProtectedHeaders
(headers)
web/scripts/format-with-protected-headers.mjs:111
↓ 1 callers
Function
restoreSnapshot
(snapshot)
web/scripts/format-with-protected-headers.mjs:84
↓ 1 callers
Function
result
( overrides: Partial<RequestPluginDryRunResult> )
web/src/features/task-plugins/__tests__/request-plugin-try-panel.test.tsx:86
↓ 1 callers
Method
result
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 callers
Method
resume
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 callers
Function
revokeAccessToken
( id: number, proofToken: string, signal: AbortSignal )
web/src/features/security/api.ts:146
↓ 1 callers
Function
revokeLegacyAccessToken
( proofToken: string, signal: AbortSignal )
web/src/features/security/api.ts:162
↓ 1 callers
Function
revokeLoginSession
(sid: string)
web/src/features/profile/api.ts:240
↓ 1 callers
Function
revokeOtherLoginSessions
()
web/src/features/profile/api.ts:245
↓ 1 callers
Function
rewriteDraftTaskContent
(content, originTasks)
plugins/tasks/doubao/plugin.js:365
↓ 1 callers
Function
ringColorClass
(percent: number | null)
web/src/features/system-info/components/system-instances-panel.tsx:147
↓ 1 callers
Function
roleDescriptionKey
(instance: SystemInstance)
web/src/features/system-info/components/system-instances-panel.tsx:102
↓ 1 callers
Function
roleGrants
(spec RoleSpec)
service/authz/role.go:62
↓ 1 callers
Function
roleGrants
( catalog: PermissionCatalog, roleKey: string )
web/src/lib/admin-permissions.ts:89
↓ 1 callers
Function
roleLabel
(instance: SystemInstance)
web/src/features/system-info/components/system-instances-panel.tsx:97
↓ 1 callers
Function
roleSpec
(roleKey string)
service/authz/role.go:74
↓ 1 callers
Method
rollbackFundingReserve
(delta int)
service/billing_session.go:303
↓ 1 callers
Function
rootAPIError
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 callers
Function
roundToDecimals
(value: number, decimals: number)
web/src/features/system-settings/models/pricing-format.ts:37
↓ 1 callers
Method
routeAnsweredByHost
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 callers
Function
routeHasOwnPrefix
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 callers
Function
routeIntersectsStaticRoute
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 callers
Function
routePatternIntersectsNamespace
(routePath, namespace string)
pkg/jsplugin/routing.go:874
↓ 1 callers
Function
routePatternsIntersect
(leftPath, rightPath string)
router/plugin-router.go:642
↓ 1 callers
Method
routeURL
(info *relaycommon.RelayInfo)
relay/channel/advancedcustom/adaptor.go:423
↓ 1 callers
Function
routingPolicyOptions
( values: RoutingPolicyFormValues )
web/src/features/system-settings/request-policies/routing-form.ts:69
↓ 1 callers
Function
rowActions
(row: RequestPluginConfigRow, index: number)
web/src/features/task-plugins/components/request-plugin-config-rows.tsx:140
↓ 1 callers
Function
rowInputId
(rowId: string, field: MappingField)
web/src/features/channels/components/model-mapping-editor.tsx:138
↓ 1 callers
Function
rowValue
(label: string)
web/src/features/usage-logs/components/__tests__/usage-facts.test.tsx:93
↓ 1 callers
Function
rowsToObject
(rows: ToolPriceRow[])
web/src/features/system-settings/models/tool-price-settings.tsx:80
↓ 1 callers
Function
rsaOaepEncrypt
( password: string, publicKeyPEM: string, keyId: string )
web/src/features/auth/lib/password-encryption.ts:78
↓ 1 callers
Function
ruleMatches
(rule, summary)
plugins/tasks/auto-reasoning/plugin.js:193
↓ 1 callers
Function
ruleMet
(password: string, ruleId: string)
web/src/components/__tests__/password-strength.test.tsx:44
↓ 1 callers
Function
run
(...events: PluginLoginEvent[])
web/src/features/channels/lib/__tests__/plugin-login.test.ts:46
↓ 1 callers
Method
run
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 callers
Function
runBootScript
()
web/src/context/__tests__/theme-boot-script.test.ts:34
↓ 1 callers
Method
runCall
(c *gin.Context, state *responsesWSCallState, create responsesWSCreateRequest)
relay/responses_websocket.go:245
↓ 1 callers
Method
runChain
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 callers
Function
runChannelTestTask
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 callers
Function
runChannelUpstreamModelUpdateTaskOnce
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 callers
Function
runClassOf
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 callers
Function
runCodexCredentialAutoRefreshOnce
()
service/codex_credential_refresh_task.go:54
↓ 1 callers
Function
runFixedPriceAccountingCases
(t *testing.T, db, logDB *gorm.DB)
service/text_quota_test.go:97
↓ 1 callers
Function
runGoAwayAfterFirstRequestServer
(ln net.Listener)
relay/channel/api_request_getbody_test.go:389
↓ 1 callers
Method
runInstance
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 callers
Function
runLogCleanupTask
(ctx context.Context, task *model.SystemTask, runnerID string)
service/system_task.go:339
↓ 1 callers
Function
runMidjourneyTaskUpdateOnce
runMidjourneyTaskUpdateOnce performs one Midjourney polling pass synchronously. It honors ctx cancellation (the system-task runner cancels it when the
controller/midjourney.go:34
↓ 1 callers
Function
runOriginGuardRequest
(t *testing.T, origin, referer string)
middleware/auth_origin_test.go:13
↓ 1 callers
Function
runRefresh
(refreshEpoch: number)
web/src/lib/auth-session.ts:298
↓ 1 callers
Method
runRequest
(state *responsesWSCallState, message []byte, envelope responsesWSCreateEvent, streamID string, requestID stri
relay/responses_websocket.go:189
↓ 1 callers
Function
runSubscriptionQuotaResetOnce
()
service/subscription_reset_task.go:46
↓ 1 callers
Function
runUpdateSystemTaskStateIdenticalPayloadKeepsLock
(t *testing.T, taskType string)
model/system_task_test.go:520
↓ 1 callers
Function
runWithLeaseHeartbeat
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 callers
Function
runtimeLabel
(instance: SystemInstance)
web/src/features/system-info/components/system-instances-panel.tsx:109
↓ 1 callers
Function
safeDivide
( value: number, divisor: number, precision: number = 3 )
web/src/features/dashboard/lib/stats.ts:24
↓ 1 callers
Function
safeMime
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 callers
Function
safeNavigate
(target: unknown, fallback = '/dashboard')
web/src/routes/oauth/$provider.tsx:194
↓ 1 callers
Function
safeParseJson
(str: string)
web/src/features/system-settings/models/group-special-usable-editor.tsx:88
↓ 1 callers
Function
sameBillingUsageDialect
(current *BillingUsage, incoming *BillingUsage)
relaykit/dto/usage_merge.go:139
↓ 1 callers
Function
samePluginMap
(left, right map[string]*LoadedPlugin)
pkg/jsplugin/registry.go:1324
↓ 1 callers
Function
sameTaskMediaOrigin
(left, right *url.URL)
controller/video_proxy.go:547
↓ 1 callers
Function
sameValue
(left, right)
plugins/tasks/param-override/plugin.js:65
↓ 1 callers
Function
sampleImagePart
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 callers
Function
sanitizeClickHouseLikePattern
(input string)
model/log.go:48
↓ 1 callers
Function
sanitizeHtmlContent
( content: string, variant: HtmlContentVariant )
web/src/components/html-content.tsx:121
↓ 1 callers
Function
sanitizeMessagesOnLoad
(messages: Message[])
web/src/features/playground/lib/message/message-streaming-utils.ts:217
↓ 1 callers
Function
sankeyDatumFlag
(datum: Record<string, unknown>, key: string)
web/src/features/dashboard/lib/flow.ts:1053
← previous
next →
8,201–8,300 of 15,409, ranked by callers