MCPcopy Create free account

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

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

↓ 3 callersFunctiongetUserAuthVersionFloor
(userId int)
model/user_auth_cache.go:108
↓ 3 callersFunctiongetUserGroupByIdTx
(tx *gorm.DB, userId int)
model/subscription.go:438
↓ 3 callersFunctiongetUserProfile
()
web/src/features/profile/api.ts:43
↓ 3 callersFunctiongetVendors
(params?: { p?: number page_size?: number })
web/src/features/models/api.ts:135
↓ 3 callersFunctiongetWaffoPancakePayMoney
(amount int64, group string)
controller/topup_waffo_pancake.go:56
↓ 3 callersFunctiongoldenInfo
goldenInfo mirrors the host's default converter options (new-api's model_setting defaults at the time the snapshots were recorded) so the golden files
relaykit/relayconvert/golden_test.go:98
↓ 3 callersFunctionh3APIError
(body)
plugins/tasks/hailuo/plugin.js:487
↓ 3 callersFunctionhandleModeChange
(mode: string)
web/src/features/system-settings/models/tiered-pricing-editor.tsx:408
↓ 3 callersMethodhasBillableUsage
hasBillableUsage reports whether this request should incur any charge. Claude reports cache tokens separately from ordinary input and output. A reques
service/text_quota.go:76
↓ 3 callersFunctionhasConversionDiagnosticCode
(diagnostics []types.ConversionDiagnostic, code string)
relaykit/relayconvert/tool_loss_policy_test.go:84
↓ 3 callersFunctionhasHailuoImage
(req, hasInputReferenceFile)
plugins/tasks/hailuo/plugin.js:278
↓ 3 callersFunctionhasLowerImageTier
(profile)
plugins/tasks/doubao/plugin.js:207
↓ 3 callersFunctionhasPricingValue
(value?: string)
web/src/features/system-settings/models/model-pricing-snapshots.ts:64
↓ 3 callersFunctionhasSimpleTaskPricing
(model: PricingModel)
web/src/features/pricing/lib/task-price-display.ts:87
↓ 3 callersFunctionhashRefreshSecret
(secret string)
service/auth_session.go:447
↓ 3 callersMethodhookConfig
hookConfig is ctx.config: the instance config with each keywords field read as {count, longest}, the number of keywords and the UTF-16 length of the l
pluginkit/keywords.go:219
↓ 3 callersFunctionhostedItemFailed
(item HostedResponseItem)
relaykit/relayconvert/internal/toolconv/response_artifacts.go:781
↓ 3 callersFunctionhostedKindFromClaudeCall
(blockType string, name string)
relaykit/relayconvert/internal/toolconv/response_artifacts.go:688
↓ 3 callersFunctionhostedKindFromClaudeResult
(blockType string)
relaykit/relayconvert/internal/toolconv/response_artifacts.go:704
↓ 3 callersFunctionhostedKindFromResponsesType
(outputType string)
relaykit/relayconvert/internal/toolconv/response_artifacts.go:719
↓ 3 callersFunctionimageProfile
(ctx)
plugins/tasks/doubao/plugin.js:490
↓ 3 callersFunctioninferRequestRelayFormat
(request any)
relaykit/relayconvert/request_registry.go:401
↓ 3 callersMethodingress
(c *gin.Context, format types.RelayFormat, model string)
relay/requestplugin/relay.go:74
↓ 3 callersMethodinputSchema
inputSchema is the parameters schema of the function that carries a custom tool: a single required string argument holding the raw input.
relaykit/relayconvert/internal/toolconv/encode.go:262
↓ 3 callersFunctioninsertCredentialChannel
(t *testing.T, pluginKey, baseURL, key string, multiKey bool)
relay/channel/task/jsplugin/credential_test.go:152
↓ 3 callersFunctioninsertOriginOwnedTask
(t *testing.T, taskID string, userID, channelID int, platform constant.TaskPlatform)
middleware/task_plugin_origin_task_test.go:53
↓ 3 callersFunctioninstanceKeywordsOf
instanceKeywordsOf returns the keywords of tctx's instance config for the keywords fields of its plugin.
pluginkit/keywords.go:174
↓ 3 callersFunctionintPtr
(v int)
relaykit/relayconvert/reasoning/suffix_test.go:190
↓ 3 callersFunctioninteractionsURL
(ctx, interactionId)
plugins/tasks/vertex-ai/plugin.js:141
↓ 3 callersFunctionintersectModelNames
(base []string, allowed []string)
controller/channel_upstream_update.go:137
↓ 3 callersFunctioninvalidateTokensCache
(tokens []Token)
model/token.go:506
↓ 3 callersFunctionisAdvancedCustomIncomingPathAllowed
( incomingPath: string, converter: AdvancedCustomConverter )
web/src/features/channels/lib/advanced-custom.ts:535
↓ 3 callersFunctionisAdvancedCustomPassThroughAllowed
( converter: AdvancedCustomConverter )
web/src/features/channels/lib/advanced-custom.ts:542
↓ 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:1555
↓ 3 callersFunctionisModernHailuo
(model)
plugins/tasks/hailuo/plugin.js:224
↓ 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:1894
↓ 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:588
↓ 3 callersFunctionisStripePayment
(paymentType: string)
web/src/features/wallet/lib/payment.ts:92
↓ 3 callersFunctionisTaskMediaFallbackLoop
(rawURL, taskID string)
controller/video_proxy.go:624
↓ 3 callersFunctionisTaskUsagePricingModel
(model: PricingModel)
web/src/features/pricing/lib/dynamic-price.ts:165
↓ 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:1693
↓ 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:400
↓ 3 callersMethodmatcher
(caseSensitive bool)
pluginkit/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
()
pluginkit/host.go:131
↓ 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
← previousnext →2,701–2,800 of 15,592, ranked by callers