MCPcopy Create free account

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

Functions9,195 in github.com/QuantumNous/new-api

↓ 2 callersFunctioninvalidateTokensCache
(tokens []Token)
model/token.go:511
↓ 2 callersFunctioninviteUser
(inviterId int)
model/user.go:492
↓ 2 callersMethodipAccessError
(host string, ip net.IP)
common/ssrf_protection.go:269
↓ 2 callersFunctionis25FlashLiteModel
(modelName string)
service/relayconvert/internal/shared/gemini/request.go:211
↓ 2 callersFunctionisAdvancedCustomIncomingPathAllowed
( incomingPath: string, converter: AdvancedCustomConverter )
web/src/features/channels/lib/advanced-custom.ts:451
↓ 2 callersFunctionisAllowedSecurityProofScope
(scope string)
controller/secure_verification.go:81
↓ 2 callersFunctionisCatchAllRoute
(route: AdvancedCustomRoute)
web/src/features/channels/components/dialogs/advanced-custom-editor-dialog.tsx:142
↓ 2 callersFunctionisClickHouseDSN
(dsn string)
model/main.go:107
↓ 2 callersFunctionisCreemTopUpEnabled
()
controller/payment_webhook_availability.go:31
↓ 2 callersFunctionisCreemWebhookEnabled
()
controller/payment_webhook_availability.go:45
↓ 2 callersFunctionisCurrent
()
web/src/features/playground/hooks/use-stream-request.ts:103
↓ 2 callersFunctionisDisabledApiKeyRow
(apiKey: ApiKey)
web/src/features/keys/components/api-keys-table.tsx:69
↓ 2 callersFunctionisDisplayableLogType
(type: number)
web/src/features/usage-logs/lib/utils.ts:50
↓ 2 callersFunctionisEpayTopUpEnabled
()
controller/payment_webhook_availability.go:95
↓ 2 callersFunctionisEpayWebhookEnabled
()
controller/payment_webhook_availability.go:108
↓ 2 callersFunctionisHeaderPassthroughRuleKey
(key string)
relay/channel/api_request.go:123
↓ 2 callersFunctionisHtmlBlockNode
(node: ParsedNode)
web/src/components/ai-elements/response-node-guards.ts:96
↓ 2 callersFunctionisJSONRequest
(c *gin.Context)
relay/channel/openai/adaptor.go:577
↓ 2 callersFunctionisKnownPermission
(permission Permission)
service/authz/registry.go:96
↓ 2 callersFunctionisKnownResource
(resource string)
service/authz/registry.go:78
↓ 2 callersFunctionisLogTypeValue
(value: string)
web/src/features/usage-logs/components/common-logs-filter-bar.tsx:67
↓ 2 callersFunctionisLoginSession
(value: unknown)
web/src/lib/auth-session.ts:102
↓ 2 callersFunctionisMultiKeyChannel
(channel: Channel)
web/src/features/channels/lib/channel-utils.ts:159
↓ 2 callersFunctionisNew25ProModel
(modelName string)
service/relayconvert/internal/shared/gemini/request.go:205
↓ 2 callersFunctionisNovaModel
判断是否为Nova模型
relay/channel/aws/constants.go:159
↓ 2 callersFunctionisObjectRecord
( data: unknown )
web/src/features/system-settings/utils/json-validators.ts:19
↓ 2 callersFunctionisOldWanModel
(modelName string)
relay/channel/ali/image_wan.go:42
↓ 2 callersFunctionisOperationBlank
(operation: ParamOverrideOperation)
web/src/features/channels/components/dialogs/param-override-editor-dialog.tsx:542
↓ 2 callersFunctionisOtherTooltipKey
(key: string)
web/src/features/dashboard/lib/charts.ts:85
↓ 2 callersFunctionisPerCallBilling
(modelPrice?: number)
web/src/features/usage-logs/lib/utils.ts:71
↓ 2 callersFunctionisPositiveFiniteNumber
(value: unknown)
web/src/features/usage-logs/lib/format.ts:95
↓ 2 callersFunctionisPrivateIP
isPrivateIP 检查IP是否为私有/保留/特殊用途地址
common/ssrf_protection.go:97
↓ 2 callersFunctionisRecord
(value: unknown)
web/src/features/channels/lib/ollama-utils.ts:38
↓ 2 callersFunctionisResponsesEventStreamContentType
(contentType string)
relay/chat_completions_via_responses.go:187
↓ 2 callersFunctionisSankeyLinkDatum
(datum: Record<string, unknown>)
web/src/features/dashboard/lib/flow.ts:1058
↓ 2 callersFunctionisSelectableUpstreamValue
( value: number | string | 'same' | null | undefined )
web/src/features/system-settings/models/upstream-ratio-sync-helpers.ts:161
↓ 2 callersFunctionisSelectedResolutionValue
( resolutions: ResolutionsMap, model: string, ratioType: RatioType, upstreamValue: number | string | '
web/src/features/system-settings/models/upstream-ratio-sync-helpers.ts:182
↓ 2 callersFunctionisStripeTopUpEnabled
()
controller/payment_webhook_availability.go:14
↓ 2 callersFunctionisStripeWebhookEnabled
()
controller/payment_webhook_availability.go:27
↓ 2 callersFunctionisTimeGranularity
(value: unknown)
web/src/features/dashboard/lib/filters.ts:36
↓ 2 callersFunctionisTimestampExpired
(timestamp: number)
web/src/features/redemption-codes/lib/utils.ts:28
↓ 2 callersFunctionisUsageLogsSectionId
(s: string)
web/src/features/usage-logs/section-registry.tsx:59
↓ 2 callersFunctionisValidToolPrice
(price float64)
setting/operation_setting/tools.go:85
↓ 2 callersFunctionisViolationFeeLog
(other: LogOtherData | null)
web/src/features/usage-logs/lib/format.ts:86
↓ 2 callersFunctionisWaffoPancakeWebhookEnabled
()
controller/payment_webhook_availability.go:91
↓ 2 callersFunctionisWaffoTopUpEnabled
()
controller/payment_webhook_availability.go:49
↓ 2 callersFunctionisWaffoWebhookEnabled
()
controller/payment_webhook_availability.go:72
↓ 2 callersFunctionisZeroDraft
(value: string)
web/src/features/system-settings/models/tiered-pricing-editor.tsx:346
↓ 2 callersFunctionissueExpiredDashboardAccessToken
(t *testing.T, identity service.AuthIdentity)
middleware/auth_test.go:45
↓ 2 callersMethodkeyForEvent
(event *dto.ResponsesStreamResponse)
service/relayconvert/internal/oai_responses/to_oai_chat_stream_resp.go:535
↓ 2 callersFunctionlistDeploymentContainers
( deploymentId: string | number )
web/src/features/models/api.ts:388
↓ 2 callersFunctionlistDeployments
(params: { p?: number page_size?: number status?: string })
web/src/features/models/api.ts:348
↓ 2 callersFunctionlistWaffoPancakeSubscriptionProductOptions
()
web/src/features/subscriptions/api.ts:182
↓ 2 callersFunctionloadMessages
()
web/src/features/playground/lib/storage/storage.ts:341
↓ 2 callersFunctionloadOptionsFromDatabase
()
model/option.go:189
↓ 2 callersFunctionlogCleanupProgress
(processed int64, total int64)
service/system_task.go:445
↓ 2 callersFunctionloginMethodFromContext
loginMethodFromContext 根据请求路径推导登录方式,用于登录审计日志。
controller/user.go:116
↓ 2 callersFunctionloginMethodLabel
(method: string, t: TFunction)
web/src/features/profile/components/login-session-utils.ts:43
↓ 2 callersFunctionmapEncoding
(responseFormat string)
relay/channel/volcengine/tts.go:125
↓ 2 callersFunctionmapStatusDataToConfig
( data: StatusApiResponse['data'] | undefined )
web/src/hooks/use-system-config.ts:65
↓ 2 callersFunctionmarkAnnouncementsAsRead
()
web/src/hooks/use-notifications.ts:122
↓ 2 callersFunctionmarkAuditLogged
markAuditLogged 标记当前请求已在 handler 内手动记录审计日志, 使鉴权链路中的审计兜底(finishAdminAudit)跳过兜底记录,避免重复。
controller/audit.go:87
↓ 2 callersFunctionmaskHostTail
maskHostTail returns the tail parts of a domain/host that should be preserved. It keeps 2 parts for likely country-code TLDs (e.g., co.uk, com.cn), ot
common/str.go:150
↓ 2 callersFunctionmatchAdvancedCustomIncomingPath
(configuredPath string, requestPath string)
dto/channel_settings.go:277
↓ 2 callersFunctionmatchAdvancedCustomRouteModel
(models []string, model string)
dto/channel_settings.go:233
↓ 2 callersFunctionmatchAdvancedCustomRouteModelRule
(rule string, model string)
dto/channel_settings.go:265
↓ 2 callersFunctionmaybeMarkClaudeRefusal
(c *gin.Context, stopReason string)
relay/channel/claude/relay-claude.go:26
↓ 2 callersFunctionmaybeResetUserSubscriptionWithPlanTx
(tx *gorm.DB, sub *UserSubscription, plan *SubscriptionPlan, now int64)
model/subscription.go:1251
↓ 2 callersFunctionmemoryEmailVerificationRateLimiter
(c *gin.Context)
middleware/email-verification-rate-limit.go:46
↓ 2 callersFunctionmergeCounters
(merged map[bucketKey]counters, key bucketKey, value counters)
pkg/perf_metrics/metrics.go:274
↓ 2 callersFunctionmergeToolSurchargeItems
(items []ToolSurchargeItem)
service/text_quota.go:118
↓ 2 callersMethodmessageOutput
(status string)
service/relayconvert/internal/oai_chat/to_oai_responses_stream_resp.go:378
↓ 2 callersFunctionmigrateTokenControllerTestDB
(t *testing.T, db *gorm.DB)
controller/token_test.go:99
↓ 2 callersFunctionminInt
(a int, b int)
service/rankings.go:592
↓ 2 callersFunctionmodelPriceNotConfiguredError
(modelName string, userId int)
relay/helper/price.go:20
↓ 2 callersFunctionmultipartMemoryLimit
multipartMemoryLimit returns the configured multipart memory limit in bytes
common/gin.go:378
↓ 2 callersMethodneedsRefundLocked
()
service/billing_session.go:132
↓ 2 callersFunctionnewDisconnectingImageStream
(t *testing.T, sseBody, disconnectAfter string)
relay/channel/openai/image_stream_test.go:204
↓ 2 callersFunctionnewGeminiChatBillingUsage
(metadata *GeminiUsageMetadata, estimated bool)
dto/billing_usage.go:125
↓ 2 callersFunctionnewGormAdapter
(db *gorm.DB)
service/authz/adapter.go:17
↓ 2 callersFunctionnewOpenAIBillingUsage
(source string, usage *Usage)
dto/billing_usage.go:64
↓ 2 callersFunctionnewProtectedFetchHTTPClientWithDialer
(resolver ssrfResolver, dialContext func(ctx context.Context, network, address string) (net.Conn, error), getP
service/protected_fetch_client.go:62
↓ 2 callersFunctionnewRelayHTTPClient
(transport *http.Transport)
service/http_client.go:99
↓ 2 callersFunctionnewRelayHTTPTransport
()
service/http_client.go:72
↓ 2 callersFunctionnewResponseStreamStateFromSpec
(from types.RelayFormat, target types.RelayFormat, options ResponseStreamOptions, spec ResponseConverterSpec)
service/relayconvert/response_registry.go:506
↓ 2 callersFunctionnewTestTLSCertificate
()
common/email_test.go:215
↓ 2 callersFunctionnormalizeAdminPermissions
( value: AdminPermissionMatrix | null | undefined, catalog: PermissionCatalog )
web/src/lib/admin-permissions.ts:95
↓ 2 callersFunctionnormalizeAdvancedCustomRouteModels
( models: string[] | undefined )
web/src/features/channels/lib/advanced-custom.ts:733
↓ 2 callersFunctionnormalizeBaseUrl
(value: string | undefined)
web/src/features/channels/lib/channel-form.ts:683
↓ 2 callersFunctionnormalizeChannelModelMapping
(channel *model.Channel)
controller/channel_upstream_update.go:152
↓ 2 callersFunctionnormalizeChannelTestMode
(value?: string)
web/src/features/system-settings/models/routing-reliability-section.tsx:150
↓ 2 callersFunctionnormalizeClickHouseDSN
(dsn string)
model/main.go:114
↓ 2 callersFunctionnormalizeCondition
( cond: Partial<RequestCondition> | null | undefined )
web/src/features/pricing/lib/billing-expr.ts:642
↓ 2 callersFunctionnormalizeGeminiSchemaTypeAndNullable
(schema map[string]interface{})
service/relayconvert/internal/shared/gemini/schema.go:116
↓ 2 callersFunctionnormalizeKeySource
(src: Partial<KeySource>)
web/src/features/system-settings/general/channel-affinity/rule-editor-dialog.tsx:96
↓ 2 callersFunctionnormalizeOperation
( operation: Record<string, unknown> = {} )
web/src/features/channels/components/dialogs/param-override-editor-dialog.tsx:499
↓ 2 callersFunctionnormalizePlanType
(value: unknown)
web/src/features/channels/components/dialogs/codex-usage-dialog.tsx:238
↓ 2 callersFunctionnormalizePruneRule
(rule: Record<string, unknown> = {})
web/src/features/channels/components/dialogs/param-override-editor-dialog.tsx:771
↓ 2 callersFunctionnormalizeTierLabel
(label: string | undefined)
web/src/features/pricing/lib/billing-expr.ts:307
↓ 2 callersFunctionnormalizeVisualConfig
( config: VisualConfig | null | undefined )
web/src/features/pricing/lib/tier-expr.ts:95
← previousnext →1,901–2,000 of 9,195, ranked by callers