Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/QuantumNous/new-api
/ functions
Functions
9,195 in github.com/QuantumNous/new-api
⨍
Functions
9,195
◇
Types & classes
1,481
↓ 2 callers
Function
invalidateTokensCache
(tokens []Token)
model/token.go:511
↓ 2 callers
Function
inviteUser
(inviterId int)
model/user.go:492
↓ 2 callers
Method
ipAccessError
(host string, ip net.IP)
common/ssrf_protection.go:269
↓ 2 callers
Function
is25FlashLiteModel
(modelName string)
service/relayconvert/internal/shared/gemini/request.go:211
↓ 2 callers
Function
isAdvancedCustomIncomingPathAllowed
( incomingPath: string, converter: AdvancedCustomConverter )
web/src/features/channels/lib/advanced-custom.ts:451
↓ 2 callers
Function
isAllowedSecurityProofScope
(scope string)
controller/secure_verification.go:81
↓ 2 callers
Function
isCatchAllRoute
(route: AdvancedCustomRoute)
web/src/features/channels/components/dialogs/advanced-custom-editor-dialog.tsx:142
↓ 2 callers
Function
isClickHouseDSN
(dsn string)
model/main.go:107
↓ 2 callers
Function
isCreemTopUpEnabled
()
controller/payment_webhook_availability.go:31
↓ 2 callers
Function
isCreemWebhookEnabled
()
controller/payment_webhook_availability.go:45
↓ 2 callers
Function
isCurrent
()
web/src/features/playground/hooks/use-stream-request.ts:103
↓ 2 callers
Function
isDisabledApiKeyRow
(apiKey: ApiKey)
web/src/features/keys/components/api-keys-table.tsx:69
↓ 2 callers
Function
isDisplayableLogType
(type: number)
web/src/features/usage-logs/lib/utils.ts:50
↓ 2 callers
Function
isEpayTopUpEnabled
()
controller/payment_webhook_availability.go:95
↓ 2 callers
Function
isEpayWebhookEnabled
()
controller/payment_webhook_availability.go:108
↓ 2 callers
Function
isHeaderPassthroughRuleKey
(key string)
relay/channel/api_request.go:123
↓ 2 callers
Function
isHtmlBlockNode
(node: ParsedNode)
web/src/components/ai-elements/response-node-guards.ts:96
↓ 2 callers
Function
isJSONRequest
(c *gin.Context)
relay/channel/openai/adaptor.go:577
↓ 2 callers
Function
isKnownPermission
(permission Permission)
service/authz/registry.go:96
↓ 2 callers
Function
isKnownResource
(resource string)
service/authz/registry.go:78
↓ 2 callers
Function
isLogTypeValue
(value: string)
web/src/features/usage-logs/components/common-logs-filter-bar.tsx:67
↓ 2 callers
Function
isLoginSession
(value: unknown)
web/src/lib/auth-session.ts:102
↓ 2 callers
Function
isMultiKeyChannel
(channel: Channel)
web/src/features/channels/lib/channel-utils.ts:159
↓ 2 callers
Function
isNew25ProModel
(modelName string)
service/relayconvert/internal/shared/gemini/request.go:205
↓ 2 callers
Function
isNovaModel
判断是否为Nova模型
relay/channel/aws/constants.go:159
↓ 2 callers
Function
isObjectRecord
( data: unknown )
web/src/features/system-settings/utils/json-validators.ts:19
↓ 2 callers
Function
isOldWanModel
(modelName string)
relay/channel/ali/image_wan.go:42
↓ 2 callers
Function
isOperationBlank
(operation: ParamOverrideOperation)
web/src/features/channels/components/dialogs/param-override-editor-dialog.tsx:542
↓ 2 callers
Function
isOtherTooltipKey
(key: string)
web/src/features/dashboard/lib/charts.ts:85
↓ 2 callers
Function
isPerCallBilling
(modelPrice?: number)
web/src/features/usage-logs/lib/utils.ts:71
↓ 2 callers
Function
isPositiveFiniteNumber
(value: unknown)
web/src/features/usage-logs/lib/format.ts:95
↓ 2 callers
Function
isPrivateIP
isPrivateIP 检查IP是否为私有/保留/特殊用途地址
common/ssrf_protection.go:97
↓ 2 callers
Function
isRecord
(value: unknown)
web/src/features/channels/lib/ollama-utils.ts:38
↓ 2 callers
Function
isResponsesEventStreamContentType
(contentType string)
relay/chat_completions_via_responses.go:187
↓ 2 callers
Function
isSankeyLinkDatum
(datum: Record<string, unknown>)
web/src/features/dashboard/lib/flow.ts:1058
↓ 2 callers
Function
isSelectableUpstreamValue
( value: number | string | 'same' | null | undefined )
web/src/features/system-settings/models/upstream-ratio-sync-helpers.ts:161
↓ 2 callers
Function
isSelectedResolutionValue
( resolutions: ResolutionsMap, model: string, ratioType: RatioType, upstreamValue: number | string | '
web/src/features/system-settings/models/upstream-ratio-sync-helpers.ts:182
↓ 2 callers
Function
isStripeTopUpEnabled
()
controller/payment_webhook_availability.go:14
↓ 2 callers
Function
isStripeWebhookEnabled
()
controller/payment_webhook_availability.go:27
↓ 2 callers
Function
isTimeGranularity
(value: unknown)
web/src/features/dashboard/lib/filters.ts:36
↓ 2 callers
Function
isTimestampExpired
(timestamp: number)
web/src/features/redemption-codes/lib/utils.ts:28
↓ 2 callers
Function
isUsageLogsSectionId
(s: string)
web/src/features/usage-logs/section-registry.tsx:59
↓ 2 callers
Function
isValidToolPrice
(price float64)
setting/operation_setting/tools.go:85
↓ 2 callers
Function
isViolationFeeLog
(other: LogOtherData | null)
web/src/features/usage-logs/lib/format.ts:86
↓ 2 callers
Function
isWaffoPancakeWebhookEnabled
()
controller/payment_webhook_availability.go:91
↓ 2 callers
Function
isWaffoTopUpEnabled
()
controller/payment_webhook_availability.go:49
↓ 2 callers
Function
isWaffoWebhookEnabled
()
controller/payment_webhook_availability.go:72
↓ 2 callers
Function
isZeroDraft
(value: string)
web/src/features/system-settings/models/tiered-pricing-editor.tsx:346
↓ 2 callers
Function
issueExpiredDashboardAccessToken
(t *testing.T, identity service.AuthIdentity)
middleware/auth_test.go:45
↓ 2 callers
Method
keyForEvent
(event *dto.ResponsesStreamResponse)
service/relayconvert/internal/oai_responses/to_oai_chat_stream_resp.go:535
↓ 2 callers
Function
listDeploymentContainers
( deploymentId: string | number )
web/src/features/models/api.ts:388
↓ 2 callers
Function
listDeployments
(params: { p?: number page_size?: number status?: string })
web/src/features/models/api.ts:348
↓ 2 callers
Function
listWaffoPancakeSubscriptionProductOptions
()
web/src/features/subscriptions/api.ts:182
↓ 2 callers
Function
loadMessages
()
web/src/features/playground/lib/storage/storage.ts:341
↓ 2 callers
Function
loadOptionsFromDatabase
()
model/option.go:189
↓ 2 callers
Function
logCleanupProgress
(processed int64, total int64)
service/system_task.go:445
↓ 2 callers
Function
loginMethodFromContext
loginMethodFromContext 根据请求路径推导登录方式,用于登录审计日志。
controller/user.go:116
↓ 2 callers
Function
loginMethodLabel
(method: string, t: TFunction)
web/src/features/profile/components/login-session-utils.ts:43
↓ 2 callers
Function
mapEncoding
(responseFormat string)
relay/channel/volcengine/tts.go:125
↓ 2 callers
Function
mapStatusDataToConfig
( data: StatusApiResponse['data'] | undefined )
web/src/hooks/use-system-config.ts:65
↓ 2 callers
Function
markAnnouncementsAsRead
()
web/src/hooks/use-notifications.ts:122
↓ 2 callers
Function
markAuditLogged
markAuditLogged 标记当前请求已在 handler 内手动记录审计日志, 使鉴权链路中的审计兜底(finishAdminAudit)跳过兜底记录,避免重复。
controller/audit.go:87
↓ 2 callers
Function
maskHostTail
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 callers
Function
matchAdvancedCustomIncomingPath
(configuredPath string, requestPath string)
dto/channel_settings.go:277
↓ 2 callers
Function
matchAdvancedCustomRouteModel
(models []string, model string)
dto/channel_settings.go:233
↓ 2 callers
Function
matchAdvancedCustomRouteModelRule
(rule string, model string)
dto/channel_settings.go:265
↓ 2 callers
Function
maybeMarkClaudeRefusal
(c *gin.Context, stopReason string)
relay/channel/claude/relay-claude.go:26
↓ 2 callers
Function
maybeResetUserSubscriptionWithPlanTx
(tx *gorm.DB, sub *UserSubscription, plan *SubscriptionPlan, now int64)
model/subscription.go:1251
↓ 2 callers
Function
memoryEmailVerificationRateLimiter
(c *gin.Context)
middleware/email-verification-rate-limit.go:46
↓ 2 callers
Function
mergeCounters
(merged map[bucketKey]counters, key bucketKey, value counters)
pkg/perf_metrics/metrics.go:274
↓ 2 callers
Function
mergeToolSurchargeItems
(items []ToolSurchargeItem)
service/text_quota.go:118
↓ 2 callers
Method
messageOutput
(status string)
service/relayconvert/internal/oai_chat/to_oai_responses_stream_resp.go:378
↓ 2 callers
Function
migrateTokenControllerTestDB
(t *testing.T, db *gorm.DB)
controller/token_test.go:99
↓ 2 callers
Function
minInt
(a int, b int)
service/rankings.go:592
↓ 2 callers
Function
modelPriceNotConfiguredError
(modelName string, userId int)
relay/helper/price.go:20
↓ 2 callers
Function
multipartMemoryLimit
multipartMemoryLimit returns the configured multipart memory limit in bytes
common/gin.go:378
↓ 2 callers
Method
needsRefundLocked
()
service/billing_session.go:132
↓ 2 callers
Function
newDisconnectingImageStream
(t *testing.T, sseBody, disconnectAfter string)
relay/channel/openai/image_stream_test.go:204
↓ 2 callers
Function
newGeminiChatBillingUsage
(metadata *GeminiUsageMetadata, estimated bool)
dto/billing_usage.go:125
↓ 2 callers
Function
newGormAdapter
(db *gorm.DB)
service/authz/adapter.go:17
↓ 2 callers
Function
newOpenAIBillingUsage
(source string, usage *Usage)
dto/billing_usage.go:64
↓ 2 callers
Function
newProtectedFetchHTTPClientWithDialer
(resolver ssrfResolver, dialContext func(ctx context.Context, network, address string) (net.Conn, error), getP
service/protected_fetch_client.go:62
↓ 2 callers
Function
newRelayHTTPClient
(transport *http.Transport)
service/http_client.go:99
↓ 2 callers
Function
newRelayHTTPTransport
()
service/http_client.go:72
↓ 2 callers
Function
newResponseStreamStateFromSpec
(from types.RelayFormat, target types.RelayFormat, options ResponseStreamOptions, spec ResponseConverterSpec)
service/relayconvert/response_registry.go:506
↓ 2 callers
Function
newTestTLSCertificate
()
common/email_test.go:215
↓ 2 callers
Function
normalizeAdminPermissions
( value: AdminPermissionMatrix | null | undefined, catalog: PermissionCatalog )
web/src/lib/admin-permissions.ts:95
↓ 2 callers
Function
normalizeAdvancedCustomRouteModels
( models: string[] | undefined )
web/src/features/channels/lib/advanced-custom.ts:733
↓ 2 callers
Function
normalizeBaseUrl
(value: string | undefined)
web/src/features/channels/lib/channel-form.ts:683
↓ 2 callers
Function
normalizeChannelModelMapping
(channel *model.Channel)
controller/channel_upstream_update.go:152
↓ 2 callers
Function
normalizeChannelTestMode
(value?: string)
web/src/features/system-settings/models/routing-reliability-section.tsx:150
↓ 2 callers
Function
normalizeClickHouseDSN
(dsn string)
model/main.go:114
↓ 2 callers
Function
normalizeCondition
( cond: Partial<RequestCondition> | null | undefined )
web/src/features/pricing/lib/billing-expr.ts:642
↓ 2 callers
Function
normalizeGeminiSchemaTypeAndNullable
(schema map[string]interface{})
service/relayconvert/internal/shared/gemini/schema.go:116
↓ 2 callers
Function
normalizeKeySource
(src: Partial<KeySource>)
web/src/features/system-settings/general/channel-affinity/rule-editor-dialog.tsx:96
↓ 2 callers
Function
normalizeOperation
( operation: Record<string, unknown> = {} )
web/src/features/channels/components/dialogs/param-override-editor-dialog.tsx:499
↓ 2 callers
Function
normalizePlanType
(value: unknown)
web/src/features/channels/components/dialogs/codex-usage-dialog.tsx:238
↓ 2 callers
Function
normalizePruneRule
(rule: Record<string, unknown> = {})
web/src/features/channels/components/dialogs/param-override-editor-dialog.tsx:771
↓ 2 callers
Function
normalizeTierLabel
(label: string | undefined)
web/src/features/pricing/lib/billing-expr.ts:307
↓ 2 callers
Function
normalizeVisualConfig
( config: VisualConfig | null | undefined )
web/src/features/pricing/lib/tier-expr.ts:95
← previous
next →
1,901–2,000 of 9,195, ranked by callers