MCPcopy Create free account

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

Functions10,602 in github.com/QuantumNous/new-api

↓ 2 callersFunctionisResponsesEventStreamContentType
(contentType string)
relay/chat_completions_via_responses.go:187
↓ 2 callersFunctionisSankeyLinkDatum
(datum: Record<string, unknown>)
web/default/src/features/dashboard/lib/flow.ts:1058
↓ 2 callersFunctionisSelectableUpstreamValue
( value: number | string | 'same' | null | undefined )
web/default/src/features/system-settings/models/upstream-ratio-sync-helpers.ts:161
↓ 2 callersFunctionisSelectedResolutionValue
( resolutions: ResolutionsMap, model: string, ratioType: RatioType, upstreamValue: number | string | '
web/default/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/default/src/features/dashboard/lib/filters.ts:36
↓ 2 callersFunctionisTimestampExpired
(timestamp: number)
web/default/src/features/redemption-codes/lib/utils.ts:28
↓ 2 callersFunctionisUsageLogsSectionId
(s: string)
web/default/src/features/usage-logs/section-registry.tsx:59
↓ 2 callersFunctionisViolationFeeLog
(other: LogOtherData | null)
web/default/src/features/usage-logs/lib/format.ts:86
↓ 2 callersFunctionisWaffoPancakePayment
(paymentType: string)
web/default/src/features/wallet/lib/payment.ts:85
↓ 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/default/src/features/system-settings/models/tiered-pricing-editor.tsx:346
↓ 2 callersFunctionjsonToConfigs
(jsonString)
web/classic/src/pages/Setting/Chat/SettingsChats.jsx:102
↓ 2 callersMethodkeyForEvent
(event *dto.ResponsesStreamResponse)
service/relayconvert/internal/oai_responses/to_oai_chat_stream_resp.go:518
↓ 2 callersFunctionlistDeploymentContainers
( deploymentId: string | number )
web/default/src/features/models/api.ts:388
↓ 2 callersFunctionlistDeployments
(params: { p?: number page_size?: number status?: string })
web/default/src/features/models/api.ts:348
↓ 2 callersFunctionlistWaffoPancakeSubscriptionProductOptions
()
web/default/src/features/subscriptions/api.ts:182
↓ 2 callersFunctionloadCustomOAuthBindings
()
web/classic/src/components/settings/personal/cards/AccountManagement.jsx:106
↓ 2 callersFunctionloadGroups
()
web/classic/src/components/table/tokens/modals/EditTokenModal.jsx:136
↓ 2 callersFunctionloadMessages
()
web/default/src/features/playground/lib/storage/storage.ts:341
↓ 2 callersFunctionloadMessages
()
web/classic/src/components/playground/configStorage.js:103
↓ 2 callersFunctionloadModels
()
web/classic/src/components/table/tokens/index.jsx:89
↓ 2 callersFunctionloadOptionsFromDatabase
()
model/option.go:189
↓ 2 callersFunctionloadTopups
(currentPage, currentPageSize)
web/classic/src/components/topup/modals/TopupHistoryModal.jsx:68
↓ 2 callersFunctionlogCleanupProgress
(processed int64, total int64)
service/system_task.go:445
↓ 2 callersFunctionmanageRedemption
(id, action, record)
web/classic/src/hooks/redemptions/useRedemptionsData.jsx:124
↓ 2 callersFunctionmapEncoding
(responseFormat string)
relay/channel/volcengine/tts.go:125
↓ 2 callersFunctionmapStatusDataToConfig
( data: StatusApiResponse['data'] | undefined )
web/default/src/hooks/use-system-config.ts:65
↓ 2 callersFunctionmarkAnnouncementsAsRead
()
web/default/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:257
↓ 2 callersFunctionmatchAdvancedCustomRouteModel
(models []string, model string)
dto/channel_settings.go:213
↓ 2 callersFunctionmatchAdvancedCustomRouteModelRule
(rule string, model string)
dto/channel_settings.go:245
↓ 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:1236
↓ 2 callersFunctionmemoryEmailVerificationRateLimiter
(c *gin.Context)
middleware/email-verification-rate-limit.go:57
↓ 2 callersFunctionmergeCounters
(merged map[bucketKey]counters, key bucketKey, value counters)
pkg/perf_metrics/metrics.go:274
↓ 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 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 callersFunctionnormalize
(tags)
web/classic/src/components/table/models/modals/EditModelModal.jsx:377
↓ 2 callersFunctionnormalizeAdminPermissions
( value: AdminPermissionMatrix | null | undefined, catalog: PermissionCatalog )
web/default/src/lib/admin-permissions.ts:77
↓ 2 callersFunctionnormalizeAdvancedCustomRouteModels
(models []string)
dto/channel_settings.go:412
↓ 2 callersFunctionnormalizeAdvancedCustomRouteModels
( models: string[] | undefined )
web/default/src/features/channels/lib/advanced-custom.ts:683
↓ 2 callersFunctionnormalizeBaseUrl
(value: string | undefined)
web/default/src/features/channels/lib/channel-form.ts:628
↓ 2 callersFunctionnormalizeChannelModelMapping
(channel *model.Channel)
controller/channel_upstream_update.go:145
↓ 2 callersFunctionnormalizeChannelTestMode
(value?: string)
web/default/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/default/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/default/src/features/system-settings/general/channel-affinity/rule-editor-dialog.tsx:95
↓ 2 callersFunctionnormalizeKeySource
(src)
web/classic/src/pages/Setting/Operation/SettingsChannelAffinity.jsx:146
↓ 2 callersFunctionnormalizeLabel
(label)
web/classic/src/helpers/render.jsx:2280
↓ 2 callersFunctionnormalizeModels
(models = [])
web/classic/src/components/table/channels/modals/ChannelUpstreamUpdateModal.jsx:37
↓ 2 callersFunctionnormalizeOperation
( operation: Record<string, unknown> = {} )
web/default/src/features/channels/components/dialogs/param-override-editor-dialog.tsx:498
↓ 2 callersFunctionnormalizeOperation
(operation = {})
web/classic/src/components/table/channels/modals/ParamOverrideEditorModal.jsx:794
↓ 2 callersFunctionnormalizePlanType
(value: unknown)
web/default/src/features/channels/components/dialogs/codex-usage-dialog.tsx:220
↓ 2 callersFunctionnormalizePruneRule
(rule: Record<string, unknown> = {})
web/default/src/features/channels/components/dialogs/param-override-editor-dialog.tsx:770
↓ 2 callersFunctionnormalizePruneRule
(rule = {})
web/classic/src/components/table/channels/modals/ParamOverrideEditorModal.jsx:615
↓ 2 callersFunctionnormalizeTierLabel
(label: string | undefined)
web/default/src/features/pricing/lib/billing-expr.ts:307
↓ 2 callersFunctionnormalizeVisualConfig
( config: VisualConfig | null | undefined )
web/default/src/features/pricing/lib/tier-expr.ts:95
↓ 2 callersFunctionnormalizeVisualConfig
(config)
web/classic/src/pages/Setting/Ratio/components/TieredPricingEditor.jsx:139
↓ 2 callersFunctionnoteTaskQuotaClamp
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 callersFunctionnotifyBindingResult
(status: 'success' | 'error')
web/default/src/routes/oauth/$provider.tsx:93
↓ 2 callersFunctionnotifySystemTaskRunner
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 callersFunctionollamaChatHandler
non-stream handler for chat/generate
relay/channel/ollama/stream.go:206
↓ 2 callersFunctionollamaToolCallsToOpenAI
(toolCalls []OllamaToolCall, startIndex int, includeIndex bool)
relay/channel/ollama/stream.go:45
↓ 2 callersFunctiononRefresh
()
web/classic/src/components/settings/DashboardSetting.jsx:75
↓ 2 callersFunctiononRefresh
()
web/classic/src/components/settings/PaymentSetting.jsx:181
↓ 2 callersFunctiononSubmit
(data: z.infer<typeof otpFormSchema>)
web/default/src/features/auth/otp/components/otp-form.tsx:79
↓ 2 callersFunctionopenAIBillingUsageFromUsage
(usage *dto.Usage)
service/relayconvert/internal/oai_chat/to_gemini_chat_resp.go:218
↓ 2 callersFunctionopenAIChatToOllamaChat
(c *gin.Context, r *dto.GeneralOpenAIRequest)
relay/channel/ollama/relay-ollama.go:22
↓ 2 callersFunctionopenContentModal
(content)
web/classic/src/hooks/mj-logs/useMjLogsData.js:269
↓ 2 callersFunctionopenModelDetail
(model)
web/classic/src/hooks/model-pricing/useModelPricingData.jsx:306
↓ 2 callersFunctionopenTokenControllerExternalDB
(t *testing.T, dialect string, dsn string)
controller/token_test.go:115
↓ 2 callersFunctionopenTokenControllerTestDB
(t *testing.T)
controller/token_test.go:74
↓ 2 callersFunctionorderCardCells
( cells: Cell<TData, unknown>[] )
web/default/src/components/data-table/layout/card-row-content.tsx:26
↓ 2 callersMethodoutputStatus
()
service/relayconvert/internal/oai_chat/to_oai_responses_stream_resp.go:363
↓ 2 callersFunctionparseAdvancedCustomRouteModels
(value: string)
web/default/src/features/channels/lib/advanced-custom.ts:498
↓ 2 callersFunctionparseAudio
(audioBase64 string, format string)
service/audio.go:9
↓ 2 callersFunctionparseBoundary
parseBoundary extracts the multipart boundary from the Content-Type header using mime.ParseMediaType
common/gin.go:361
↓ 2 callersFunctionparseChannelConnectionString
(text)
web/classic/src/helpers/token.js:117
↓ 2 callersFunctionparseCodexOAuthKey
(raw string)
service/codex_credential_refresh.go:31
↓ 2 callersFunctionparseConditionOperations
(raw interface{})
relay/common/override.go:1907
↓ 2 callersFunctionparseFlowQuotaTimeRange
(c *gin.Context)
controller/usedata.go:13
↓ 2 callersFunctionparseHEIFDimensions
parseHEIFDimensions parses ISOBMFF box tree to find the ispe box and extract image width/height. Returns (width, height, ok).
service/file_service.go:517
← previousnext →2,001–2,100 of 10,602, ranked by callers