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
parseUpstreamUpdateMeta
(settings: unknown)
web/src/features/channels/lib/upstream-update-utils.ts:27
↓ 1 callers
Function
parseValue
(raw json.RawMessage)
pkg/requestpatch/patch.go:416
↓ 1 callers
Function
parseValue
* Parse a property value from string to appropriate type * @param raw - Raw string value * @returns Parsed value (boolean, number, or string)
web/src/lib/lobe-icon.tsx:91
↓ 1 callers
Function
parseVersion
(fields: Record<string, unknown>)
web/src/features/task-plugins/__tests__/marketplace.test.ts:835
↓ 1 callers
Function
parseWaffoPayMethods
(data: unknown)
web/src/features/wallet/hooks/use-topup-info.ts:86
↓ 1 callers
Method
passThrough
passThrough hands the rest of a stream to the client as the handler writes it, once every instance let the answer pass with nothing masked: the events
relay/requestplugin/reply.go:1123
↓ 1 callers
Method
passed
passed reports an answer every instance let pass: no hook is called for the rest of it.
relay/requestplugin/reply.go:343
↓ 1 callers
Function
passwordProof
(scope: string)
web/src/features/security/components/__tests__/access-token-create-dialog.test.tsx:78
↓ 1 callers
Function
passwordProof
(scope: string)
web/src/features/security/components/__tests__/access-tokens-card.test.tsx:92
↓ 1 callers
Function
pasted
(text: string, image: string)
web/src/features/task-plugins/__tests__/request-plugin-try-panel.test.tsx:274
↓ 1 callers
Function
pastedCallbackParams
pastedCallbackParams reads the query of the address an administrator pasted after the vendor redirected the browser.
service/provider_plugin_login.go:375
↓ 1 callers
Function
patchPlanStatus
( id: number, enabled: boolean )
web/src/features/subscriptions/api.ts:59
↓ 1 callers
Function
pathContainsFlowLink
( path: FlowPathNode[], link: FlowLinkSelection )
web/src/features/dashboard/lib/flow.ts:637
↓ 1 callers
Function
pathContainsFlowNode
( path: FlowPathNode[], filter: FlowNodeFilter )
web/src/features/dashboard/lib/flow.ts:630
↓ 1 callers
Function
pathFor
(action)
plugins/tasks/vidu/plugin.js:323
↓ 1 callers
Function
pathFor
(action)
plugins/tasks/kling/plugin.js:169
↓ 1 callers
Function
pathHasParameter
(routePath, name string)
pkg/jsplugin/routing.go:973
↓ 1 callers
Function
pathLinkKey
(source: FlowPathNode, target: FlowPathNode)
web/src/features/dashboard/lib/flow.ts:511
↓ 1 callers
Function
pathMatchesNodeFilters
( path: FlowPathNode[], filters: Map<FlowNodeKind, Set<string>> )
web/src/features/dashboard/lib/flow.ts:362
↓ 1 callers
Method
pause
pause stops the clock while a host function waits. It reports false when the watchdog already fired: its interrupt is then ending the call, and the ho
pkg/jsplugin/engine.go:852
↓ 1 callers
Function
paySubscriptionBalance
( data: SubscriptionPayRequest )
web/src/features/subscriptions/api.ts:158
↓ 1 callers
Function
paySubscriptionCreem
( data: SubscriptionPayRequest )
web/src/features/subscriptions/api.ts:144
↓ 1 callers
Function
paySubscriptionEpay
( data: SubscriptionPayRequest & { payment_method: string } )
web/src/features/subscriptions/api.ts:194
↓ 1 callers
Function
paySubscriptionStripe
( data: SubscriptionPayRequest )
web/src/features/subscriptions/api.ts:137
↓ 1 callers
Function
paySubscriptionWaffoPancake
( data: SubscriptionPayRequest )
web/src/features/subscriptions/api.ts:151
↓ 1 callers
Function
pdfColumnsBounded
pdfColumnsBounded reports whether the decode parameters of one filter, read through the library, keep the buffers its PNG predictor sizes by Columns w
relay/requestplugin/pdf.go:219
↓ 1 callers
Function
pemToDER
(pem: string)
web/src/features/auth/lib/password-encryption.ts:176
↓ 1 callers
Function
pendingLoginResponse
()
web/src/features/auth/otp/__tests__/login-verification.test.tsx:117
↓ 1 callers
Function
pendingResponse
()
web/src/features/auth/secure-verification/__tests__/verification-flow.test.tsx:92
↓ 1 callers
Function
performChannelTests
performChannelTests runs channel health checks with the configured bounded concurrency and honors cancellation when a system-task runner loses its lea
controller/channel-test.go:1111
↓ 1 callers
Function
performCheckin
( turnstileToken?: string )
web/src/features/profile/api.ts:299
↓ 1 callers
Function
performFrontendRequest
(router http.Handler, method, target, acceptEncoding string)
middleware/frontend_static_test.go:33
↓ 1 callers
Function
performRefreshWithBrowserLock
( refreshEpoch: number )
web/src/lib/auth-session.ts:317
↓ 1 callers
Function
permission
(container: HTMLElement, resource: string, action: string)
web/src/features/security/components/__tests__/access-token-create-dialog.test.tsx:101
↓ 1 callers
Function
permission
(container: HTMLElement, action: string)
web/src/features/security/components/__tests__/access-tokens-card.test.tsx:198
↓ 1 callers
Function
persistTokenQuotaDelta
(id int, delta int)
model/quota_reserve.go:122
↓ 1 callers
Function
persistUserQuotaDelta
persistUserQuotaDelta 把已在缓存侧预扣成功的增量落库;批量模式下入队, 直写模式下要求行存在(用户已删除时报错,交由调用方补偿缓存)。
model/quota_reserve.go:107
↓ 1 callers
Function
pickTelegramAuthorization
( value: unknown )
web/src/features/auth/lib/telegram-login.ts:40
↓ 1 callers
Method
ping
()
relay/helper/common.go:81
↓ 1 callers
Function
pinnedChannelUnavailable
Origin-task pins report a fixed code so task polling can tell a retired channel from a malformed request.
service/channel_select.go:406
↓ 1 callers
Function
plainObject
(value)
plugins/tasks/google/plugin.js:53
↓ 1 callers
Function
plainObject
(value)
plugins/tasks/vidu/plugin.js:162
↓ 1 callers
Function
plan
(enabled: boolean)
web/src/features/usage-logs/lib/__tests__/billing-source.test.ts:29
↓ 1 callers
Function
planToFormValues
(plan: SubscriptionPlan)
web/src/features/subscriptions/lib/plan-form.ts:80
↓ 1 callers
Function
plugin
(overrides?: Partial<MarketplacePlugin>)
web/src/features/task-plugins/__tests__/marketplace-plugin-logo.test.tsx:33
↓ 1 callers
Function
plugin
(hooks: string[], optional = false)
web/src/features/task-plugins/__tests__/request-plugin-run-line.test.tsx:28
↓ 1 callers
Function
pluginAccountLoggedIn
pluginAccountLoggedIn reports whether a credential of the plugin on any channel holds accountID. A failed read counts as logged in, so a doubt never r
service/provider_plugin_login.go:600
↓ 1 callers
Function
pluginChannel
( pluginKey: string, balanceDetail?: ChannelBalanceDetail | null )
web/src/features/channels/components/__tests__/channel-balance-cell.test.tsx:41
↓ 1 callers
Function
pluginForm
(values: Record<string, unknown> = {})
web/src/features/channels/lib/__tests__/task-plugin-channel-settings.test.ts:31
↓ 1 callers
Function
pluginIcon
(pluginKey: string)
web/src/features/channels/components/drawers/channel-request-plugins-field.tsx:63
↓ 1 callers
Function
pluginKeyIndex
pluginKeyIndex is the index of the key line key among the channel's keys, 0 when it is not one of them.
controller/channel_upstream_update.go:563
↓ 1 callers
Function
pluginLoginReducer
( state: PluginLoginState, event: PluginLoginEvent )
web/src/features/channels/lib/plugin-login.ts:138
↓ 1 callers
Function
pluginOutputText
(raw json.RawMessage)
relay/plugin_protocol.go:1034
↓ 1 callers
Function
pluginRouteRecovery
()
router/plugin-router.go:402
↓ 1 callers
Function
pluginValue
pluginValue returns a hook argument in the shapes moejs converts: nil, booleans, numbers, strings, JSON-shaped maps and slices and engine values. A Ra
pkg/jsplugin/engine.go:664
↓ 1 callers
Function
pointer
(path, key)
plugins/tasks/param-override/plugin.js:83
↓ 1 callers
Function
pointerGeometry
(cardColumns = 3)
web/src/features/channels/components/__tests__/priority-order.test.tsx:371
↓ 1 callers
Function
pollInterval
(value: number | undefined, fallback: number)
web/src/features/channels/lib/plugin-login.ts:104
↓ 1 callers
Function
pollTaskBatch
pollTaskBatch sends one batch query for tasks and applies the results it returns for them.
service/task_polling.go:350
↓ 1 callers
Function
populateResponsesCloneFixture
Populate all mutable fields so newly added request fields also exercise the retry-isolation contract, rather than silently escaping a hand-written lis
relay/request_clone_test.go:93
↓ 1 callers
Function
popupWindow
()
web/src/features/auth/lib/__tests__/oauth-popup.test.ts:26
↓ 1 callers
Function
positiveTaskArtifactLimit
(env string, defaultValue int)
setting/system_setting/task_artifact.go:26
↓ 1 callers
Function
postCalls
(url: string)
web/src/features/security/components/__tests__/access-token-create-dialog.test.tsx:107
↓ 1 callers
Function
postCommunityPluginInstall
(installsURL string, body []byte)
controller/task_plugin.go:90
↓ 1 callers
Method
preConsume
--------------------------------------------------------------------------- PreConsume — 统一预扣费入口(含信任额度旁路) --------------------------------------------
service/billing_session.go:208
↓ 1 callers
Function
preConsumeUsage
(ctx *gin.Context, info *relaycommon.RelayInfo, usage *dto.RealtimeUsage, totalUsage *dto.RealtimeUsage)
relay/channel/openai/relay_realtime.go:281
↓ 1 callers
Function
preloadImage
Preload an image, returning a cleanup that detaches the pending handlers.
web/src/hooks/use-system-config.ts:33
↓ 1 callers
Method
prepare
prepare runs prepareRequest and applies its effects to the body and, when the request is sent, the headers: all of them or none. It returns the path o
relay/channel/providerplugin/adaptor.go:688
↓ 1 callers
Function
prepareCredentialCreationOptions
( payload: any )
web/src/lib/passkey.ts:107
↓ 1 callers
Function
prepareCredentialRequestOptions
( payload: any )
web/src/lib/passkey.ts:153
↓ 1 callers
Method
preparePartialFunctionCalls
(response *dto.GeminiChatResponse)
relaykit/relayconvert/internal/gemini_chat/to_oai_chat_resp.go:473
↓ 1 callers
Function
prepareResponseStreamInfo
(info convmeta.Meta, spec ResponseConverterSpec)
relaykit/relayconvert/response_registry.go:633
↓ 1 callers
Method
present
(task *model.Task, presenter string)
controller/task_plugin_debug.go:229
↓ 1 callers
Method
presentError
(taskErr *dto.TaskError)
controller/task_plugin_debug.go:243
↓ 1 callers
Function
previewUpstreamDiff
(params?: { locale?: SyncLocale source?: SyncSource })
web/src/features/models/api.ts:212
↓ 1 callers
Function
previewVendorOperation
( operation: VendorOperation )
web/src/features/models/vendor-api.ts:105
↓ 1 callers
Function
previousRankingTimeRange
(config rankingPeriodConfig, currentStart int64)
service/rankings.go:231
↓ 1 callers
Function
pricingByModelName
(pricings []model.Pricing)
controller/model_list_test.go:166
↓ 1 callers
Function
pricingIssue
( modelName: string, reason: ModelPricingIssue['reason'] = 'unconfigured' )
web/src/features/task-plugins/__tests__/plugins-table.test.tsx:299
↓ 1 callers
Function
pricingModel
(overrides: Partial<PricingModel> = {})
web/src/features/pricing/__tests__/model-cards.test.tsx:43
↓ 1 callers
Function
pricingModel
(overrides: Partial<PricingModel>)
web/src/features/pricing/__tests__/dynamic-price.test.ts:37
↓ 1 callers
Function
pricingModel
( modelName: string, overrides: Partial<PricingModel> )
web/src/features/pricing/__tests__/sorting.test.ts:25
↓ 1 callers
Method
primary
()
web/src/features/pricing/lib/billing-expression/parser.ts:273
↓ 1 callers
Method
prime
prime converts upstream events until the plugin returns its first output, returns an error or the stream ends. The output stays pending for Read. Like
relay/channel/providerplugin/stream.go:138
↓ 1 callers
Function
printHelp
()
common/init.go:25
↓ 1 callers
Function
processCompletionsStreamResponse
(streamResponse dto.CompletionsStreamResponse, responseTextBuilder *strings.Builder)
relay/channel/openai/helper.go:159
↓ 1 callers
Function
processStreamingContent
( message: Message, contentChunk?: string )
web/src/features/playground/lib/message/message-streaming-utils.ts:40
↓ 1 callers
Function
processTokenData
(info *relaycommon.RelayInfo, data string, responseTextBuilder *strings.Builder, toolCount *int)
relay/channel/openai/helper.go:140
↓ 1 callers
Function
processType
(value: unknown)
web/src/features/usage-logs/lib/utils.ts:167
↓ 1 callers
Method
progressEvent
()
relay/plugin_protocol.go:974
↓ 1 callers
Function
progressOf
(status: string, processed: number, error = '')
web/src/features/channels/lib/__tests__/update-all-balances.test.ts:60
↓ 1 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
↓ 1 callers
Function
providerConverterPath
providerConverterPath reports whether the convert hooks can serve the client endpoint of route: every relayed one but realtime, which is a WebSocket s
pkg/jsplugin/registry.go:1933
↓ 1 callers
Function
pruneObjects
pruneObjects 在原 Doc 上删除 path(为空时为整个请求体)下满足条件的对象, 其余内容保持原样。
relay/common/override.go:1933
↓ 1 callers
Function
ptr
(value T)
relay/common/relay_info_test.go:398
↓ 1 callers
Function
pullModel
()
web/src/features/channels/components/dialogs/ollama-models-dialog.tsx:227
↓ 1 callers
Function
push
(kind: TextDiffPart['kind'], text: string)
web/src/features/task-plugins/lib/text-diff.ts:54
↓ 1 callers
Function
pushSegmentedParts
(parts: string[], token: string)
web/src/components/ai-elements/response-fade.ts:88
↓ 1 callers
Function
putUpdateChannel
(t *testing.T, userID, role int, body string)
controller/channel_task_plugin_bind_test.go:168
↓ 1 callers
Function
queryPluginKeyBalance
queryPluginKeyBalance queries the balance of one key line of a task plugin channel through the channel's proxy, TLS setting and header overrides.
controller/channel_balance.go:141
← previous
next →
7,701–7,800 of 15,409, ranked by callers