Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/QuantumNous/new-api
/ functions
Functions
10,602 in github.com/QuantumNous/new-api
⨍
Functions
10,602
◇
Types & classes
1,425
↓ 2 callers
Function
isResponsesEventStreamContentType
(contentType string)
relay/chat_completions_via_responses.go:187
↓ 2 callers
Function
isSankeyLinkDatum
(datum: Record<string, unknown>)
web/default/src/features/dashboard/lib/flow.ts:1058
↓ 2 callers
Function
isSelectableUpstreamValue
( value: number | string | 'same' | null | undefined )
web/default/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/default/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/default/src/features/dashboard/lib/filters.ts:36
↓ 2 callers
Function
isTimestampExpired
(timestamp: number)
web/default/src/features/redemption-codes/lib/utils.ts:28
↓ 2 callers
Function
isUsageLogsSectionId
(s: string)
web/default/src/features/usage-logs/section-registry.tsx:59
↓ 2 callers
Function
isViolationFeeLog
(other: LogOtherData | null)
web/default/src/features/usage-logs/lib/format.ts:86
↓ 2 callers
Function
isWaffoPancakePayment
(paymentType: string)
web/default/src/features/wallet/lib/payment.ts:85
↓ 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/default/src/features/system-settings/models/tiered-pricing-editor.tsx:346
↓ 2 callers
Function
jsonToConfigs
(jsonString)
web/classic/src/pages/Setting/Chat/SettingsChats.jsx:102
↓ 2 callers
Method
keyForEvent
(event *dto.ResponsesStreamResponse)
service/relayconvert/internal/oai_responses/to_oai_chat_stream_resp.go:518
↓ 2 callers
Function
listDeploymentContainers
( deploymentId: string | number )
web/default/src/features/models/api.ts:388
↓ 2 callers
Function
listDeployments
(params: { p?: number page_size?: number status?: string })
web/default/src/features/models/api.ts:348
↓ 2 callers
Function
listWaffoPancakeSubscriptionProductOptions
()
web/default/src/features/subscriptions/api.ts:182
↓ 2 callers
Function
loadCustomOAuthBindings
()
web/classic/src/components/settings/personal/cards/AccountManagement.jsx:106
↓ 2 callers
Function
loadGroups
()
web/classic/src/components/table/tokens/modals/EditTokenModal.jsx:136
↓ 2 callers
Function
loadMessages
()
web/default/src/features/playground/lib/storage/storage.ts:341
↓ 2 callers
Function
loadMessages
()
web/classic/src/components/playground/configStorage.js:103
↓ 2 callers
Function
loadModels
()
web/classic/src/components/table/tokens/index.jsx:89
↓ 2 callers
Function
loadOptionsFromDatabase
()
model/option.go:189
↓ 2 callers
Function
loadTopups
(currentPage, currentPageSize)
web/classic/src/components/topup/modals/TopupHistoryModal.jsx:68
↓ 2 callers
Function
logCleanupProgress
(processed int64, total int64)
service/system_task.go:445
↓ 2 callers
Function
manageRedemption
(id, action, record)
web/classic/src/hooks/redemptions/useRedemptionsData.jsx:124
↓ 2 callers
Function
mapEncoding
(responseFormat string)
relay/channel/volcengine/tts.go:125
↓ 2 callers
Function
mapStatusDataToConfig
( data: StatusApiResponse['data'] | undefined )
web/default/src/hooks/use-system-config.ts:65
↓ 2 callers
Function
markAnnouncementsAsRead
()
web/default/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:257
↓ 2 callers
Function
matchAdvancedCustomRouteModel
(models []string, model string)
dto/channel_settings.go:213
↓ 2 callers
Function
matchAdvancedCustomRouteModelRule
(rule string, model string)
dto/channel_settings.go:245
↓ 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:1236
↓ 2 callers
Function
memoryEmailVerificationRateLimiter
(c *gin.Context)
middleware/email-verification-rate-limit.go:57
↓ 2 callers
Function
mergeCounters
(merged map[bucketKey]counters, key bucketKey, value counters)
pkg/perf_metrics/metrics.go:274
↓ 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
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
normalize
(tags)
web/classic/src/components/table/models/modals/EditModelModal.jsx:377
↓ 2 callers
Function
normalizeAdminPermissions
( value: AdminPermissionMatrix | null | undefined, catalog: PermissionCatalog )
web/default/src/lib/admin-permissions.ts:77
↓ 2 callers
Function
normalizeAdvancedCustomRouteModels
(models []string)
dto/channel_settings.go:412
↓ 2 callers
Function
normalizeAdvancedCustomRouteModels
( models: string[] | undefined )
web/default/src/features/channels/lib/advanced-custom.ts:683
↓ 2 callers
Function
normalizeBaseUrl
(value: string | undefined)
web/default/src/features/channels/lib/channel-form.ts:628
↓ 2 callers
Function
normalizeChannelModelMapping
(channel *model.Channel)
controller/channel_upstream_update.go:145
↓ 2 callers
Function
normalizeChannelTestMode
(value?: string)
web/default/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/default/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/default/src/features/system-settings/general/channel-affinity/rule-editor-dialog.tsx:95
↓ 2 callers
Function
normalizeKeySource
(src)
web/classic/src/pages/Setting/Operation/SettingsChannelAffinity.jsx:146
↓ 2 callers
Function
normalizeLabel
(label)
web/classic/src/helpers/render.jsx:2280
↓ 2 callers
Function
normalizeModels
(models = [])
web/classic/src/components/table/channels/modals/ChannelUpstreamUpdateModal.jsx:37
↓ 2 callers
Function
normalizeOperation
( operation: Record<string, unknown> = {} )
web/default/src/features/channels/components/dialogs/param-override-editor-dialog.tsx:498
↓ 2 callers
Function
normalizeOperation
(operation = {})
web/classic/src/components/table/channels/modals/ParamOverrideEditorModal.jsx:794
↓ 2 callers
Function
normalizePlanType
(value: unknown)
web/default/src/features/channels/components/dialogs/codex-usage-dialog.tsx:220
↓ 2 callers
Function
normalizePruneRule
(rule: Record<string, unknown> = {})
web/default/src/features/channels/components/dialogs/param-override-editor-dialog.tsx:770
↓ 2 callers
Function
normalizePruneRule
(rule = {})
web/classic/src/components/table/channels/modals/ParamOverrideEditorModal.jsx:615
↓ 2 callers
Function
normalizeTierLabel
(label: string | undefined)
web/default/src/features/pricing/lib/billing-expr.ts:307
↓ 2 callers
Function
normalizeVisualConfig
( config: VisualConfig | null | undefined )
web/default/src/features/pricing/lib/tier-expr.ts:95
↓ 2 callers
Function
normalizeVisualConfig
(config)
web/classic/src/pages/Setting/Ratio/components/TieredPricingEditor.jsx:139
↓ 2 callers
Function
noteTaskQuotaClamp
noteTaskQuotaClamp records the first quota saturation event onto the task's RelayInfo so LogTaskConsumption can surface it on the submit log's admin_i
relay/relay_task.go:281
↓ 2 callers
Function
notifyBindingResult
(status: 'success' | 'error')
web/default/src/routes/oauth/$provider.tsx:93
↓ 2 callers
Function
notifySystemTaskRunner
notifySystemTaskRunner wakes the runner without blocking. If a wakeup is already pending it is a no-op, which is fine since one pass drains all work.
service/system_task.go:116
↓ 2 callers
Function
ollamaChatHandler
non-stream handler for chat/generate
relay/channel/ollama/stream.go:206
↓ 2 callers
Function
ollamaToolCallsToOpenAI
(toolCalls []OllamaToolCall, startIndex int, includeIndex bool)
relay/channel/ollama/stream.go:45
↓ 2 callers
Function
onRefresh
()
web/classic/src/components/settings/DashboardSetting.jsx:75
↓ 2 callers
Function
onRefresh
()
web/classic/src/components/settings/PaymentSetting.jsx:181
↓ 2 callers
Function
onSubmit
(data: z.infer<typeof otpFormSchema>)
web/default/src/features/auth/otp/components/otp-form.tsx:79
↓ 2 callers
Function
openAIBillingUsageFromUsage
(usage *dto.Usage)
service/relayconvert/internal/oai_chat/to_gemini_chat_resp.go:218
↓ 2 callers
Function
openAIChatToOllamaChat
(c *gin.Context, r *dto.GeneralOpenAIRequest)
relay/channel/ollama/relay-ollama.go:22
↓ 2 callers
Function
openContentModal
(content)
web/classic/src/hooks/mj-logs/useMjLogsData.js:269
↓ 2 callers
Function
openModelDetail
(model)
web/classic/src/hooks/model-pricing/useModelPricingData.jsx:306
↓ 2 callers
Function
openTokenControllerExternalDB
(t *testing.T, dialect string, dsn string)
controller/token_test.go:115
↓ 2 callers
Function
openTokenControllerTestDB
(t *testing.T)
controller/token_test.go:74
↓ 2 callers
Function
orderCardCells
( cells: Cell<TData, unknown>[] )
web/default/src/components/data-table/layout/card-row-content.tsx:26
↓ 2 callers
Method
outputStatus
()
service/relayconvert/internal/oai_chat/to_oai_responses_stream_resp.go:363
↓ 2 callers
Function
parseAdvancedCustomRouteModels
(value: string)
web/default/src/features/channels/lib/advanced-custom.ts:498
↓ 2 callers
Function
parseAudio
(audioBase64 string, format string)
service/audio.go:9
↓ 2 callers
Function
parseBoundary
parseBoundary extracts the multipart boundary from the Content-Type header using mime.ParseMediaType
common/gin.go:361
↓ 2 callers
Function
parseChannelConnectionString
(text)
web/classic/src/helpers/token.js:117
↓ 2 callers
Function
parseCodexOAuthKey
(raw string)
service/codex_credential_refresh.go:31
↓ 2 callers
Function
parseConditionOperations
(raw interface{})
relay/common/override.go:1907
↓ 2 callers
Function
parseFlowQuotaTimeRange
(c *gin.Context)
controller/usedata.go:13
↓ 2 callers
Function
parseHEIFDimensions
parseHEIFDimensions parses ISOBMFF box tree to find the ispe box and extract image width/height. Returns (width, height, ok).
service/file_service.go:517
← previous
next →
2,001–2,100 of 10,602, ranked by callers