Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/QuantumNous/new-api
/ functions
Functions
15,592 in github.com/QuantumNous/new-api
⨍
Functions
15,592
◇
Types & classes
2,267
↓ 2 callers
Function
originsForRPID
(origins []string, rpID string)
service/passkey/service.go:138
↓ 2 callers
Function
outboundDuration
(req)
plugins/tasks/hailuo/plugin.js:242
↓ 2 callers
Function
outboundDuration
(req)
plugins/tasks/kling/plugin.js:242
↓ 2 callers
Function
outboundSeconds
(req, reqKey)
plugins/tasks/jimeng/plugin.js:225
↓ 2 callers
Method
outputStatus
()
relaykit/relayconvert/internal/oai_chat/to_oai_responses_stream_resp.go:845
↓ 2 callers
Function
overrideKey
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 callers
Method
paramOverride
new-api only: outbound hooks only, runs the new-api channel parameter override language on body, with conditions reading ctx. A return_error operation
pluginkit/v1.d.ts:34
↓ 2 callers
Function
parseAdvancedCustomRouteModels
(value: string)
web/src/features/channels/lib/advanced-custom.ts:600
↓ 2 callers
Function
parseAudio
(audioBase64 string, format string)
service/audio.go:10
↓ 2 callers
Function
parseConditionOperations
(raw any)
relay/common/override.go:2061
↓ 2 callers
Function
parseContentUrl
(value: unknown)
web/src/features/usage-logs/lib/task-artifacts.ts:56
↓ 2 callers
Function
parseDocument
(body []byte)
pkg/requestpatch/patch.go:409
↓ 2 callers
Function
parseFlowQuotaTimeRange
(c *gin.Context)
controller/usedata.go:13
↓ 2 callers
Function
parseHEIFDimensions
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 callers
Function
parseHeaderNavBoolean
( raw: unknown, fallback: boolean )
web/src/lib/nav-modules.ts:59
↓ 2 callers
Function
parseHeaderNavModulesFromStatus
( status: Record<string, unknown> | null )
web/src/lib/nav-modules.ts:141
↓ 2 callers
Function
parseHeaderOverrideObject
( headerOverride: string | undefined )
web/src/features/channels/lib/header-passthrough.ts:29
↓ 2 callers
Function
parseHeaderReplacementTokens
(value any)
relay/common/override.go:1358
↓ 2 callers
Function
parseInferenceMetrics
(raw string, prefix string)
controller/channel_inference.go:211
↓ 2 callers
Function
parseJsonEditorConfig
()
web/src/features/channels/components/dialogs/advanced-custom-editor-dialog.tsx:585
↓ 2 callers
Function
parseJsonRows
(json: string)
web/src/components/json-editor.tsx:46
↓ 2 callers
Function
parseLegacyAudioClips
(data: unknown)
web/src/features/usage-logs/lib/task-artifacts.ts:143
↓ 2 callers
Function
parseMarketplaceDescription
( value: unknown )
web/src/features/task-plugins/lib/marketplace.ts:270
↓ 2 callers
Function
parseModelStatusFilter
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 callers
Function
parseModelSyncFilter
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 callers
Function
parseModelsList
(models: string)
web/src/features/channels/lib/channel-utils.ts:226
↓ 2 callers
Function
parseNestedRatioMap
( value: string )
web/src/features/system-settings/models/group-ratio-visual-editor.tsx:150
↓ 2 callers
Function
parseNode
(value gjson.Result, depth int)
pkg/requestpatch/patch.go:423
↓ 2 callers
Function
parseNonNegativeNumber
(value: string)
web/src/features/pricing/lib/billing-expression/visual.ts:249
↓ 2 callers
Function
parsePluginChangelog
( text: string, identity: ChangelogIdentity, sourceUrl: string )
web/src/features/task-plugins/lib/plugin-changelog.ts:167
↓ 2 callers
Function
parsePluginReadme
( text: string, locale: string, sourceUrl: string )
web/src/features/task-plugins/lib/plugin-readme.ts:86
↓ 2 callers
Function
parseProviderModelSuffix
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 callers
Function
parseProxyURL
(rawProxyURL string, allowLegacySuffix bool)
common/proxy_url.go:23
↓ 2 callers
Function
parsePruneObjectsDraft
(valueText: string)
web/src/features/channels/components/dialogs/param-override-editor-dialog.tsx:789
↓ 2 callers
Function
parseRequestModelName
(name string, opts *convmeta.Options)
relay/helper/reasoning_suffix.go:162
↓ 2 callers
Function
parseResponsesWSEnvelope
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 callers
Function
parseRoutePattern
(routePath string)
router/plugin-router.go:629
↓ 2 callers
Function
parseSidebarConfig
* Parse backend SidebarModulesAdmin configuration
web/src/hooks/use-sidebar-config.ts:128
↓ 2 callers
Function
parseStatusCodeKey
(rawKey: string)
web/src/features/channels/lib/status-code-risk-guard.ts:21
↓ 2 callers
Function
parseStatusCodeMappingTarget
(rawValue: unknown)
web/src/features/channels/lib/status-code-risk-guard.ts:27
↓ 2 callers
Function
parseStatusFilter
(statusParam string)
controller/channel.go:62
↓ 2 callers
Function
parseStreamMessageUpdates
(data: string)
web/src/features/playground/lib/streaming/stream-utils.ts:67
↓ 2 callers
Function
parseStringItems
(items: PrefillGroup['items'])
web/src/features/models/components/prefill-group-shared.ts:69
↓ 2 callers
Function
parseTaskArtifactsResponse
( response: TaskArtifactsResponse )
web/src/features/usage-logs/lib/task-artifacts.ts:163
↓ 2 callers
Function
parseTelegramBindCallback
( search: TelegramBindCallbackSearch )
web/src/features/auth/lib/oauth-bind-window.ts:56
↓ 2 callers
Function
parseToUnicode
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 callers
Function
parseToolPrice
(value: string)
web/src/features/system-settings/models/tool-price-settings.tsx:73
↓ 2 callers
Function
parseUserSidebarConfig
* 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 callers
Function
parseVolcengineAuth
(apiKey string)
relay/channel/volcengine/tts.go:110
↓ 2 callers
Function
parseWaffoPayMethods
(value: string)
web/src/features/system-settings/integrations/payment-settings-section.tsx:221
↓ 2 callers
Function
patchGeminiZeroCompletionUsage
patchGeminiZeroCompletionUsage estimates completion tokens locally when upstream usageMetadata was billable but reported zero completion tokens even t
relay/channel/gemini/relay-gemini.go:50
↓ 2 callers
Function
patchSource
Reuse untouched source spans instead of rewriting whitespace, labels or price order.
web/src/features/pricing/lib/billing-expression/visual.ts:232
↓ 2 callers
Method
pickShard
(origin string)
service/http_transport_sharded.go:47
↓ 2 callers
Function
pinTaskPluginFormModel
pinTaskPluginFormModel sets the model field of a form body to the model the endpoint was pinned to.
middleware/task_plugin.go:1036
↓ 2 callers
Function
pinnedCandidatePlugins
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 callers
Function
pinnedEndpointCandidateForChannel
pinnedEndpointCandidateForChannel returns the index, among pinnedCandidatePlugins, of the candidate that executes on channel.
middleware/distributor.go:225
↓ 2 callers
Function
plainObject
(value)
plugins/tasks/hailuo/plugin.js:200
↓ 2 callers
Function
planChannelPriorityMove
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 callers
Function
pluginExpressionsEqual
( left: Record<string, string> = {}, right: Record<string, string> = {} )
web/src/features/pricing/lib/plugin-pricing.ts:108
↓ 2 callers
Function
pluginLoginFieldsSchema
(fields: PluginLoginField[])
web/src/features/channels/lib/plugin-login.ts:266
↓ 2 callers
Function
pluginProtocolTickDelay
(taskID string, tick uint64, base, jitter time.Duration)
controller/plugin_protocol.go:1198
↓ 2 callers
Function
pluginReportsBalance
pluginReportsBalance reports whether a plugin exports the balance hooks.
controller/channel_balance.go:80
↓ 2 callers
Function
pluginResponseMap
(response *dto.PluginResponsesResponse)
relay/plugin_protocol.go:842
↓ 2 callers
Function
pluginTokenKey
(plugin *jsplugin.LoadedPlugin, channelID int, line string, config json.RawMessage, baseURL string)
service/provider_plugin.go:313
↓ 2 callers
Function
pluginUsageSchema
( model: PricingModel | undefined, pluginKey: string | undefined )
web/src/features/pricing/lib/plugin-pricing.ts:119
↓ 2 callers
Function
pngUp
pngUp encodes data as PNG Up rows of columns bytes, the last padded with zeros.
relay/requestplugin/pdf_test.go:132
↓ 2 callers
Function
policyEffect
(policy []string)
service/authz/resolver.go:78
↓ 2 callers
Function
popTaskArtifactAccessQuery
(request *http.Request)
middleware/task_artifact_access.go:134
↓ 2 callers
Function
positiveUserSessionEnv
(name string, fallback int)
common/init.go:177
↓ 2 callers
Function
postConsumeQuotaWithResult
(relayInfo *relaycommon.RelayInfo, quota int, preConsumedQuota int, sendEmail bool)
service/quota.go:440
↓ 2 callers
Function
postTelegramBindResult
( callback: TelegramBindCallback, opener: Pick<Window, 'closed' | 'postMessage'> | null, targetOrigin: s
web/src/features/auth/lib/oauth-bind-window.ts:79
↓ 2 callers
Method
prefix
()
pkg/cachex/namespace.go:8
↓ 2 callers
Method
prepare
(candidate, current *jsplugin.RoutingGeneration)
router/plugin-router.go:160
↓ 2 callers
Method
prepareForInsert
(tx *gorm.DB)
model/user.go:624
↓ 2 callers
Method
prepareKey
prepareKey binds the plugin and its route, refreshes a credential that expires soon and exchanges a static key for a token when the plugin exports exc
relay/channel/providerplugin/adaptor.go:174
↓ 2 callers
Function
previewModelPricing
(request: { model_name: string pricing: PricingValues })
web/src/features/model-pricing/api.ts:106
↓ 2 callers
Function
pricingAdjustmentRows
( details: LegacyBillingDetails | undefined, t: (key: string) => string )
web/src/features/system-settings/models/model-pricing-core.ts:424
↓ 2 callers
Function
pricingByModelName
(pricings []model.Pricing)
controller/model_list_test.go:168
↓ 2 callers
Function
pricingEndpointTypesFromPricing
(pricings []Pricing)
model/pricing_endpoint_test.go:73
↓ 2 callers
Function
pricingUsesRelayRoutes
pricingUsesRelayRoutes reports a channel type whose endpoints come from its relay routes: Advanced Custom settings, or a task plugin's meta.relay.
model/pricing.go:145
↓ 2 callers
Function
pricingValuesByModel
( options: PricingOptions )
web/src/features/model-pricing/pricing.ts:332
↓ 2 callers
Function
processFormMap
(formMap map[string]any, v any)
common/gin.go:406
↓ 2 callers
Function
processUserChartData
( data: QuotaDataItem[], timeGranularity: TimeGranularity = 'day', t?: TFunction, limit = 10 )
web/src/features/dashboard/lib/charts.ts:709
↓ 2 callers
Function
productForReqKey
(reqKey)
plugins/tasks/jimeng/plugin.js:194
↓ 2 callers
Function
promptField
(source, required)
plugins/tasks/xai/plugin.js:173
↓ 2 callers
Function
proofHeaders
(proofToken?: string)
web/src/features/auth/passkey/api.ts:28
↓ 2 callers
Method
protectedHeader
protectedHeader reports the headers a header.patch effect must not touch besides requestpatch.IsProtectedHeader: the route auth header and the credent
relay/channel/providerplugin/adaptor.go:672
↓ 2 callers
Function
providerChannelServes
providerChannelServes reports a task plugin channel whose plugin relays requestPath for modelName through its relay routes, as an Advanced Custom chan
model/channel_constraint.go:154
↓ 2 callers
Function
providerTestEndpoint
providerTestEndpoint returns the endpoint a task plugin channel test uses for model instead of requestPath, which meta's relay routes that are on for
controller/channel-test.go:73
↓ 2 callers
Function
ptrValue
(value T)
service/convert_test.go:112
↓ 2 callers
Function
publishAuthSessionEvent
( kind: AuthSessionSyncEvent['kind'], sid: string )
web/src/lib/auth-session-sync.ts:53
↓ 2 callers
Function
publishCreatedUserSession
(session *UserSession, cacheDeadline time.Time)
model/user_session.go:166
↓ 2 callers
Function
publishRows
(nextRows: TaskMatrixRow[])
web/src/features/system-settings/models/task-usage-pricing-editor.tsx:346
↓ 2 callers
Function
push
(text, path)
plugins/tasks/content-moderation/plugin.js:168
↓ 2 callers
Function
pushText
(fields, path, value)
plugins/tasks/request-redact/plugin.js:226
↓ 2 callers
Method
query
()
model/system_task.go:202
↓ 2 callers
Method
queryCredentials
queryCredentials returns what the parse hooks of a poll response receive: the key line the poll sent, which on a channel with credentials is the submi
relay/channel/task/jsplugin/adaptor.go:1348
↓ 2 callers
Function
queryMember
(object map[string]any, name, subject string)
pluginkit/provider.go:1791
↓ 2 callers
Function
queueSearchValue
(value: string)
web/src/components/data-table/toolbar/toolbar.tsx:224
↓ 2 callers
Function
quotaNotifyContent
quotaNotifyContent renders a low-quota notice in the user's saved language. Bark and Gotify get plain text; email and webhook get HTML with the top-up
service/quota.go:556
← previous
next →
4,501–4,600 of 15,592, ranked by callers