MCPcopy Create free account

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

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

↓ 2 callersFunctionfetchModels
(data: { base_url: string type: number key?: string channel_id?: number task_plugin_key?: string a
web/src/features/channels/api.ts:728
↓ 2 callersFunctionfetchOperation
(ctx, name)
plugins/tasks/vertex-ai/plugin.js:353
↓ 2 callersFunctionfetchPluginReadme
(options: { indexUrl: string plugin: MarketplacePlugin version: string language: string signal: Abor
web/src/features/task-plugins/lib/plugin-readme.ts:129
↓ 2 callersFunctionfilePlaceholder
(image)
plugins/tasks/kling/plugin.js:277
↓ 2 callersFunctionfillFields
fillFields writes each output's released text into its fields. Text that passed unchanged leaves them as they are. A whole answer splits it at the out
relay/requestplugin/reply.go:711
↓ 2 callersFunctionfillFlowChannelNames
(rows []*FlowQuotaData)
model/usedata_flow.go:132
↓ 2 callersFunctionfillFlowTokenNames
(rows []*FlowQuotaData)
model/usedata_flow.go:94
↓ 2 callersFunctionfilterAbilitiesByConstraints
filterAbilitiesByConstraints applies the same ChannelSatisfiesFilters predicate used by the memory-cache path. A failed channel lookup fails closed wh
model/ability.go:190
↓ 2 callersFunctionfilterByQuotaType
( models: PricingModel[], quotaType: string )
web/src/features/pricing/lib/filters.ts:124
↓ 2 callersFunctionfilterRowsByNodes
( rows: FlowQuotaDataItem[], selectedNodes: readonly FlowNodeFilter[] | undefined, stages: FlowNodeKind[
web/src/features/dashboard/lib/flow.ts:392
↓ 2 callersFunctionfilteredOutput
(data)
plugins/tasks/xai/plugin.js:321
↓ 2 callersMethodfinalResponse
()
relaykit/relayconvert/internal/oai_chat/to_oai_responses_stream_resp.go:764
↓ 2 callersMethodfinalize
(response *dto.OpenAIResponsesResponse)
relaykit/relayconvert/internal/oai_responses/to_oai_chat_stream_resp.go:522
↓ 2 callersFunctionfindButton
(text: string, required = true)
web/src/features/keys/components/__tests__/api-keys-mutate-drawer.test.tsx:146
↓ 2 callersFunctionfindOrCreateOAuthUser
findOrCreateOAuthUser finds the existing user or creates a new one. For a legacy GitHub binding that still waits for the login verification, it also r
controller/oauth.go:399
↓ 2 callersMethodfindToolForEvent
(event *dto.ResponsesStreamResponse)
relaykit/relayconvert/internal/oai_responses/to_oai_chat_stream_resp.go:410
↓ 2 callersMethodfindToolIndex
(event *dto.ResponsesStreamResponse)
relaykit/relayconvert/internal/oai_responses/to_oai_chat_stream_resp.go:916
↓ 2 callersFunctionfindVariable
(node, sourceCode)
web/scripts/oxlint/intl-locale.mjs:47
↓ 2 callersFunctionfindingsOf
(blocking)
plugins/tasks/content-moderation/plugin.js:314
↓ 2 callersMethodfinish
(response *dto.OpenAIResponsesResponse, estimatedInputTokens int)
relaykit/relayconvert/internal/oai_responses/to_claude_messages_stream_resp.go:456
↓ 2 callersFunctionfinishAppliedSyncTasks
finishAppliedSyncTasks runs on the master with the system tasks. A sync task is done once every online node that keeps its topic has applied it or a n
service/node_sync.go:337
↓ 2 callersMethodfinishChoice
(choiceIndex int)
relaykit/relayconvert/internal/oai_chat/to_gemini_chat_resp.go:452
↓ 2 callersMethodfinishInsert
(inviterId int)
model/user.go:701
↓ 2 callersMethodfinishWhole
finishWhole checks a non-stream answer and writes what the client gets.
relay/requestplugin/reply.go:936
↓ 2 callersFunctionfirstMatch
(config, rules, texts)
plugins/tasks/request-filter/plugin.js:351
↓ 2 callersFunctionfitWithin
fitWithin scales an image down so neither side exceeds limit, rounding the shorter side down. Smaller images are not enlarged.
tokenkit/image.go:266
↓ 2 callersFunctionflattenValues
( values: T, parentKey?: string, result: Record<string, unknown> = {} )
web/src/features/system-settings/hooks/use-settings-form.ts:38
↓ 2 callersFunctionflowDisplayState
(options: { isLoading: boolean isError: boolean linkCount: number themeReady: boolean })
web/src/features/dashboard/lib/flow-selection.ts:43
↓ 2 callersFunctionflowNodeFilterKey
(filter: FlowNodeFilter)
web/src/features/dashboard/components/flow/flow-charts.tsx:223
↓ 2 callersFunctionflowRow
(t *testing.T, token string)
service/provider_plugin_login_test.go:50
↓ 2 callersFunctionflowSankeyDatumValue
(datum: unknown, key: string)
web/src/features/dashboard/lib/flow.ts:1057
↓ 2 callersFunctionflushCompletedBuckets
()
pkg/perf_metrics/flush.go:25
↓ 2 callersFunctionfollowChannelModelMapping
followChannelModelMapping walks one channel's mapping the same way ModelMappedHelper does: visited-set cycle detection, self-map stops at the current
model/task_model_alias.go:216
↓ 2 callersFunctionfooterButton
The dialog chrome also renders an sr-only "Close", so scope to the footer.
web/src/features/task-plugins/__tests__/upload-dialog.test.tsx:72
↓ 2 callersFunctionforcedWebSearch
(choice *Choice)
relaykit/relayconvert/internal/toolconv/encode.go:173
↓ 2 callersFunctionformatBytes
(bytes: number, decimals = 2)
web/src/features/system-settings/maintenance/server-log-files.tsx:60
↓ 2 callersFunctionformatCurrency
(amount: number | string)
web/src/features/wallet/lib/format.ts:55
↓ 2 callersFunctionformatDuration
( submitTime?: number, finishTime?: number, unit: 'seconds' | 'milliseconds' = 'milliseconds' )
web/src/features/usage-logs/lib/format.ts:435
↓ 2 callersFunctionformatDuration
( plan: Partial<SubscriptionPlan>, t: TFunction )
web/src/features/subscriptions/lib/format.ts:25
↓ 2 callersFunctionformatDurationSeconds
( seconds: unknown, t: (key: string) => string )
web/src/features/channels/components/dialogs/codex-usage-dialog.tsx:189
↓ 2 callersFunctionformatFixedPrice
( model: PricingModel, group: string, showWithRecharge = false, priceRate = 1, usdExchangeRate = 1,
web/src/features/pricing/lib/price.ts:215
↓ 2 callersFunctionformatGroupPrice
( model: PricingModel, group: string, type: PriceType, tokenUnit: TokenUnit, showWithRecharge = fals
web/src/features/pricing/lib/price.ts:180
↓ 2 callersFunctionformatGroups
(groups: string[])
web/src/features/channels/lib/channel-form.ts:1095
↓ 2 callersFunctionformatJsonDraft
(value: string)
web/src/components/json-code-editor/json-code-editor-utils.ts:70
↓ 2 callersFunctionformatJsonForEditor
(value: string, fallback = '[]')
web/src/features/system-settings/content/utils.ts:19
↓ 2 callersFunctionformatModelName
(log: UsageLog)
web/src/features/usage-logs/lib/format.ts:243
↓ 2 callersFunctionformatNumberWithSuffix
( value: number, digitsLarge: number, digitsSmall: number, abbreviate: boolean )
web/src/lib/currency.ts:269
↓ 2 callersFunctionformatQuotaValue
(value: number)
web/src/features/dashboard/lib/charts.ts:81
↓ 2 callersFunctionformatRatioCompact
(ratio: number | undefined)
web/src/features/usage-logs/components/columns/common-logs-columns.tsx:89
↓ 2 callersFunctionformatRequestPrice
( model: PricingModel, showWithRecharge = false, priceRate = 1, usdExchangeRate = 1, selectedGroup?:
web/src/features/pricing/lib/price.ts:247
↓ 2 callersFunctionformatResponseTime
(timeMs: number, t?: TFunction)
web/src/features/channels/lib/channel-utils.ts:371
↓ 2 callersFunctionformatSyncPriceAmount
( value: number, currency: PricingCurrency )
web/src/features/system-settings/models/upstream-ratio-sync-helpers.ts:101
↓ 2 callersFunctionformatTimestamp
(ts: number)
web/src/features/subscriptions/lib/format.ts:65
↓ 2 callersFunctionformatUseTime
(seconds: number)
web/src/lib/format.ts:274
↓ 2 callersFunctionformatWaffoPancakeAmount
(payMoney float64)
controller/topup_waffo_pancake.go:94
↓ 2 callersFunctionfulfillOrder
fulfillOrder is the shared logic for crediting quota after payment is confirmed.
controller/topup_stripe.go:276
↓ 2 callersFunctiongemini25BudgetForEffort
gemini25BudgetForEffort follows Google's OpenAI-compatible mapping, where high is 24576; xhigh and max, which that mapping lacks, take the model's lar
relaykit/relayconvert/reasoning/gemini.go:486
↓ 2 callersFunctiongeminiCodeExecutionRequest
(t *testing.T)
relaykit/relayconvert/internal/toolconv/policy_test.go:14
↓ 2 callersFunctiongeminiFields
geminiFields are the text parts of a candidate, thoughts left out; one output per candidate.
relay/requestplugin/reply.go:665
↓ 2 callersFunctiongeminiGroundingMetadata
(supports string)
relaykit/relayconvert/internal/gemini_chat/to_oai_chat_resp_test.go:189
↓ 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:741
↓ 2 callersFunctiongeminiResponseUsageText
(response *dto.GeminiChatResponse)
relay/channel/gemini/relay-gemini.go:82
↓ 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:797
↓ 2 callersFunctiongetAdvancedCustomConverterOptions
( incomingPath: string )
web/src/features/channels/lib/advanced-custom.ts:548
↓ 2 callersFunctiongetAdvancedCustomIncomingPathOptions
( converter: AdvancedCustomConverter )
web/src/features/channels/lib/advanced-custom.ts:518
↓ 2 callersFunctiongetAdvancedCustomModelRuleKind
( modelRule: string )
web/src/features/channels/lib/advanced-custom.ts:611
↓ 2 callersFunctiongetAdvancedCustomRegexModelPattern
(modelRule: string)
web/src/features/channels/lib/advanced-custom.ts:619
↓ 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:225
↓ 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 callersFunctiongetDashboardPerfMetricsSummary
( hours = 24 )
web/src/features/performance-metrics/api.ts:23
↓ 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
← previousnext →4,001–4,100 of 15,592, ranked by callers