MCPcopy Create free account

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

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

↓ 2 callersFunctionnormalizeResolution
(value)
plugins/tasks/doubao/plugin.js:386
↓ 2 callersFunctionnormalizeResponsesReasoningReplay
DeepSeek's stateless Responses API requires plaintext reasoning before an assistant tool step, including a step resumed after a tool result. Reproduce
relay/channel/deepseek/responses_reasoning.go:46
↓ 2 callersFunctionnormalizeResponsesWSCreateEvent
normalizeResponsesWSCreateEvent builds the HTTP-shaped request body from a response.create whose envelope the read loop already parsed and validated.
relay/responses_websocket.go:973
↓ 2 callersFunctionnormalizeSyncValue
(field string, value any)
controller/ratio_sync.go:125
↓ 2 callersFunctionnormalizeTaskMediaHost
(scheme, host string)
controller/video_proxy.go:555
↓ 2 callersFunctionnormalizeTaskVisualConfig
( config: TaskVisualConfig | null | undefined, schema: BillingUsageSchema )
web/src/features/pricing/lib/task-expr.ts:307
↓ 2 callersFunctionnormalizeUserSettings
( setting?: string )
web/src/features/profile/lib/user-settings.ts:36
↓ 2 callersFunctionnormalizeV1Meta
(meta *Meta)
pkg/jsplugin/registry.go:1573
↓ 2 callersFunctionnoteTaskQuotaClamp
noteTaskQuotaClamp records the first quota saturation event onto the task's RelayInfo so LogTaskConsumption can surface it on the submit log's admin_i
relay/relay_task.go:466
↓ 2 callersFunctionnotifyAdmins
notifyAdmins sends a notice to each enabled administrator for whom receives returns true, and returns how many notices it sent.
service/user_notify.go:42
↓ 2 callersFunctionnotifySystemTaskRunner
notifySystemTaskRunner wakes the runner without blocking. If a wakeup is already pending it is a no-op, which is fine since one pass drains all work.
service/system_task.go:116
↓ 2 callersMethodnumeric
(node: ExpressionNode)
web/src/features/pricing/lib/billing-expression/runtime.ts:313
↓ 2 callersFunctionobjectMembers
(data json.RawMessage, subject string)
pkg/requestpatch/patch.go:246
↓ 2 callersFunctionobjectStreamData
objectStreamData is the data of an object stream holding objects under numbers, and the offset of the first object in it.
relay/requestplugin/pdf_test.go:107
↓ 2 callersFunctionobserveStreamChoices
observeStreamChoices collects billable function call names and records the finish reason facts used by health sampling from one parsed chunk.
relay/channel/openai/relay-openai.go:203
↓ 2 callersMethodoffSlot
offSlot runs work, which waits or computes in Go, with the call's JavaScript clock stopped and its execution slot lent to other calls. It returns the
pkg/jsplugin/media.go:217
↓ 2 callersFunctionollamaChatHandler
non-stream handler for chat/generate
relay/channel/ollama/stream.go:224
↓ 2 callersFunctionollamaStreamHandler
(c *gin.Context, info *relaycommon.RelayInfo, resp *http.Response)
relay/channel/ollama/stream.go:143
↓ 2 callersFunctionollamaToolCallsToOpenAI
(toolCalls []OllamaToolCall, startIndex int, includeIndex bool)
relay/channel/ollama/stream.go:45
↓ 2 callersFunctionomitTrailingAssistantText
omitTrailingAssistantText drops the assistant turns without tool calls that end the converted conversation after a user turn or tool result. In Respon
relaykit/relayconvert/internal/oai_responses/req_helpers.go:70
↓ 2 callersFunctionomniDuration
(req)
plugins/tasks/vertex-ai/plugin.js:155
↓ 2 callersFunctionomniResolution
(req)
plugins/tasks/vertex-ai/plugin.js:147
↓ 2 callersFunctionomniUsageFacts
(seconds, resolution)
plugins/tasks/vertex-ai/plugin.js:27
↓ 2 callersFunctiononPaginationChange
(updater)
web/src/hooks/use-table-url-state.ts:169
↓ 2 callersFunctiononlyMembers
(members map[string]json.RawMessage, subject string, allowed ...string)
pkg/requestpatch/patch.go:254
↓ 2 callersFunctionopenAIImageRuleFor
(model, detail string)
tokenkit/image.go:96
↓ 2 callersFunctionopenTokenControllerExternalDB
(t *testing.T, dialect string, dsn string)
controller/token_test.go:123
↓ 2 callersFunctionopenTokenControllerTestDB
(t *testing.T)
controller/token_test.go:82
↓ 2 callersFunctionopenaiImageDataHasField
openaiImageDataHasField reports whether an image data entry carries a non-empty string value for field.
relay/channel/openai/relay_image.go:87
↓ 2 callersFunctionopenaiImageResponseCount
openaiImageResponseCount counts billable images in an OpenAI-format image response body. An object-shaped data is one image when it carries url or b64
relay/channel/openai/relay_image.go:61
↓ 2 callersFunctionoptionsKeyIsUnique
(db *gorm.DB)
model/option_primary_key_migration.go:46
↓ 2 callersFunctionoptionsRevision
(t *testing.T)
model/sensitive_word_migration_test.go:14
↓ 2 callersFunctionorderCardCells
( cells: Cell<TData, unknown>[] )
web/src/components/data-table/layout/card-row-content.tsx:26
↓ 2 callersFunctionorderProtocolSupports
(protocol string, supports []string)
pkg/jsplugin/routing.go:154
↓ 2 callersFunctionoriginKey
(req *http.Request)
service/http_transport_sharded.go:40
↓ 2 callersFunctionoriginTaskTestContext
(userID int)
middleware/task_plugin_origin_task_test.go:73
↓ 2 callersFunctionoriginsForRPID
(origins []string, rpID string)
service/passkey/service.go:138
↓ 2 callersFunctionoutboundDuration
(req)
plugins/tasks/hailuo/plugin.js:217
↓ 2 callersFunctionoutboundDuration
(req)
plugins/tasks/kling/plugin.js:242
↓ 2 callersFunctionoutboundSeconds
(req, reqKey)
plugins/tasks/jimeng/plugin.js:225
↓ 2 callersMethodoutputStatus
()
relaykit/relayconvert/internal/oai_chat/to_oai_responses_stream_resp.go:845
↓ 2 callersFunctionoverrideKey
overrideKey is the value {api_key} stands for in header overrides: a credential line is no API key.
relay/channel/task/jsplugin/credential.go:121
↓ 2 callersMethodparamOverride
new-api only: outbound hooks only, runs the new-api channel parameter override language on body, with conditions reading ctx. A return_error operation
docs/plugin-api/v1.d.ts:29
↓ 2 callersFunctionparseAdvancedCustomRouteModels
(value: string)
web/src/features/channels/lib/advanced-custom.ts:592
↓ 2 callersFunctionparseAudio
(audioBase64 string, format string)
service/audio.go:10
↓ 2 callersFunctionparseConditionOperations
(raw any)
relay/common/override.go:2037
↓ 2 callersFunctionparseContentUrl
(value: unknown)
web/src/features/usage-logs/lib/task-artifacts.ts:56
↓ 2 callersFunctionparseDocument
(body []byte)
pkg/requestpatch/patch.go:409
↓ 2 callersFunctionparseFlowQuotaTimeRange
(c *gin.Context)
controller/usedata.go:13
↓ 2 callersFunctionparseHEIFDimensions
parseHEIFDimensions parses ISOBMFF box tree to find the ispe box and extract image width/height. Returns (width, height, ok).
service/file_service.go:517
↓ 2 callersFunctionparseHeaderNavBoolean
( raw: unknown, fallback: boolean )
web/src/lib/nav-modules.ts:59
↓ 2 callersFunctionparseHeaderNavModulesFromStatus
( status: Record<string, unknown> | null )
web/src/lib/nav-modules.ts:141
↓ 2 callersFunctionparseHeaderOverrideObject
( headerOverride: string | undefined )
web/src/features/channels/lib/header-passthrough.ts:29
↓ 2 callersFunctionparseHeaderReplacementTokens
(value any)
relay/common/override.go:1334
↓ 2 callersFunctionparseInferenceMetrics
(raw string, prefix string)
controller/channel_inference.go:211
↓ 2 callersFunctionparseJsonEditorConfig
()
web/src/features/channels/components/dialogs/advanced-custom-editor-dialog.tsx:585
↓ 2 callersFunctionparseJsonRows
(json: string)
web/src/components/json-editor.tsx:46
↓ 2 callersFunctionparseLegacyAudioClips
(data: unknown)
web/src/features/usage-logs/lib/task-artifacts.ts:143
↓ 2 callersFunctionparseMarketplaceDescription
( value: unknown )
web/src/features/task-plugins/lib/marketplace.ts:270
↓ 2 callersFunctionparseModelStatusFilter
parseModelStatusFilter maps UI/API status values to the models.status column. Returns ok=false when no status filter should be applied.
model/model_meta.go:518
↓ 2 callersFunctionparseModelSyncFilter
parseModelSyncFilter maps UI/API sync values to the models.sync_official column. Returns ok=false when no sync filter should be applied.
model/model_meta.go:537
↓ 2 callersFunctionparseModelsList
(models: string)
web/src/features/channels/lib/channel-utils.ts:226
↓ 2 callersFunctionparseNestedRatioMap
( value: string )
web/src/features/system-settings/models/group-ratio-visual-editor.tsx:150
↓ 2 callersFunctionparseNode
(value gjson.Result, depth int)
pkg/requestpatch/patch.go:423
↓ 2 callersFunctionparseNonNegativeNumber
(value: string)
web/src/features/pricing/lib/billing-expression/visual.ts:249
↓ 2 callersFunctionparsePluginChangelog
( text: string, identity: ChangelogIdentity, sourceUrl: string )
web/src/features/task-plugins/lib/plugin-changelog.ts:167
↓ 2 callersFunctionparsePluginReadme
( text: string, locale: string, sourceUrl: string )
web/src/features/task-plugins/lib/plugin-readme.ts:86
↓ 2 callersFunctionparseProviderModelSuffix
parseProviderModelSuffix recognises a provider family's naked model-name aliases. allowSuffixAlias gates all of them, including effort tails, so a dis
relaykit/relayconvert/reasoning/suffix.go:226
↓ 2 callersFunctionparseProxyURL
(rawProxyURL string, allowLegacySuffix bool)
common/proxy_url.go:23
↓ 2 callersFunctionparsePruneObjectsDraft
(valueText: string)
web/src/features/channels/components/dialogs/param-override-editor-dialog.tsx:789
↓ 2 callersFunctionparseRequestModelName
(name string, opts *convmeta.Options)
relay/helper/reasoning_suffix.go:162
↓ 2 callersFunctionparseResponsesWSEnvelope
Stream identity belongs to the WebSocket envelope. For the legacy wrapped input, the top-level field takes precedence over response.stream_id.
relay/responses_websocket.go:934
↓ 2 callersFunctionparseRoutePattern
(routePath string)
router/plugin-router.go:629
↓ 2 callersFunctionparseSidebarConfig
* Parse backend SidebarModulesAdmin configuration
web/src/hooks/use-sidebar-config.ts:128
↓ 2 callersFunctionparseStatusCodeKey
(rawKey: string)
web/src/features/channels/lib/status-code-risk-guard.ts:21
↓ 2 callersFunctionparseStatusCodeMappingTarget
(rawValue: unknown)
web/src/features/channels/lib/status-code-risk-guard.ts:27
↓ 2 callersFunctionparseStatusFilter
(statusParam string)
controller/channel.go:61
↓ 2 callersFunctionparseStreamMessageUpdates
(data: string)
web/src/features/playground/lib/streaming/stream-utils.ts:67
↓ 2 callersFunctionparseStringItems
(items: PrefillGroup['items'])
web/src/features/models/components/prefill-group-shared.ts:69
↓ 2 callersFunctionparseTaskArtifactsResponse
( response: TaskArtifactsResponse )
web/src/features/usage-logs/lib/task-artifacts.ts:163
↓ 2 callersFunctionparseTelegramBindCallback
( search: TelegramBindCallbackSearch )
web/src/features/auth/lib/oauth-bind-window.ts:56
↓ 2 callersFunctionparseToUnicode
parseToUnicode reads the code space ranges, at most maxPDFCodespaceRanges, and the bfchar and bfrange entries of a ToUnicode CMap. Ranges walk at most
relay/requestplugin/pdf.go:400
↓ 2 callersFunctionparseToolPrice
(value: string)
web/src/features/system-settings/models/tool-price-settings.tsx:73
↓ 2 callersFunctionparseUserSidebarConfig
* Parse user-level sidebar_modules. Returns null when the value is empty, * invalid, or otherwise unusable — the caller treats null as "do not narrow
web/src/hooks/use-sidebar-config.ts:151
↓ 2 callersFunctionparseVolcengineAuth
(apiKey string)
relay/channel/volcengine/tts.go:110
↓ 2 callersFunctionparseWaffoPayMethods
(value: string)
web/src/features/system-settings/integrations/payment-settings-section.tsx:221
↓ 2 callersFunctionpatchGeminiZeroCompletionUsage
patchGeminiZeroCompletionUsage estimates completion tokens locally when upstream usageMetadata was billable but reported zero completion tokens even t
relay/channel/gemini/relay-gemini.go:47
↓ 2 callersFunctionpatchSource
Reuse untouched source spans instead of rewriting whitespace, labels or price order.
web/src/features/pricing/lib/billing-expression/visual.ts:232
↓ 2 callersMethodpickShard
(origin string)
service/http_transport_sharded.go:47
↓ 2 callersFunctionpinTaskPluginFormModel
pinTaskPluginFormModel sets the model field of a form body to the model the endpoint was pinned to.
middleware/task_plugin.go:1043
↓ 2 callersFunctionpinnedCandidatePlugins
pinnedCandidatePlugins returns the plugins a pinned shared host endpoint, or a native route several plugins declare, may execute, in ascending key ord
middleware/distributor.go:194
↓ 2 callersFunctionpinnedEndpointCandidateForChannel
pinnedEndpointCandidateForChannel returns the index, among pinnedCandidatePlugins, of the candidate that executes on channel.
middleware/distributor.go:225
↓ 2 callersFunctionplainObject
(value)
plugins/tasks/hailuo/plugin.js:175
↓ 2 callersFunctionplanChannelPriorityMove
Equal-priority channels remain together. Opening a slot shifts the shorter contiguous run of occupied integer priorities, measured by affected channel
model/channel_priority.go:113
↓ 2 callersFunctionpluginExpressionsEqual
( left: Record<string, string> = {}, right: Record<string, string> = {} )
web/src/features/pricing/lib/plugin-pricing.ts:108
↓ 2 callersFunctionpluginLoginFieldsSchema
(fields: PluginLoginField[])
web/src/features/channels/lib/plugin-login.ts:266
↓ 2 callersFunctionpluginProtocolTickDelay
(taskID string, tick uint64, base, jitter time.Duration)
controller/plugin_protocol.go:1198
↓ 2 callersFunctionpluginReportsBalance
pluginReportsBalance reports whether a plugin exports the balance hooks.
controller/channel_balance.go:80
↓ 2 callersFunctionpluginResponseMap
(response *dto.PluginResponsesResponse)
relay/plugin_protocol.go:842
↓ 2 callersFunctionpluginTokenKey
(plugin *jsplugin.LoadedPlugin, channelID int, line string, config json.RawMessage, baseURL string)
service/provider_plugin.go:313
← previousnext →4,401–4,500 of 15,409, ranked by callers