MCPcopy Create free account

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

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

↓ 3 callersFunctionisAdvancedCustomPassThroughAllowed
( converter: AdvancedCustomConverter )
web/src/features/channels/lib/advanced-custom.ts:534
↓ 3 callersFunctionisAssistantMessagePending
(message: Message)
web/src/features/playground/lib/message/message-streaming-utils.ts:165
↓ 3 callersFunctionisBreakdownTierMatched
( tier: BreakdownMatchTier, tiers: readonly BreakdownMatchTier[], matchedTierLabel?: string | null, us
web/src/features/pricing/lib/breakdown-tier-match.ts:42
↓ 3 callersFunctionisClaudeHostedToolBlock
(blockType string)
relaykit/relayconvert/internal/toolconv/response.go:225
↓ 3 callersFunctionisDisplayableLogType
(type: number)
web/src/features/usage-logs/lib/utils.ts:52
↓ 3 callersFunctionisErrorMessage
(message: Message)
web/src/features/playground/lib/message/message-error-utils.ts:39
↓ 3 callersFunctionisJSONNull
(raw json.RawMessage)
relay/plugin_protocol.go:355
↓ 3 callersFunctionisLikelyHtml
(value: string)
web/src/lib/content-format.ts:28
↓ 3 callersFunctionisManageableChannelStatus
(status int)
controller/channel.go:1551
↓ 3 callersFunctionisModernHailuo
(model)
plugins/tasks/hailuo/plugin.js:199
↓ 3 callersFunctionisModuleEnabled
* Check if a module is enabled. Admin config is the first (authoritative) * layer: if admin disables a section/module it is always hidden. User confi
web/src/hooks/use-sidebar-config.ts:172
↓ 3 callersFunctionisMultimodalEmbeddingModel
Bailian multimodal embedding models (qwen3-vl-embedding, qwen2.5-vl-embedding, tongyi-embedding-vision-*, multimodal-embedding-v1) are not served in c
relay/channel/ali/embedding.go:22
↓ 3 callersFunctionisNovaModel
判断是否为Nova模型
relay/channel/aws/constants.go:159
↓ 3 callersFunctionisObject
(value)
plugins/tasks/param-override/plugin.js:61
↓ 3 callersFunctionisObject
(value)
plugins/tasks/request-redact/plugin.js:222
↓ 3 callersFunctionisPasskeySupported
()
web/src/lib/passkey.ts:242
↓ 3 callersFunctionisPlainJSONValue
isPlainJSONValue reports whether hooks can take value as is: it reaches JavaScript exactly as the codec's decoding of it would, and the engine never w
relay/channel/task/jsplugin/adaptor.go:2178
↓ 3 callersFunctionisPlainObject
(v)
web/scripts/sync-i18n.mjs:119
↓ 3 callersFunctionisResponseModelMismatch
( observation: ResponseModelObservation | undefined )
web/src/features/usage-logs/lib/response-model.ts:34
↓ 3 callersFunctionisResponsesHostedOutput
(outputType string)
relaykit/relayconvert/internal/toolconv/response.go:356
↓ 3 callersFunctionisSelfTaskMediaURL
(c *gin.Context, target *url.URL)
controller/video_proxy.go:568
↓ 3 callersFunctionisStripePayment
(paymentType: string)
web/src/features/wallet/lib/payment.ts:92
↓ 3 callersFunctionisTaskMediaFallbackLoop
(rawURL, taskID string)
controller/video_proxy.go:604
↓ 3 callersFunctionisTaskUsagePricingModel
(model: PricingModel)
web/src/features/pricing/lib/dynamic-price.ts:158
↓ 3 callersFunctionisUserDeleted
(user: UserType)
web/src/features/users/constants.ts:27
↓ 3 callersFunctionisV3ReqKey
(reqKey)
plugins/tasks/jimeng/plugin.js:181
↓ 3 callersFunctionisWaffoPancakePayment
(paymentType: string)
web/src/features/wallet/lib/payment.ts:110
↓ 3 callersFunctionisWaffoPayment
(paymentType: string)
web/src/features/wallet/lib/payment.ts:99
↓ 3 callersFunctionissueExpiredDashboardAccessToken
(t *testing.T, identity service.AuthIdentity)
middleware/auth_test.go:52
↓ 3 callersFunctionjsonScanBytes
jsonScanBytes 归一化 json 列的驱动返回值:不同驱动/协议模式下同一列可能 以 []byte 或 string 返回,静默丢弃 string 会导致字段被清零而不报错。
model/main.go:32
↓ 3 callersFunctionjsonSchemaParameters
jsonSchemaParameters returns function parameters as JSON Schema for a non-Gemini target, rewriting Gemini's OpenAPI schema subset.
relaykit/relayconvert/internal/toolconv/encode.go:230
↓ 3 callersFunctionkindFromNativeType
(toolType string)
relaykit/relayconvert/internal/toolconv/decode.go:939
↓ 3 callersFunctionkling4Duration
(value)
plugins/tasks/kling/plugin.js:232
↓ 3 callersFunctionkling4Resolution
(settings)
plugins/tasks/kling/plugin.js:301
↓ 3 callersFunctionkling4Submission
(ctx)
plugins/tasks/kling/plugin.js:321
↓ 3 callersFunctionklingMode
(mode)
plugins/tasks/kling/plugin.js:218
↓ 3 callersFunctionlegacyVideoAvailable
(task *model.Task)
controller/task.go:255
↓ 3 callersFunctionlistedProfile
(action, model)
plugins/tasks/vidu/plugin.js:181
↓ 3 callersFunctionloadMessages
()
web/src/features/playground/lib/storage/storage.ts:358
↓ 3 callersFunctionloadVertexAIPlugin
(t *testing.T)
plugins/vertex_ai_responses_test.go:518
↓ 3 callersFunctionlocationFromMap
(value map[string]any)
relaykit/relayconvert/internal/toolconv/decode.go:878
↓ 3 callersFunctionlocationMap
(location *ApproximateLocation)
relaykit/relayconvert/internal/toolconv/encode.go:1686
↓ 3 callersMethodlogFailure
(category string)
service/provider_plugin_login.go:593
↓ 3 callersFunctionlogFilterFromQuery
logFilterFromQuery reads the log search shared by the log list and the log export. Username and channel are read only for administrators.
controller/log.go:18
↓ 3 callersFunctionloginMethodFromContext
loginMethodFromContext 根据请求路径推导登录方式,用于登录审计日志。
controller/user.go:103
↓ 3 callersFunctionloginMethodLabel
(method: string, t: TFunction)
web/src/features/security/components/login-session-utils.ts:47
↓ 3 callersFunctionloginPluginOfChannel
loginPluginOfChannel returns the plugin of a task plugin channel when it exports login.
service/provider_plugin_login.go:111
↓ 3 callersFunctionlookupResponseRoute
(from types.RelayFormat, to types.RelayFormat)
relaykit/relayconvert/response_registry.go:786
↓ 3 callersFunctionmakeSnapshot
(expr string, groupRatio float64, estPrompt, estCompletion int)
service/tiered_settle_test.go:36
↓ 3 callersFunctionmanageUserProof
manageUserProof signs the root operator in and issues a password-method proof bound to one ManageUser operation.
controller/user_manage_test.go:114
↓ 3 callersFunctionmapIoNetDeployment
(d ionet.Deployment)
controller/deployment.go:138
↓ 3 callersMethodmark
(status *SystemStatus, config PerformanceMonitorConfig)
common/system_monitor.go:94
↓ 3 callersMethodmarkTerminal
(outcome ResponseOutcome, incompleteReason string)
relay/common/stream_status.go:127
↓ 3 callersFunctionmarshalGolden
(t *testing.T, value any)
relaykit/relayconvert/golden_test.go:55
↓ 3 callersFunctionmatchAdvancedCustomRouteModel
(models []string, model string)
relaykit/dto/channel_settings.go:394
↓ 3 callersMethodmatcher
(caseSensitive bool)
pkg/jsplugin/keywords.go:70
↓ 3 callersMethodmatches
matches reports whether an upstream declaration is compatible with the requested or upstream model: equal ignoring case, a dated or variant name that
relay/common/response_model.go:19
↓ 3 callersFunctionmaxConvertedBodyBytes
()
pkg/jsplugin/provider.go:1400
↓ 3 callersFunctionmaybeMarkClaudeRefusal
(c *gin.Context, info *relaycommon.RelayInfo, stopReason string)
relay/channel/claude/relay-claude.go:28
↓ 3 callersMethodmemoryUsage
memoryUsage 返回容器内存工作集相对上限的使用率(百分比)。 工作集 = 用量 - 非活跃文件缓存,与 docker stats、kubelet 一致:用量包含可回收的 页缓存,写日志或文件后会长期贴近上限,不代表内存压力。 ok=false 时调用方回退宿主机口径(同样不含缓存):内存未
common/container_usage.go:77
↓ 3 callersFunctionmergeCounters
(merged map[bucketKey]counters, key bucketKey, value counters)
pkg/perf_metrics/metrics.go:433
↓ 3 callersFunctionmetricRatio
( numerator: number | undefined, denominator: number | undefined )
web/src/features/channels/lib/inference-status.ts:60
↓ 3 callersFunctionmetricValue
( metrics: InferenceMetric[], name: string, labels: Record<string, string> = {}, mode: 'sum' | 'max' =
web/src/features/channels/lib/inference-status.ts:34
↓ 3 callersFunctionmigratePrefillGroupUniqueness
migratePrefillGroupUniqueness replaces global PostgreSQL uniqueness on name before AutoMigrate inspects the column. Match the definition rather than t
model/prefill_group_migration.go:106
↓ 3 callersFunctionmigrateTokenKeyUniqueness
migrateTokenKeyUniqueness converts known PostgreSQL UNIQUE constraints left on tokens.key into the standalone uniqueIndex represented by the current m
model/token_migration.go:129
↓ 3 callersFunctionmodelProfile
(model)
plugins/tasks/alibaba/plugin.js:471
↓ 3 callersFunctionmodelVersion
modelVersion reads the first one- or two-digit version numbers after prefix, skipping family names (claude-opus-4-7, claude-3-5-sonnet, gemini-3.7-fla
tokenkit/tokenkit.go:71
↓ 3 callersFunctionmultipartRequest
multipartRequest is a client's multipart body and its content type.
router/provider_plugin_relay_test.go:1730
↓ 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:1537
↓ 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:628
↓ 3 callersFunctionnormalizeCatalogItems
(items?: readonly string[])
web/src/features/pricing/components/model-details.tsx:239
↓ 3 callersFunctionnormalizeGeminiModality
(modality string)
relaykit/dto/usage_merge.go:265
↓ 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
← previousnext →2,701–2,800 of 15,409, ranked by callers