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
↓ 3 callers
Function
getUserAuthVersionFloor
(userId int)
model/user_auth_cache.go:108
↓ 3 callers
Function
getUserGroupByIdTx
(tx *gorm.DB, userId int)
model/subscription.go:438
↓ 3 callers
Function
getUserProfile
()
web/src/features/profile/api.ts:43
↓ 3 callers
Function
getVendors
(params?: { p?: number page_size?: number })
web/src/features/models/api.ts:135
↓ 3 callers
Function
getWaffoPancakePayMoney
(amount int64, group string)
controller/topup_waffo_pancake.go:56
↓ 3 callers
Function
goldenInfo
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 callers
Function
h3APIError
(body)
plugins/tasks/hailuo/plugin.js:487
↓ 3 callers
Function
handleModeChange
(mode: string)
web/src/features/system-settings/models/tiered-pricing-editor.tsx:408
↓ 3 callers
Method
hasBillableUsage
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 callers
Function
hasConversionDiagnosticCode
(diagnostics []types.ConversionDiagnostic, code string)
relaykit/relayconvert/tool_loss_policy_test.go:84
↓ 3 callers
Function
hasHailuoImage
(req, hasInputReferenceFile)
plugins/tasks/hailuo/plugin.js:278
↓ 3 callers
Function
hasLowerImageTier
(profile)
plugins/tasks/doubao/plugin.js:207
↓ 3 callers
Function
hasPricingValue
(value?: string)
web/src/features/system-settings/models/model-pricing-snapshots.ts:64
↓ 3 callers
Function
hasSimpleTaskPricing
(model: PricingModel)
web/src/features/pricing/lib/task-price-display.ts:87
↓ 3 callers
Function
hashRefreshSecret
(secret string)
service/auth_session.go:447
↓ 3 callers
Method
hookConfig
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 callers
Function
hostedItemFailed
(item HostedResponseItem)
relaykit/relayconvert/internal/toolconv/response_artifacts.go:781
↓ 3 callers
Function
hostedKindFromClaudeCall
(blockType string, name string)
relaykit/relayconvert/internal/toolconv/response_artifacts.go:688
↓ 3 callers
Function
hostedKindFromClaudeResult
(blockType string)
relaykit/relayconvert/internal/toolconv/response_artifacts.go:704
↓ 3 callers
Function
hostedKindFromResponsesType
(outputType string)
relaykit/relayconvert/internal/toolconv/response_artifacts.go:719
↓ 3 callers
Function
imageProfile
(ctx)
plugins/tasks/doubao/plugin.js:490
↓ 3 callers
Function
inferRequestRelayFormat
(request any)
relaykit/relayconvert/request_registry.go:401
↓ 3 callers
Method
ingress
(c *gin.Context, format types.RelayFormat, model string)
relay/requestplugin/relay.go:74
↓ 3 callers
Method
inputSchema
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 callers
Function
insertCredentialChannel
(t *testing.T, pluginKey, baseURL, key string, multiKey bool)
relay/channel/task/jsplugin/credential_test.go:152
↓ 3 callers
Function
insertOriginOwnedTask
(t *testing.T, taskID string, userID, channelID int, platform constant.TaskPlatform)
middleware/task_plugin_origin_task_test.go:53
↓ 3 callers
Function
instanceKeywordsOf
instanceKeywordsOf returns the keywords of tctx's instance config for the keywords fields of its plugin.
pluginkit/keywords.go:174
↓ 3 callers
Function
intPtr
(v int)
relaykit/relayconvert/reasoning/suffix_test.go:190
↓ 3 callers
Function
interactionsURL
(ctx, interactionId)
plugins/tasks/vertex-ai/plugin.js:141
↓ 3 callers
Function
intersectModelNames
(base []string, allowed []string)
controller/channel_upstream_update.go:137
↓ 3 callers
Function
invalidateTokensCache
(tokens []Token)
model/token.go:506
↓ 3 callers
Function
isAdvancedCustomIncomingPathAllowed
( incomingPath: string, converter: AdvancedCustomConverter )
web/src/features/channels/lib/advanced-custom.ts:535
↓ 3 callers
Function
isAdvancedCustomPassThroughAllowed
( converter: AdvancedCustomConverter )
web/src/features/channels/lib/advanced-custom.ts:542
↓ 3 callers
Function
isAssistantMessagePending
(message: Message)
web/src/features/playground/lib/message/message-streaming-utils.ts:165
↓ 3 callers
Function
isBreakdownTierMatched
( tier: BreakdownMatchTier, tiers: readonly BreakdownMatchTier[], matchedTierLabel?: string | null, us
web/src/features/pricing/lib/breakdown-tier-match.ts:42
↓ 3 callers
Function
isClaudeHostedToolBlock
(blockType string)
relaykit/relayconvert/internal/toolconv/response.go:225
↓ 3 callers
Function
isDisplayableLogType
(type: number)
web/src/features/usage-logs/lib/utils.ts:52
↓ 3 callers
Function
isErrorMessage
(message: Message)
web/src/features/playground/lib/message/message-error-utils.ts:39
↓ 3 callers
Function
isJSONNull
(raw json.RawMessage)
relay/plugin_protocol.go:355
↓ 3 callers
Function
isLikelyHtml
(value: string)
web/src/lib/content-format.ts:28
↓ 3 callers
Function
isManageableChannelStatus
(status int)
controller/channel.go:1555
↓ 3 callers
Function
isModernHailuo
(model)
plugins/tasks/hailuo/plugin.js:224
↓ 3 callers
Function
isModuleEnabled
* 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 callers
Function
isMultimodalEmbeddingModel
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 callers
Function
isNovaModel
判断是否为Nova模型
relay/channel/aws/constants.go:159
↓ 3 callers
Function
isObject
(value)
plugins/tasks/param-override/plugin.js:61
↓ 3 callers
Function
isObject
(value)
plugins/tasks/request-redact/plugin.js:222
↓ 3 callers
Function
isPasskeySupported
()
web/src/lib/passkey.ts:242
↓ 3 callers
Function
isPlainJSONValue
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 callers
Function
isPlainObject
(v)
web/scripts/sync-i18n.mjs:119
↓ 3 callers
Function
isResponseModelMismatch
( observation: ResponseModelObservation | undefined )
web/src/features/usage-logs/lib/response-model.ts:34
↓ 3 callers
Function
isResponsesHostedOutput
(outputType string)
relaykit/relayconvert/internal/toolconv/response.go:356
↓ 3 callers
Function
isSelfTaskMediaURL
(c *gin.Context, target *url.URL)
controller/video_proxy.go:588
↓ 3 callers
Function
isStripePayment
(paymentType: string)
web/src/features/wallet/lib/payment.ts:92
↓ 3 callers
Function
isTaskMediaFallbackLoop
(rawURL, taskID string)
controller/video_proxy.go:624
↓ 3 callers
Function
isTaskUsagePricingModel
(model: PricingModel)
web/src/features/pricing/lib/dynamic-price.ts:165
↓ 3 callers
Function
isUserDeleted
(user: UserType)
web/src/features/users/constants.ts:27
↓ 3 callers
Function
isV3ReqKey
(reqKey)
plugins/tasks/jimeng/plugin.js:181
↓ 3 callers
Function
isWaffoPancakePayment
(paymentType: string)
web/src/features/wallet/lib/payment.ts:110
↓ 3 callers
Function
isWaffoPayment
(paymentType: string)
web/src/features/wallet/lib/payment.ts:99
↓ 3 callers
Function
issueExpiredDashboardAccessToken
(t *testing.T, identity service.AuthIdentity)
middleware/auth_test.go:52
↓ 3 callers
Function
jsonScanBytes
jsonScanBytes 归一化 json 列的驱动返回值:不同驱动/协议模式下同一列可能 以 []byte 或 string 返回,静默丢弃 string 会导致字段被清零而不报错。
model/main.go:32
↓ 3 callers
Function
jsonSchemaParameters
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 callers
Function
kindFromNativeType
(toolType string)
relaykit/relayconvert/internal/toolconv/decode.go:939
↓ 3 callers
Function
kling4Duration
(value)
plugins/tasks/kling/plugin.js:232
↓ 3 callers
Function
kling4Resolution
(settings)
plugins/tasks/kling/plugin.js:301
↓ 3 callers
Function
kling4Submission
(ctx)
plugins/tasks/kling/plugin.js:321
↓ 3 callers
Function
klingMode
(mode)
plugins/tasks/kling/plugin.js:218
↓ 3 callers
Function
legacyVideoAvailable
(task *model.Task)
controller/task.go:255
↓ 3 callers
Function
listedProfile
(action, model)
plugins/tasks/vidu/plugin.js:181
↓ 3 callers
Function
loadMessages
()
web/src/features/playground/lib/storage/storage.ts:358
↓ 3 callers
Function
loadVertexAIPlugin
(t *testing.T)
plugins/vertex_ai_responses_test.go:518
↓ 3 callers
Function
locationFromMap
(value map[string]any)
relaykit/relayconvert/internal/toolconv/decode.go:878
↓ 3 callers
Function
locationMap
(location *ApproximateLocation)
relaykit/relayconvert/internal/toolconv/encode.go:1693
↓ 3 callers
Method
logFailure
(category string)
service/provider_plugin_login.go:593
↓ 3 callers
Function
logFilterFromQuery
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 callers
Function
loginMethodFromContext
loginMethodFromContext 根据请求路径推导登录方式,用于登录审计日志。
controller/user.go:103
↓ 3 callers
Function
loginMethodLabel
(method: string, t: TFunction)
web/src/features/security/components/login-session-utils.ts:47
↓ 3 callers
Function
loginPluginOfChannel
loginPluginOfChannel returns the plugin of a task plugin channel when it exports login.
service/provider_plugin_login.go:111
↓ 3 callers
Function
lookupResponseRoute
(from types.RelayFormat, to types.RelayFormat)
relaykit/relayconvert/response_registry.go:786
↓ 3 callers
Function
makeSnapshot
(expr string, groupRatio float64, estPrompt, estCompletion int)
service/tiered_settle_test.go:36
↓ 3 callers
Function
manageUserProof
manageUserProof signs the root operator in and issues a password-method proof bound to one ManageUser operation.
controller/user_manage_test.go:114
↓ 3 callers
Function
mapIoNetDeployment
(d ionet.Deployment)
controller/deployment.go:138
↓ 3 callers
Method
mark
(status *SystemStatus, config PerformanceMonitorConfig)
common/system_monitor.go:94
↓ 3 callers
Method
markTerminal
(outcome ResponseOutcome, incompleteReason string)
relay/common/stream_status.go:127
↓ 3 callers
Function
marshalGolden
(t *testing.T, value any)
relaykit/relayconvert/golden_test.go:55
↓ 3 callers
Function
matchAdvancedCustomRouteModel
(models []string, model string)
relaykit/dto/channel_settings.go:400
↓ 3 callers
Method
matcher
(caseSensitive bool)
pluginkit/keywords.go:70
↓ 3 callers
Method
matches
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 callers
Function
maxConvertedBodyBytes
()
pluginkit/host.go:131
↓ 3 callers
Function
maybeMarkClaudeRefusal
(c *gin.Context, info *relaycommon.RelayInfo, stopReason string)
relay/channel/claude/relay-claude.go:28
↓ 3 callers
Method
memoryUsage
memoryUsage 返回容器内存工作集相对上限的使用率(百分比)。 工作集 = 用量 - 非活跃文件缓存,与 docker stats、kubelet 一致:用量包含可回收的 页缓存,写日志或文件后会长期贴近上限,不代表内存压力。 ok=false 时调用方回退宿主机口径(同样不含缓存):内存未
common/container_usage.go:77
↓ 3 callers
Function
mergeCounters
(merged map[bucketKey]counters, key bucketKey, value counters)
pkg/perf_metrics/metrics.go:433
↓ 3 callers
Function
metricRatio
( numerator: number | undefined, denominator: number | undefined )
web/src/features/channels/lib/inference-status.ts:60
↓ 3 callers
Function
metricValue
( metrics: InferenceMetric[], name: string, labels: Record<string, string> = {}, mode: 'sum' | 'max' =
web/src/features/channels/lib/inference-status.ts:34
↓ 3 callers
Function
migratePrefillGroupUniqueness
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 callers
Function
migrateTokenKeyUniqueness
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 callers
Function
modelProfile
(model)
plugins/tasks/alibaba/plugin.js:471
↓ 3 callers
Function
modelVersion
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 callers
Function
multipartRequest
multipartRequest is a client's multipart body and its content type.
router/provider_plugin_relay_test.go:1730
← previous
next →
2,701–2,800 of 15,592, ranked by callers