MCPcopy Create free account

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

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

↓ 3 callersFunctionmustParseURL
(t *testing.T, rawURL string)
service/protected_fetch_client_test.go:60
↓ 3 callersFunctionmutateModelPricingOptions
(mutate func(*gorm.DB, map[string]map[string]any) error)
model/model_pricing_config.go:704
↓ 3 callersFunctionnarrowAllowedFunctionChoice
(choice *Choice, target types.RelayFormat)
relaykit/relayconvert/internal/toolconv/encode.go:1544
↓ 3 callersFunctionnearlyEqual
(a, b float64)
controller/ratio_sync.go:48
↓ 3 callersFunctionnewAccessTokenItem
(token *model.UserAccessToken)
controller/access_token.go:38
↓ 3 callersFunctionnewAwsStreamInput
()
relay/channel/aws/relay_aws_test.go:113
↓ 3 callersFunctionnewAwsTestClient
(httpClient bedrockruntime.HTTPClient)
relay/channel/aws/relay_aws_test.go:73
↓ 3 callersFunctionnewDirectHTTPClient
(policy HTTPTransportPolicy, tlsConfig *tls.Config)
service/http_client.go:371
↓ 3 callersFunctionnewDisconnectingImageStream
(t *testing.T, sseBody, disconnectAfter string)
relay/channel/openai/image_stream_test.go:314
↓ 3 callersFunctionnewDiskStorage
(data []byte, cachePath string)
common/body_storage.go:153
↓ 3 callersFunctionnewGeminiResponsesRelayInfo
(isStream bool)
relay/channel/gemini/relay_responses_test.go:170
↓ 3 callersFunctionnewGormLogger
(w io.Writer)
model/gorm_logger.go:32
↓ 3 callersFunctionnewHTTPClientFromPolicy
(policy HTTPTransportPolicy, proxyURL *url.URL, tlsConfig *tls.Config)
service/http_client.go:343
↓ 3 callersMethodnewMantleRequest
Mantle uses native Messages JSON and SSE, not the InvokeModel envelope. Sign the final payload and headers, including administrator overrides.
relay/channel/aws/mantle.go:62
↓ 3 callersFunctionnewPDFWriter
()
relay/requestplugin/pdf_test.go:24
↓ 3 callersFunctionnewProxyURLConfig
(parsedURL *url.URL)
service/http_client.go:174
↓ 3 callersFunctionnewRequestAutoGroupsContext
()
service/group_auto_groups_test.go:35
↓ 3 callersFunctionnewRequestPluginConfigRow
( values: RequestPluginConfigDraft )
web/src/features/task-plugins/lib/request-plugins.ts:192
↓ 3 callersFunctionnewRule
(ptype string, policy []string)
service/authz/adapter.go:118
↓ 3 callersFunctionnewSMTPClient
(addr string)
common/email.go:44
↓ 3 callersFunctionnewTestWebSocketPair
(t *testing.T)
relay/responses_websocket_test.go:587
↓ 3 callersFunctionnewTokenAutoGroupsContext
()
middleware/token_auto_groups_context_test.go:15
↓ 3 callersMethodnextIndex
(ref chatToResponsesOutputRef)
relaykit/relayconvert/internal/oai_chat/to_oai_responses_stream_resp.go:818
↓ 3 callersFunctionnextLocalId
()
web/src/features/channels/components/dialogs/param-override-editor-dialog.tsx:456
↓ 3 callersFunctionnormalizeAdminPermissions
( value: AdminPermissionMatrix | null | undefined, catalog: PermissionCatalog )
web/src/lib/admin-permissions.ts:98
↓ 3 callersFunctionnormalizeAdvancedCustomRouteModels
(models []string)
relaykit/dto/channel_settings.go:635
↓ 3 callersFunctionnormalizeCatalogItems
(items?: readonly string[])
web/src/features/pricing/components/model-details.tsx:240
↓ 3 callersFunctionnormalizeGeminiModality
(modality string)
relaykit/dto/usage_merge.go:269
↓ 3 callersFunctionnormalizeHttpProtocol
( value: string | undefined | null )
web/src/features/channels/lib/channel-form.ts:86
↓ 3 callersFunctionnormalizeInterfaceLanguage
(value?: string | null)
web/src/i18n/languages.ts:32
↓ 3 callersFunctionnormalizeKeySource
(src: Partial<KeySource>)
web/src/features/system-settings/general/channel-affinity/rule-editor-dialog.tsx:99
↓ 3 callersFunctionnormalizeLineEndings
(value: string)
web/src/features/system-settings/request-policies/channel-health-section.tsx:129
↓ 3 callersFunctionnormalizeLocale
(locale string)
controller/model_sync.go:30
↓ 3 callersFunctionnormalizeOpenAIUsage
normalizeOpenAIUsage maps the OpenAI Images usage shape (input_tokens / output_tokens / input_tokens_details / output_tokens_details) onto the canonic
relay/channel/openai/relay_image.go:101
↓ 3 callersFunctionnormalizeRatio
(value: unknown)
web/src/features/system-settings/models/group-ratio-visual-editor.tsx:131
↓ 3 callersFunctionnormalizeResetCreditStatus
(value: unknown)
web/src/features/channels/components/dialogs/codex-usage-dialog.tsx:254
↓ 3 callersFunctionnormalizeVisualTier
(tier: Partial<VisualTier> = {})
web/src/features/pricing/lib/tier-expr.ts:74
↓ 3 callersMethodobserve
(response *dto.GeminiChatResponse)
relay/channel/gemini/relay-gemini.go:203
↓ 3 callersFunctionomniVideo
(body)
plugins/tasks/vertex-ai/plugin.js:218
↓ 3 callersFunctiononSubmit
(values: OAuthFormValues)
web/src/features/system-settings/auth/oauth-section.tsx:299
↓ 3 callersFunctiononePagePDF
onePagePDF is a PDF whose one page shows text in Helvetica.
plugins/request_plugins_test.go:1151
↓ 3 callersFunctionopenAIBillingUsageFromUsage
(usage *dto.Usage)
relaykit/relayconvert/internal/oai_chat/to_gemini_chat_resp.go:567
↓ 3 callersFunctionopenOAuthPopup
( options: OAuthPopupOptions )
web/src/features/auth/lib/oauth-popup.ts:51
↓ 3 callersFunctionoptionalString
(s string)
service/waffo_pancake.go:150
↓ 3 callersFunctionoutboundResolution
(req, model)
plugins/tasks/hailuo/plugin.js:248
↓ 3 callersMethodpages
pages writes objects 1 to 3: the catalog, the page tree and one page whose contents are object 4 and whose font F1 is object 5.
relay/requestplugin/pdf_test.go:85
↓ 3 callersFunctionparseAuthClaims
(raw, expectedUse string, key []byte)
service/auth_token.go:183
↓ 3 callersFunctionparseCodexOAuthKey
(raw string)
service/codex_credential_refresh.go:31
↓ 3 callersFunctionparseConditionValue
( condition: Pick<ParamOverrideCondition, 'mode' | 'value_text'> )
web/src/features/channels/components/dialogs/param-override-editor-dialog.tsx:478
↓ 3 callersFunctionparseGroupsList
(groups: string)
web/src/features/channels/lib/channel-utils.ts:240
↓ 3 callersFunctionparseMediaRef
parseMediaRef returns N of "[media:N]".
relay/requestplugin/attachments.go:299
↓ 3 callersFunctionparseNumberDraft
(value: string)
web/src/features/system-settings/models/draft-number-input.tsx:38
↓ 3 callersFunctionparseOpenAIModelIDs
(body []byte)
controller/channel_upstream_update.go:268
↓ 3 callersFunctionparsePluginMetaPreview
(source: string)
web/src/features/task-plugins/lib/plugin-meta-preview.ts:340
↓ 3 callersFunctionparseSidebarModulesAdmin
( value: string | null | undefined )
web/src/features/system-settings/maintenance/config.ts:185
↓ 3 callersFunctionparseSystemVersion
( value: string | null | undefined )
web/src/features/system-update/releases.ts:47
↓ 3 callersFunctionparseThinkTags
(content: string)
web/src/features/playground/lib/message/message-reasoning-utils.ts:29
↓ 3 callersFunctionparseVisualBillingDocument
( source: string )
web/src/features/pricing/lib/billing-expression/visual.ts:219
↓ 3 callersFunctionpasskeyDomainAssertion
Reuse the existing software authenticator, replacing the domain-bound bytes and recomputing the signature exactly as a browser/authenticator would.
controller/passkey_test.go:111
↓ 3 callersFunctionpatchClaudeMessageDeltaUsageData
(data string, usage *dto.ClaudeUsage)
relay/channel/claude/relay-claude.go:81
↓ 3 callersFunctionpermissionMatrixToScopes
( matrix: AdminPermissionMatrix )
web/src/lib/admin-permissions.ts:119
↓ 3 callersFunctionplainObject
plainObject builds a JavaScript object, not a host map, so a hook may return it or keep it.
pluginkit/media.go:79
↓ 3 callersFunctionpluginIconMediaType
( fileName: string )
web/src/features/task-plugins/lib/plugin-icon-file.ts:31
↓ 3 callersFunctionpluginIconUrl
(key: string, version?: string)
web/src/features/task-plugins/lib/plugin-icon.ts:29
↓ 3 callersFunctionpluginJSONDepth
(raw json.RawMessage)
relay/plugin_protocol.go:328
↓ 3 callersFunctionpluginLoginChannelID
(c *gin.Context)
controller/provider_plugin.go:42
↓ 3 callersFunctionpluginLoginIdentity
pluginLoginIdentity is the administrator session a login flow belongs to: a browser session, or a scoped access token with its own session.
controller/provider_plugin.go:33
↓ 3 callersFunctionpluginName
pluginName is the plugin name a log shows, in every locale it has.
relay/requestplugin/record.go:24
↓ 3 callersFunctionpositiveInt
(value any)
relay/channel/task/jsplugin/adaptor.go:1978
↓ 3 callersFunctionpositiveIntegerSchema
(message: string)
web/src/features/system-settings/utils/numeric-field.ts:27
↓ 3 callersFunctionpostTaskPluginUpload
(t *testing.T, payload map[string]any)
controller/task_plugin_test.go:1467
↓ 3 callersFunctionpreviewPriorityDrop
( channels: Channel[], drop: PriorityDrop, desc: boolean )
web/src/features/channels/lib/channel-priority-order.ts:44
↓ 3 callersFunctionpriceLineKey
(group: PriceGroup, line: PriceLine)
web/src/features/system-settings/models/price-change-diff.tsx:146
↓ 3 callersFunctionpricingDisplayFallbackKey
( expression: string, schema: BillingUsageSchema | null | undefined )
web/src/features/pricing/lib/task-price-display.ts:118
↓ 3 callersFunctionpricingRows
(options: PricingOptions)
web/src/features/model-pricing/pricing.ts:168
↓ 3 callersFunctionprocessChartData
( data: QuotaDataItem[], timeGranularity: TimeGranularity = 'day', t?: TFunction, chartCornerRadius?:
web/src/features/dashboard/lib/charts.ts:70
↓ 3 callersFunctionpropertyName
(node)
web/scripts/oxlint/intl-locale.mjs:42
↓ 3 callersFunctionpublishCommittedUserAuthVersion
publishCommittedUserAuthVersion records the durable lower bound used to reject an arbitrarily delayed cache fill after a committed security change. It
model/user_auth_cache.go:160
↓ 3 callersFunctionpushJSON
(texts, value)
plugins/tasks/request-filter/plugin.js:139
↓ 3 callersFunctionquotaReminderDue
quotaReminderDue reports whether a charge that moved a balance (wallet or subscription) from before to after earns a low-balance reminder. The site an
service/quota.go:539
↓ 3 callersFunctionrandomInRange
( rand: () => number, min: number, max: number )
web/src/features/pricing/lib/seed.ts:48
↓ 3 callersFunctionrankingShare
(value int64, total int64)
service/rankings.go:556
↓ 3 callersFunctionrawMapValue
(value map[string]any, key string)
relaykit/relayconvert/internal/toolconv/decode.go:1114
↓ 3 callersFunctionrawOrNull
(raw json.RawMessage)
pluginkit/provider.go:288
↓ 3 callersFunctionread
(start, length)
plugins/tasks/xai/plugin.js:615
↓ 3 callersFunctionreadCgroupUint
readCgroupUint 读取只含一个无符号整数的 cgroup 文件。
common/container_usage.go:150
↓ 3 callersFunctionreadConstInitializer
(variable: SyntaxNode)
web/src/features/task-plugins/lib/plugin-meta-preview.ts:77
↓ 3 callersFunctionreadModelPricingMaps
(db *gorm.DB)
model/model_pricing_config.go:99
↓ 3 callersFunctionreadTokenTierChain
(node: ExpressionNode)
web/src/features/pricing/lib/billing-expression/display.ts:185
↓ 3 callersMethodreader
()
relay/requestplugin/attachments.go:197
↓ 3 callersFunctionrealtimeDone
realtimeDone is the response.done of resp_1 with one message item.
relay/requestplugin/socket_test.go:89
↓ 3 callersFunctionreasoningDiagnostic
reasoningDiagnostic describes a best-effort resolution between reasoning controls that is not tied to a single provider's field layout. The target for
relaykit/relayconvert/reasoning/intent.go:140
↓ 3 callersMethodreasoningID
()
relaykit/relayconvert/internal/oai_chat/to_oai_responses_stream_resp.go:856
↓ 3 callersFunctionrecalcQuotaFromRatios
recalcQuotaFromRatios 根据 adjustedRatios 重新计算 quota。 公式: baseQuota × ∏(ratio) — 其中 baseQuota 是不含 OtherRatios 的基础额度。
relay/relay_task.go:449
↓ 3 callersFunctionrecordLoginAudit
recordLoginAudit 记录登录成功审计日志(对所有用户启用,仅记录成功,不记录失败)。
controller/user.go:129
↓ 3 callersFunctionrecordPollFailure
(ctx context.Context, adaptor TaskPollingAdaptor, task *model.Task, fromStatus model.TaskStatus, class string,
service/task_polling.go:863
↓ 3 callersFunctionrecordValue
(value: unknown)
web/src/features/dashboard/lib/flow.ts:1028
↓ 3 callersFunctionrefreshAuthentication
()
web/src/lib/auth-session.ts:335
↓ 3 callersMethodregister
(source string, options Options, factory bool)
pkg/jsplugin/registry.go:90
↓ 3 callersFunctionregisterChannelRoutes
(apiRouter *gin.RouterGroup)
router/channel-router.go:40
← previousnext →2,801–2,900 of 15,592, ranked by callers