Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/QuantumNous/new-api
/ functions
Functions
15,409 in github.com/QuantumNous/new-api
⨍
Functions
15,409
◇
Types & classes
2,241
↓ 1 callers
Function
collectInputItems
(texts, items)
plugins/tasks/request-filter/plugin.js:190
↓ 1 callers
Function
collectInvalidStatusCodeEntries
( statusCodeMappingStr: string )
web/src/features/channels/lib/status-code-risk-guard.ts:40
↓ 1 callers
Function
collectModelNamesFromOptionValue
(raw string, modelNames map[string]struct{})
controller/option.go:51
↓ 1 callers
Function
collectNewDisallowedStatusCodeRedirects
( originalStr: string, currentStr: string )
web/src/features/channels/lib/status-code-risk-guard.ts:92
↓ 1 callers
Function
collectPendingUpstreamModelChanges
(channel *model.Channel, settings dto.ChannelOtherSettings)
controller/channel_upstream_update.go:243
↓ 1 callers
Function
collectPrunedObjects
collectPrunedObjects 遍历 node:数组逐个检查元素,对象满足条件时(根节点除外) 整个删除,recursive 时继续检查对象的成员。要删除的路径按文档顺序追加到 pruned,返回值表示 node 本身是否要删除。
relay/common/override.go:2100
↓ 1 callers
Function
collectSchemaMisfits
(schema any, depth int, found map[string]struct{})
relaykit/relayconvert/internal/shared/gemini/schema.go:320
↓ 1 callers
Function
collectSourceFiles
(dir)
web/scripts/add-copyright.mjs:92
↓ 1 callers
Function
collectStaticConstants
Only local constants whose containers cannot escape or be mutated are previewable.
web/src/features/task-plugins/lib/plugin-meta-preview.ts:91
↓ 1 callers
Function
collectSystemStatus
(usage *containerUsage)
common/system_monitor.go:114
↓ 1 callers
Function
collectTargetFiles
(rootDir)
web/scripts/add-copyright.mjs:118
↓ 1 callers
Function
collectTexts
(body, format)
plugins/tasks/request-filter/plugin.js:222
↓ 1 callers
Function
collectToolSurchargeItem
(items []ToolSurchargeItem, name string, count int, modelName string)
service/text_quota.go:107
↓ 1 callers
Function
collectWildcardPaths
(node any, segments []string, prefix []string)
relay/common/override.go:1731
↓ 1 callers
Function
colorPalette
( colorCount: number, palette?: readonly string[] )
web/src/features/dashboard/lib/flow.ts:290
↓ 1 callers
Function
columnWidth
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 callers
Function
commit
( ref: React.RefObject<ModelPricingEditorPanelHandle | null> )
web/src/features/model-pricing/__tests__/editor-currency.test.tsx:138
↓ 1 callers
Function
communityPlugin
(key: string, recommended = false)
web/src/features/task-plugins/__tests__/marketplace-panel.test.tsx:223
↓ 1 callers
Function
compareEqual
(jsonValue, targetValue ojson.Result)
relay/common/override.go:766
↓ 1 callers
Method
compareGjsonValues
compareGjsonValues 直接比较两个ojson.Result,支持所有比较模式
relay/common/override.go:733
↓ 1 callers
Function
compareNumeric
(jsonValue, targetValue ojson.Result, operator string)
relay/common/override.go:795
↓ 1 callers
Function
compileAdvancedCustomModelRegex
pattern string -> *regexp.Regexp (nil when invalid)
relaykit/dto/channel_settings.go:413
↓ 1 callers
Function
compileRule
(rule, id)
plugins/tasks/request-filter/plugin.js:305
↓ 1 callers
Function
compiledThinkingBlacklist
()
setting/model_setting/global.go:96
↓ 1 callers
Function
completeFirstSecurityFactor
(t *testing.T, identity service.AuthIdentity, proof service.SecurityProof)
controller/security_enrollment_test.go:1623
↓ 1 callers
Function
completeOAuthBinding
()
web/src/features/security/components/account-bindings.tsx:174
↓ 1 callers
Function
completeOrder
( request: CompleteOrderRequest )
web/src/features/wallet/api.ts:243
↓ 1 callers
Function
completeTwoFactorVerification
()
web/src/features/users/components/__tests__/step-up-verification.test.tsx:97
↓ 1 callers
Function
completeUnbindVerification
()
web/src/features/users/components/dialogs/__tests__/user-binding-dialog.test.tsx:96
↓ 1 callers
Function
completionMessage
(ctx, task)
plugins/tasks/vertex-ai/plugin.js:559
↓ 1 callers
Function
computeSourceSha256
( source: string )
web/src/features/task-plugins/lib/plugin-url.ts:132
↓ 1 callers
Function
computeStatusCounts
(total int, deployments []ionet.Deployment)
controller/deployment.go:189
↓ 1 callers
Function
conditionRows
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 callers
Function
configCount
(members map[string]gjson.Result, name, subject string)
pkg/jsplugin/config_schema.go:705
↓ 1 callers
Function
configNumber
(members map[string]gjson.Result, name, subject string)
pkg/jsplugin/config_schema.go:694
↓ 1 callers
Function
configureProxyTransport
(transport *http.Transport, proxyURL *url.URL)
service/http_client.go:295
↓ 1 callers
Function
confirmRevoke
()
web/src/features/security/components/access-tokens-card.tsx:94
↓ 1 callers
Function
conflict
()
web/src/features/models/__tests__/vendor-management.test.tsx:71
↓ 1 callers
Function
consumeLogCount
(t *testing.T)
router/provider_plugin_gaps_test.go:48
↓ 1 callers
Function
containsPricingMarker
(node: ExpressionNode)
web/src/features/pricing/lib/billing-expression/parser.ts:427
↓ 1 callers
Function
containsValue
(current any, expected any)
oauth/generic.go:610
↓ 1 callers
Function
contentPtr
(s string)
relay/channel/ollama/stream.go:355
↓ 1 callers
Function
contentText
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 callers
Function
continuePluginLogin
( channelId: number, flow: string, input: PluginLoginInput )
web/src/features/channels/api.ts:497
↓ 1 callers
Function
convertBlobUrlToDataUrl
(url: string)
web/src/components/ai-elements/prompt-input.tsx:689
↓ 1 callers
Function
convertCf2CompletionsRequest
(textRequest dto.GeneralOpenAIRequest)
relay/channel/cloudflare/relay_cloudflare.go:23
↓ 1 callers
Function
convertChatResponseFormatToResponsesText
(reqFormat *dto.ResponseFormat)
relaykit/relayconvert/internal/oai_chat/to_oai_responses_req.go:42
↓ 1 callers
Function
convertCozeChatRequest
(c *gin.Context, request dto.GeneralOpenAIRequest)
relay/channel/coze/relay-coze.go:23
↓ 1 callers
Function
convertDetectedLanguage
(value: string)
web/src/i18n/languages.ts:63
↓ 1 callers
Function
convertGeminiRoleToOpenAI
(geminiRole string)
relaykit/relayconvert/internal/gemini_chat/to_oai_chat_req.go:357
↓ 1 callers
Function
convertModelsDevToRatioData
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 callers
Method
convertOpenAICompatibleAudioRequest
(c *gin.Context, info *relaycommon.RelayInfo, request dto.AudioRequest)
relay/channel/advancedcustom/adaptor.go:628
↓ 1 callers
Method
convertOpenAICompatibleEmbeddingRequest
(c *gin.Context, info *relaycommon.RelayInfo, request dto.EmbeddingRequest)
relay/channel/advancedcustom/adaptor.go:620
↓ 1 callers
Method
convertOpenAICompatibleImageRequest
(c *gin.Context, info *relaycommon.RelayInfo, request dto.ImageRequest)
relay/channel/advancedcustom/adaptor.go:636
↓ 1 callers
Method
convertOpenAICompatibleResponsesRequest
(c *gin.Context, info *relaycommon.RelayInfo, request dto.OpenAIResponsesRequest)
relay/channel/advancedcustom/adaptor.go:612
↓ 1 callers
Function
convertOpenRouterToRatioData
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 callers
Function
convertPricing
()
web/src/features/system-settings/models/model-pricing-sheet.tsx:726
↓ 1 callers
Function
convertTimestamp
(timestamp: number)
web/src/features/usage-logs/lib/utils.ts:107
↓ 1 callers
Function
convertToMultimodalEmbeddingRequest
(request dto.EmbeddingRequest)
relay/channel/ali/embedding.go:60
↓ 1 callers
Function
convertToNovaRequest
转换OpenAI请求为Nova格式
relay/channel/aws/dto.go:86
↓ 1 callers
Function
converted
(ctx)
plugins/tasks/google/plugin.js:173
↓ 1 callers
Function
converterLabelKey
i18n key for a route converter; unknown converters are shown verbatim.
web/src/features/task-plugins/components/plugin-relay-routes.tsx:29
↓ 1 callers
Function
copyCodexSSEHeaders
(c *gin.Context, resp *http.Response)
relay/helper/stream_scanner.go:58
↓ 1 callers
Function
copyDefaultWaffoPayMethods
()
setting/payment_waffo.go:54
↓ 1 callers
Function
copyLogOtherMap
(values map[string]any)
model/log_other.go:145
↓ 1 callers
Function
copyTaskMediaResponseHeaders
(destination, source http.Header)
controller/video_proxy.go:620
↓ 1 callers
Function
copyValue
(doc *ojson.Doc, fromPath, toPath string)
relay/common/override.go:1696
↓ 1 callers
Function
countLeafKeys
(obj)
web/scripts/sync-i18n.mjs:131
↓ 1 callers
Function
countOverloadSample
(samples *int, over bool)
common/system_monitor.go:100
↓ 1 callers
Function
countUserSubscriptionsForPaymentGuardTest
(t *testing.T, userID int)
model/payment_method_guard_test.go:77
↓ 1 callers
Function
coverMidjourneyTaskDto
(c *gin.Context, originTask *model.Midjourney)
relay/mjproxy_handler.go:144
↓ 1 callers
Function
cozeChatHandler
(c *gin.Context, info *relaycommon.RelayInfo, resp *http.Response)
relay/channel/coze/relay-coze.go:49
↓ 1 callers
Function
cozeChatStreamHandler
(c *gin.Context, info *relaycommon.RelayInfo, resp *http.Response)
relay/channel/coze/relay-coze.go:100
↓ 1 callers
Function
createAccessToken
( input: AccessTokenInput, proofToken: string, signal: AbortSignal )
web/src/features/security/api.ts:106
↓ 1 callers
Function
createAdvancedCustomConfig
()
web/src/features/channels/lib/advanced-custom.ts:425
↓ 1 callers
Function
createAdvancedCustomManagementRoute
( path: string )
web/src/features/channels/lib/advanced-custom.ts:431
↓ 1 callers
Function
createAmountDiscountDialogSchema
(t: (key: string) => string)
web/src/features/system-settings/integrations/amount-discount-dialog.tsx:38
↓ 1 callers
Function
createApiInfoSchema
(t: (key: string) => string)
web/src/features/system-settings/content/api-info-section.tsx:82
↓ 1 callers
Function
createApiKey
( data: ApiKeyFormData )
web/src/features/keys/api.ts:73
↓ 1 callers
Function
createChannel
( data: AddChannelRequest )
web/src/features/channels/api.ts:235
↓ 1 callers
Function
createChannelHealthSchema
( t: (key: string, options?: Record<string, unknown>) => string )
web/src/features/system-settings/request-policies/channel-health-section.tsx:79
↓ 1 callers
Function
createChannelSelectAutoGroupsChannel
(t *testing.T, db *gorm.DB, id int, group, modelName string)
service/channel_select_auto_groups_test.go:67
↓ 1 callers
Function
createChatDialogSchema
(t: (key: string) => string)
web/src/features/system-settings/content/chat-dialog.tsx:38
↓ 1 callers
Function
createChatSchema
(t: (key: string) => string)
web/src/features/system-settings/content/chat-settings-section.tsx:44
↓ 1 callers
Function
createClaudeNativeRoutes
()
web/src/features/channels/lib/advanced-custom.ts:259
↓ 1 callers
Function
createCredential
( options: PublicKeyCredentialCreationOptions, signal?: AbortSignal )
web/src/lib/passkey.ts:251
↓ 1 callers
Function
createCustomOAuthProvider
( data: Omit<CustomOAuthProvider, 'id'> )
web/src/features/system-settings/auth/custom-oauth/api.ts:51
↓ 1 callers
Function
createDefaultCondition
()
web/src/features/channels/components/dialogs/param-override-editor-dialog.tsx:508
↓ 1 callers
Function
createDeployment
(data: { resource_private_name: string duration_hours: number gpus_per_container: number hardware_id:
web/src/features/models/api.ts:533
↓ 1 callers
Function
createEmptyModelMappingGuardrail
()
web/src/features/channels/components/drawers/channel-mutate-drawer.tsx:272
↓ 1 callers
Function
createEmptyRuleGroup
()
web/src/features/pricing/lib/billing-expr.ts:682
↓ 1 callers
Function
createFailReasonColumn
(config: { accessorKey?: string headerLabel: string cellTitle: string })
web/src/features/usage-logs/components/columns/column-helpers.tsx:202
↓ 1 callers
Function
createFakeTimers
()
web/src/features/channels/lib/__tests__/channel-field-update.test.ts:26
↓ 1 callers
Function
createFallbackResult
(error?: unknown)
web/src/features/channels/components/dialogs/channel-test-dialog.tsx:674
↓ 1 callers
Function
createGatewayNativeRoutes
()
web/src/features/channels/lib/advanced-custom.ts:283
↓ 1 callers
Function
createGeminiNativeRoutes
()
web/src/features/channels/lib/advanced-custom.ts:270
↓ 1 callers
Function
createGroupSchema
(t: Translate)
web/src/features/system-settings/models/ratio-settings-card.tsx:134
↓ 1 callers
Function
createMenuEvent
()
web/src/components/ui/dropdown-menu.test.tsx:23
↓ 1 callers
Function
createModel
( data: Partial<Model> )
web/src/features/models/api.ts:76
↓ 1 callers
Function
createModelPricingSchema
(t: (key: string) => string)
web/src/features/system-settings/models/model-pricing-core.ts:43
← previous
next →
6,101–6,200 of 15,409, ranked by callers