MCPcopy Create free account

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

Functions15,409 in github.com/QuantumNous/new-api

↓ 2 callersFunctiongeminiLevelForEffort
(model string, effort Effort)
relaykit/relayconvert/reasoning/gemini.go:501
↓ 2 callersFunctiongeminiReasoningDiagnostic
(code string, message string)
relaykit/relayconvert/reasoning/gemini.go:392
↓ 2 callersFunctiongeminiResponseToolCall
(item *dto.GeminiPart)
relaykit/relayconvert/internal/gemini_chat/to_oai_chat_resp.go:722
↓ 2 callersFunctiongeminiResponseUsageText
(response *dto.GeminiChatResponse)
relay/channel/gemini/relay-gemini.go:69
↓ 2 callersFunctiongeminiStreamChunk
(raw string)
relaykit/relayconvert/golden_test.go:448
↓ 2 callersFunctiongeminiUsesMediaResolution
geminiUsesMediaResolution reports whether a lower-cased Gemini model bills images by media resolution regardless of size (Gemini 3 and later, and name
tokenkit/image.go:227
↓ 2 callersFunctiongenCreemLink
(ctx context.Context, referenceId string, product *CreemProduct, email string, username string)
controller/topup_creem.go:384
↓ 2 callersFunctiongenerateDefaultSidebarConfigForRole
根据用户角色生成默认的边栏配置
model/user.go:225
↓ 2 callersFunctiongenerateEmailBindingCodes
(requireOld bool)
service/email_binding.go:152
↓ 2 callersFunctiongenerationRequest
(source, identity)
plugins/tasks/xai/plugin.js:202
↓ 2 callersFunctiongetAdvancedCustomAuthMode
( route: AdvancedCustomRoute )
web/src/features/channels/lib/advanced-custom.ts:789
↓ 2 callersFunctiongetAdvancedCustomConverterOptions
( incomingPath: string )
web/src/features/channels/lib/advanced-custom.ts:540
↓ 2 callersFunctiongetAdvancedCustomIncomingPathOptions
( converter: AdvancedCustomConverter )
web/src/features/channels/lib/advanced-custom.ts:510
↓ 2 callersFunctiongetAdvancedCustomModelRuleKind
( modelRule: string )
web/src/features/channels/lib/advanced-custom.ts:603
↓ 2 callersFunctiongetAdvancedCustomRegexModelPattern
(modelRule: string)
web/src/features/channels/lib/advanced-custom.ts:611
↓ 2 callersFunctiongetAffiliateCode
()
web/src/features/auth/lib/storage.ts:39
↓ 2 callersFunctiongetAnnouncementColorClass
(type?: string)
web/src/lib/colors.ts:139
↓ 2 callersFunctiongetAnnouncementKey
* Generate a unique key for an announcement * Prefer backend id, fall back to a content hash so edits register
web/src/hooks/use-notifications.ts:44
↓ 2 callersFunctiongetApiKeyFormDefaultValues
( defaultUseAutoGroup: boolean )
web/src/features/keys/lib/api-key-form.ts:122
↓ 2 callersFunctiongetApiKeyFormSchema
(t: TFunction, maxAutoGroups = 5)
web/src/features/keys/lib/api-key-form.ts:31
↓ 2 callersFunctiongetAwsModelID
(requestModel string)
relay/channel/aws/relay-aws.go:228
↓ 2 callersFunctiongetBillingDisplayMeta
(config: CurrencyConfig)
web/src/lib/currency.ts:218
↓ 2 callersFunctiongetBillingModeLabelKey
( listedModel: PricingModel )
web/src/features/pricing/lib/billing-mode.ts:30
↓ 2 callersFunctiongetCellLabel
(cell: Cell<TData, unknown>)
web/src/components/data-table/layout/card-cell-utils.ts:28
↓ 2 callersFunctiongetChannel
(c *gin.Context, info *relaycommon.RelayInfo, retryParam *service.RetryParam)
controller/relay.go:328
↓ 2 callersFunctiongetChannelAffinityContext
(c *gin.Context)
service/channel_affinity.go:360
↓ 2 callersFunctiongetChannelAffinityUsageCacheStatsCache
()
service/channel_affinity.go:985
↓ 2 callersFunctiongetChannelBalanceUsedPercent
( windows: ChannelBalanceWindow[] | null | undefined )
web/src/features/channels/lib/channel-balance.ts:61
↓ 2 callersFunctiongetChannelConfigurationSection
( field: string )
web/src/features/channels/lib/channel-configuration.ts:117
↓ 2 callersFunctiongetChannelOps
( autoBan?: boolean )
web/src/features/channels/api.ts:209
↓ 2 callersFunctiongetChannelTypeConfig
(type: number)
web/src/features/channels/lib/channel-type-config.ts:188
↓ 2 callersFunctiongetClampedColumnSize
( header: Header<TData, unknown>, nextSize: number )
web/src/components/data-table/core/data-table-header.tsx:165
↓ 2 callersFunctiongetContentTypeByEncoding
(encoding string)
relay/channel/volcengine/tts.go:132
↓ 2 callersMethodgetCurrent
()
relay/responses_websocket.go:824
↓ 2 callersFunctiongetCursorLocation
( value: string, selectionStart: number )
web/src/components/json-code-editor/json-code-editor-utils.ts:86
↓ 2 callersFunctiongetDateDaysAgo
(days: number)
web/src/features/system-settings/maintenance/history-log-cleanup.tsx:55
↓ 2 callersFunctiongetDateHoursAgo
(hours: number)
web/src/features/system-settings/maintenance/history-log-cleanup.tsx:49
↓ 2 callersFunctiongetDeepSeekBalanceUSD
(response DeepSeekUsageResponse, usdExchangeRate float64)
controller/channel-billing.go:282
↓ 2 callersFunctiongetDefaultEndpointForChannel
(channel: UpstreamChannel)
web/src/features/system-settings/models/upstream-ratio-sync.tsx:83
↓ 2 callersFunctiongetDefaultIconName
(type: string)
web/src/features/system-settings/integrations/payment-methods-visual-editor.tsx:53
↓ 2 callersFunctiongetDisplayMeta
(config: CurrencyConfig)
web/src/lib/currency.ts:187
↓ 2 callersFunctiongetDisplayName
(user?: UserProfile)
web/src/features/profile/lib/format.ts:41
↓ 2 callersFunctiongetEnabledModels
()
web/src/features/channels/api.ts:811
↓ 2 callersFunctiongetFetchModelsResponseBody
(method string, requestURL string, channel *model.Channel, headers http.Header)
controller/channel_upstream_update.go:338
↓ 2 callersFunctiongetFirstResponseTimeColor
( seconds: number )
web/src/features/usage-logs/lib/format.ts:206
↓ 2 callersFunctiongetFlowStages
(role: FlowRole)
web/src/features/dashboard/lib/flow.ts:260
↓ 2 callersFunctiongetHeaderNavAccess
(module string)
middleware/header_nav.go:17
↓ 2 callersFunctiongetHeaderPassthroughState
( headerOverride: string | undefined )
web/src/features/channels/lib/header-passthrough.ts:53
↓ 2 callersFunctiongetImageConfig
(reader io.Reader)
service/image.go:161
↓ 2 callersFunctiongetInferenceChannelStatus
(c *gin.Context, channelType int)
controller/channel_inference.go:57
↓ 2 callersFunctiongetIoAPIKey
(c *gin.Context)
controller/deployment.go:16
↓ 2 callersFunctiongetIoClient
(c *gin.Context)
controller/deployment.go:42
↓ 2 callersFunctiongetJsonValidationState
(value: string)
web/src/components/json-code-editor/json-code-editor-utils.ts:56
↓ 2 callersFunctiongetKeyPromptForType
(type: number)
web/src/features/channels/lib/channel-utils.ts:779
↓ 2 callersFunctiongetLogCsvHeader
(isAdmin: boolean, t: Translate)
web/src/features/usage-logs/lib/export.ts:35
↓ 2 callersFunctiongetLogCsvRow
( log: UsageLog, isAdmin: boolean, t: Translate )
web/src/features/usage-logs/lib/export.ts:58
↓ 2 callersFunctiongetLogFiles
getLogFiles 读取日志目录中的日志文件列表
controller/performance.go:187
↓ 2 callersFunctiongetMatchLabel
(mode: string)
web/src/features/system-settings/models/tiered-pricing-editor.tsx:366
↓ 2 callersFunctiongetMinTopup
()
controller/topup.go:189
↓ 2 callersFunctiongetModelCategory
(modelName: string)
web/src/features/channels/lib/model-categories.ts:22
↓ 2 callersFunctiongetModelFromJSONBody
(c *gin.Context)
middleware/distributor.go:285
↓ 2 callersFunctiongetModelQuotaType
( listedModel: PricingModel )
web/src/features/pricing/lib/filters.ts:87
↓ 2 callersFunctiongetModelRequest
(c *gin.Context)
middleware/distributor.go:421
↓ 2 callersFunctiongetModuleAccessFromStatus
( status: Record<string, unknown> | null, module: HeaderNavModule )
web/src/lib/nav-modules.ts:153
↓ 2 callersFunctiongetNodeName
(instance: SystemInstance)
web/src/features/system-info/components/system-instances-panel.tsx:120
↓ 2 callersFunctiongetNotice
()
web/src/lib/api.ts:78
↓ 2 callersFunctiongetOperationSummary
( operation: ParamOverrideOperation, index: number )
web/src/features/channels/components/dialogs/param-override-editor-dialog.tsx:578
↓ 2 callersFunctiongetOptionLabel
( options: ReadonlyArray<{ value: string; label: string }>, value: string )
web/src/features/channels/components/dialogs/advanced-custom-editor-dialog.tsx:162
↓ 2 callersFunctiongetOptionValue
(options: Array<{ key: string; value: string }> | undefined, defaults: T)
web/src/features/system-settings/hooks/use-system-options.ts:104
↓ 2 callersMethodgetOrCreate
( rawProxyURL string, config *proxyURLConfig, policy HTTPTransportPolicy, factory func() (*http.Client, er
service/http_client.go:238
↓ 2 callersFunctiongetOriginID
()
pkg/wsmanager/wsmanager.go:241
↓ 2 callersFunctiongetParamOverrideAuditRecorder
(context map[string]any)
relay/common/override.go:379
↓ 2 callersFunctiongetParamOverrideRegex
map[string]*regexp.Regexp
relay/common/override.go:28
↓ 2 callersFunctiongetPasswordConfirmationState
( password: string, confirmation: string )
web/src/components/password-strength-utils.ts:195
↓ 2 callersFunctiongetPayMoney
(amount int64, group string)
controller/topup.go:159
↓ 2 callersFunctiongetPayloadConfigFromPayload
( config: ChartConfig, payload: unknown, key: string )
web/src/components/ui/chart.tsx:346
↓ 2 callersFunctiongetPerfMetrics
( modelName: string, hours = 24 )
web/src/features/performance-metrics/api.ts:34
↓ 2 callersFunctiongetPinnedColumnMap
(pinnedColumns?: DataTablePinnedColumn[])
web/src/components/data-table/core/column-pinning.ts:49
↓ 2 callersFunctiongetPriceChangeKind
(row: ModelRow)
web/src/features/system-settings/models/model-pricing-snapshots.ts:326
↓ 2 callersFunctiongetPriceLineValues
( snapshot: ModelPricingSnapshot | undefined, t: Translate )
web/src/features/system-settings/models/price-change-diff.tsx:149
↓ 2 callersFunctiongetPricingEndpointTypesForAbility
(ability AbilityWithChannel, advancedCustomConfigs map[int]*dto.AdvancedCustomConfig)
model/pricing.go:128
↓ 2 callersFunctiongetRedemptions
( params: GetRedemptionsParams = {} )
web/src/features/redemption-codes/api.ts:35
↓ 2 callersFunctiongetRequestRuleMatchOptions
(source: string)
web/src/features/pricing/lib/billing-expr.ts:696
↓ 2 callersFunctiongetRequestedCodeLanguage
(language?: string)
web/src/components/ai-elements/code-block.tsx:216
↓ 2 callersFunctiongetResolvedColumnClassNameFromMap
( getColumnClassName?: DataTableColumnClassName, pinnedColumnById?: Map<string, DataTablePinnedColumn> )
web/src/components/data-table/core/column-pinning.ts:33
↓ 2 callersFunctiongetResponseTimeColor
( seconds: number, completionTokens: number )
web/src/features/usage-logs/lib/format.ts:228
↓ 2 callersFunctiongetRoleLabel
(role?: number)
web/src/lib/roles.ts:43
↓ 2 callersFunctiongetRunwayDays
( remainQuota: number, recentUsage: number )
web/src/features/dashboard/components/overview/summary-cards.tsx:103
↓ 2 callersFunctiongetSMTPAuth
()
common/email.go:29
↓ 2 callersFunctiongetSafePluginAuthorUrl
( author?: TaskPluginAuthor )
web/src/features/usage-logs/lib/task-artifacts.ts:230
↓ 2 callersFunctiongetSaveButton
()
web/src/features/redemption-codes/components/__tests__/redemptions-mutate-drawer.test.tsx:142
↓ 2 callersFunctiongetSavedLanguage
(user: AuthUser)
web/src/features/auth/lib/auth-redirect.ts:23
↓ 2 callersFunctiongetSectionMeta
(sectionId: SectionId)
web/src/features/system-settings/utils/section-registry.ts:91
↓ 2 callersFunctiongetSelfSubscriptionFull
()
web/src/features/subscriptions/api.ts:215
↓ 2 callersFunctiongetServerErrorStatus
(value: unknown)
web/src/lib/server-error-message.ts:125
↓ 2 callersFunctiongetSmtpSecurityMode
(values: { SMTPSSLEnabled: boolean SMTPStartTLSEnabled: boolean })
web/src/features/system-settings/integrations/email-settings-section.tsx:65
↓ 2 callersFunctiongetStatus
()
web/src/lib/api.ts:73
↓ 2 callersFunctiongetString
(value: unknown)
web/src/features/channels/lib/ollama-utils.ts:42
↓ 2 callersFunctiongetStripeCreditedQuota
(amount int64, group string)
controller/topup_stripe.go:414
↓ 2 callersFunctiongetStripeMinTopup
()
controller/topup_stripe.go:445
← previousnext →4,001–4,100 of 15,409, ranked by callers