MCPcopy Create free account

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

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

↓ 1 callersFunctioncollectInputItems
(texts, items)
plugins/tasks/request-filter/plugin.js:190
↓ 1 callersFunctioncollectInvalidStatusCodeEntries
( statusCodeMappingStr: string )
web/src/features/channels/lib/status-code-risk-guard.ts:40
↓ 1 callersFunctioncollectModelNamesFromOptionValue
(raw string, modelNames map[string]struct{})
controller/option.go:51
↓ 1 callersFunctioncollectNewDisallowedStatusCodeRedirects
( originalStr: string, currentStr: string )
web/src/features/channels/lib/status-code-risk-guard.ts:92
↓ 1 callersFunctioncollectPendingUpstreamModelChanges
(channel *model.Channel, settings dto.ChannelOtherSettings)
controller/channel_upstream_update.go:243
↓ 1 callersFunctioncollectPrunedObjects
collectPrunedObjects 遍历 node:数组逐个检查元素,对象满足条件时(根节点除外) 整个删除,recursive 时继续检查对象的成员。要删除的路径按文档顺序追加到 pruned,返回值表示 node 本身是否要删除。
relay/common/override.go:2100
↓ 1 callersFunctioncollectSchemaMisfits
(schema any, depth int, found map[string]struct{})
relaykit/relayconvert/internal/shared/gemini/schema.go:320
↓ 1 callersFunctioncollectSourceFiles
(dir)
web/scripts/add-copyright.mjs:92
↓ 1 callersFunctioncollectStaticConstants
Only local constants whose containers cannot escape or be mutated are previewable.
web/src/features/task-plugins/lib/plugin-meta-preview.ts:91
↓ 1 callersFunctioncollectSystemStatus
(usage *containerUsage)
common/system_monitor.go:114
↓ 1 callersFunctioncollectTargetFiles
(rootDir)
web/scripts/add-copyright.mjs:118
↓ 1 callersFunctioncollectTexts
(body, format)
plugins/tasks/request-filter/plugin.js:222
↓ 1 callersFunctioncollectToolSurchargeItem
(items []ToolSurchargeItem, name string, count int, modelName string)
service/text_quota.go:107
↓ 1 callersFunctioncollectWildcardPaths
(node any, segments []string, prefix []string)
relay/common/override.go:1731
↓ 1 callersFunctioncolorPalette
( colorCount: number, palette?: readonly string[] )
web/src/features/dashboard/lib/flow.ts:290
↓ 1 callersFunctioncolumnWidth
How wide a table column is: patterns and long text take the room left.
web/src/features/task-plugins/components/request-plugin-config-rows.tsx:55
↓ 1 callersFunctioncommit
( ref: React.RefObject<ModelPricingEditorPanelHandle | null> )
web/src/features/model-pricing/__tests__/editor-currency.test.tsx:138
↓ 1 callersFunctioncommunityPlugin
(key: string, recommended = false)
web/src/features/task-plugins/__tests__/marketplace-panel.test.tsx:223
↓ 1 callersFunctioncompareEqual
(jsonValue, targetValue ojson.Result)
relay/common/override.go:766
↓ 1 callersMethodcompareGjsonValues
compareGjsonValues 直接比较两个ojson.Result,支持所有比较模式
relay/common/override.go:733
↓ 1 callersFunctioncompareNumeric
(jsonValue, targetValue ojson.Result, operator string)
relay/common/override.go:795
↓ 1 callersFunctioncompileAdvancedCustomModelRegex
pattern string -> *regexp.Regexp (nil when invalid)
relaykit/dto/channel_settings.go:413
↓ 1 callersFunctioncompileRule
(rule, id)
plugins/tasks/request-filter/plugin.js:305
↓ 1 callersFunctioncompiledThinkingBlacklist
()
setting/model_setting/global.go:96
↓ 1 callersFunctioncompleteFirstSecurityFactor
(t *testing.T, identity service.AuthIdentity, proof service.SecurityProof)
controller/security_enrollment_test.go:1623
↓ 1 callersFunctioncompleteOAuthBinding
()
web/src/features/security/components/account-bindings.tsx:174
↓ 1 callersFunctioncompleteOrder
( request: CompleteOrderRequest )
web/src/features/wallet/api.ts:243
↓ 1 callersFunctioncompleteTwoFactorVerification
()
web/src/features/users/components/__tests__/step-up-verification.test.tsx:97
↓ 1 callersFunctioncompleteUnbindVerification
()
web/src/features/users/components/dialogs/__tests__/user-binding-dialog.test.tsx:96
↓ 1 callersFunctioncompletionMessage
(ctx, task)
plugins/tasks/vertex-ai/plugin.js:559
↓ 1 callersFunctioncomputeSourceSha256
( source: string )
web/src/features/task-plugins/lib/plugin-url.ts:132
↓ 1 callersFunctioncomputeStatusCounts
(total int, deployments []ionet.Deployment)
controller/deployment.go:189
↓ 1 callersFunctionconditionRows
Combine adjacent bounds for presentation; retain the original nodes and grouping when editing.
web/src/features/system-settings/models/visual-condition-tree.tsx:84
↓ 1 callersFunctionconfigCount
(members map[string]gjson.Result, name, subject string)
pkg/jsplugin/config_schema.go:705
↓ 1 callersFunctionconfigNumber
(members map[string]gjson.Result, name, subject string)
pkg/jsplugin/config_schema.go:694
↓ 1 callersFunctionconfigureProxyTransport
(transport *http.Transport, proxyURL *url.URL)
service/http_client.go:295
↓ 1 callersFunctionconfirmRevoke
()
web/src/features/security/components/access-tokens-card.tsx:94
↓ 1 callersFunctionconflict
()
web/src/features/models/__tests__/vendor-management.test.tsx:71
↓ 1 callersFunctionconsumeLogCount
(t *testing.T)
router/provider_plugin_gaps_test.go:48
↓ 1 callersFunctioncontainsPricingMarker
(node: ExpressionNode)
web/src/features/pricing/lib/billing-expression/parser.ts:427
↓ 1 callersFunctioncontainsValue
(current any, expected any)
oauth/generic.go:610
↓ 1 callersFunctioncontentPtr
(s string)
relay/channel/ollama/stream.go:355
↓ 1 callersFunctioncontentText
contentText measures one message content, a string or an array of parts: its text length in characters and whether a part is an image.
relay/requestplugin/relay.go:557
↓ 1 callersFunctioncontinuePluginLogin
( channelId: number, flow: string, input: PluginLoginInput )
web/src/features/channels/api.ts:497
↓ 1 callersFunctionconvertBlobUrlToDataUrl
(url: string)
web/src/components/ai-elements/prompt-input.tsx:689
↓ 1 callersFunctionconvertCf2CompletionsRequest
(textRequest dto.GeneralOpenAIRequest)
relay/channel/cloudflare/relay_cloudflare.go:23
↓ 1 callersFunctionconvertChatResponseFormatToResponsesText
(reqFormat *dto.ResponseFormat)
relaykit/relayconvert/internal/oai_chat/to_oai_responses_req.go:42
↓ 1 callersFunctionconvertCozeChatRequest
(c *gin.Context, request dto.GeneralOpenAIRequest)
relay/channel/coze/relay-coze.go:23
↓ 1 callersFunctionconvertDetectedLanguage
(value: string)
web/src/i18n/languages.ts:63
↓ 1 callersFunctionconvertGeminiRoleToOpenAI
(geminiRole string)
relaykit/relayconvert/internal/gemini_chat/to_oai_chat_req.go:357
↓ 1 callersFunctionconvertModelsDevToRatioData
convertModelsDevToRatioData parses models.dev /api.json and converts provider pricing metadata into local ratio format. models.dev costs are USD per 1
controller/ratio_sync.go:1050
↓ 1 callersMethodconvertOpenAICompatibleAudioRequest
(c *gin.Context, info *relaycommon.RelayInfo, request dto.AudioRequest)
relay/channel/advancedcustom/adaptor.go:628
↓ 1 callersMethodconvertOpenAICompatibleEmbeddingRequest
(c *gin.Context, info *relaycommon.RelayInfo, request dto.EmbeddingRequest)
relay/channel/advancedcustom/adaptor.go:620
↓ 1 callersMethodconvertOpenAICompatibleImageRequest
(c *gin.Context, info *relaycommon.RelayInfo, request dto.ImageRequest)
relay/channel/advancedcustom/adaptor.go:636
↓ 1 callersMethodconvertOpenAICompatibleResponsesRequest
(c *gin.Context, info *relaycommon.RelayInfo, request dto.OpenAIResponsesRequest)
relay/channel/advancedcustom/adaptor.go:612
↓ 1 callersFunctionconvertOpenRouterToRatioData
convertOpenRouterToRatioData parses OpenRouter's /v1/models response and converts per-token USD pricing into the local ratio format. model_ratio = pro
controller/ratio_sync.go:868
↓ 1 callersFunctionconvertPricing
()
web/src/features/system-settings/models/model-pricing-sheet.tsx:726
↓ 1 callersFunctionconvertTimestamp
(timestamp: number)
web/src/features/usage-logs/lib/utils.ts:107
↓ 1 callersFunctionconvertToMultimodalEmbeddingRequest
(request dto.EmbeddingRequest)
relay/channel/ali/embedding.go:60
↓ 1 callersFunctionconvertToNovaRequest
转换OpenAI请求为Nova格式
relay/channel/aws/dto.go:86
↓ 1 callersFunctionconverted
(ctx)
plugins/tasks/google/plugin.js:173
↓ 1 callersFunctionconverterLabelKey
i18n key for a route converter; unknown converters are shown verbatim.
web/src/features/task-plugins/components/plugin-relay-routes.tsx:29
↓ 1 callersFunctioncopyCodexSSEHeaders
(c *gin.Context, resp *http.Response)
relay/helper/stream_scanner.go:58
↓ 1 callersFunctioncopyDefaultWaffoPayMethods
()
setting/payment_waffo.go:54
↓ 1 callersFunctioncopyLogOtherMap
(values map[string]any)
model/log_other.go:145
↓ 1 callersFunctioncopyTaskMediaResponseHeaders
(destination, source http.Header)
controller/video_proxy.go:620
↓ 1 callersFunctioncopyValue
(doc *ojson.Doc, fromPath, toPath string)
relay/common/override.go:1696
↓ 1 callersFunctioncountLeafKeys
(obj)
web/scripts/sync-i18n.mjs:131
↓ 1 callersFunctioncountOverloadSample
(samples *int, over bool)
common/system_monitor.go:100
↓ 1 callersFunctioncountUserSubscriptionsForPaymentGuardTest
(t *testing.T, userID int)
model/payment_method_guard_test.go:77
↓ 1 callersFunctioncoverMidjourneyTaskDto
(c *gin.Context, originTask *model.Midjourney)
relay/mjproxy_handler.go:144
↓ 1 callersFunctioncozeChatHandler
(c *gin.Context, info *relaycommon.RelayInfo, resp *http.Response)
relay/channel/coze/relay-coze.go:49
↓ 1 callersFunctioncozeChatStreamHandler
(c *gin.Context, info *relaycommon.RelayInfo, resp *http.Response)
relay/channel/coze/relay-coze.go:100
↓ 1 callersFunctioncreateAccessToken
( input: AccessTokenInput, proofToken: string, signal: AbortSignal )
web/src/features/security/api.ts:106
↓ 1 callersFunctioncreateAdvancedCustomConfig
()
web/src/features/channels/lib/advanced-custom.ts:425
↓ 1 callersFunctioncreateAdvancedCustomManagementRoute
( path: string )
web/src/features/channels/lib/advanced-custom.ts:431
↓ 1 callersFunctioncreateAmountDiscountDialogSchema
(t: (key: string) => string)
web/src/features/system-settings/integrations/amount-discount-dialog.tsx:38
↓ 1 callersFunctioncreateApiInfoSchema
(t: (key: string) => string)
web/src/features/system-settings/content/api-info-section.tsx:82
↓ 1 callersFunctioncreateApiKey
( data: ApiKeyFormData )
web/src/features/keys/api.ts:73
↓ 1 callersFunctioncreateChannel
( data: AddChannelRequest )
web/src/features/channels/api.ts:235
↓ 1 callersFunctioncreateChannelHealthSchema
( t: (key: string, options?: Record<string, unknown>) => string )
web/src/features/system-settings/request-policies/channel-health-section.tsx:79
↓ 1 callersFunctioncreateChannelSelectAutoGroupsChannel
(t *testing.T, db *gorm.DB, id int, group, modelName string)
service/channel_select_auto_groups_test.go:67
↓ 1 callersFunctioncreateChatDialogSchema
(t: (key: string) => string)
web/src/features/system-settings/content/chat-dialog.tsx:38
↓ 1 callersFunctioncreateChatSchema
(t: (key: string) => string)
web/src/features/system-settings/content/chat-settings-section.tsx:44
↓ 1 callersFunctioncreateClaudeNativeRoutes
()
web/src/features/channels/lib/advanced-custom.ts:259
↓ 1 callersFunctioncreateCredential
( options: PublicKeyCredentialCreationOptions, signal?: AbortSignal )
web/src/lib/passkey.ts:251
↓ 1 callersFunctioncreateCustomOAuthProvider
( data: Omit<CustomOAuthProvider, 'id'> )
web/src/features/system-settings/auth/custom-oauth/api.ts:51
↓ 1 callersFunctioncreateDefaultCondition
()
web/src/features/channels/components/dialogs/param-override-editor-dialog.tsx:508
↓ 1 callersFunctioncreateDeployment
(data: { resource_private_name: string duration_hours: number gpus_per_container: number hardware_id:
web/src/features/models/api.ts:533
↓ 1 callersFunctioncreateEmptyModelMappingGuardrail
()
web/src/features/channels/components/drawers/channel-mutate-drawer.tsx:272
↓ 1 callersFunctioncreateEmptyRuleGroup
()
web/src/features/pricing/lib/billing-expr.ts:682
↓ 1 callersFunctioncreateFailReasonColumn
(config: { accessorKey?: string headerLabel: string cellTitle: string })
web/src/features/usage-logs/components/columns/column-helpers.tsx:202
↓ 1 callersFunctioncreateFakeTimers
()
web/src/features/channels/lib/__tests__/channel-field-update.test.ts:26
↓ 1 callersFunctioncreateFallbackResult
(error?: unknown)
web/src/features/channels/components/dialogs/channel-test-dialog.tsx:674
↓ 1 callersFunctioncreateGatewayNativeRoutes
()
web/src/features/channels/lib/advanced-custom.ts:283
↓ 1 callersFunctioncreateGeminiNativeRoutes
()
web/src/features/channels/lib/advanced-custom.ts:270
↓ 1 callersFunctioncreateGroupSchema
(t: Translate)
web/src/features/system-settings/models/ratio-settings-card.tsx:134
↓ 1 callersFunctioncreateMenuEvent
()
web/src/components/ui/dropdown-menu.test.tsx:23
↓ 1 callersFunctioncreateModel
( data: Partial<Model> )
web/src/features/models/api.ts:76
↓ 1 callersFunctioncreateModelPricingSchema
(t: (key: string) => string)
web/src/features/system-settings/models/model-pricing-core.ts:43
← previousnext →6,101–6,200 of 15,409, ranked by callers