MCPcopy Create free account

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

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

↓ 3 callersFunctionclaudeMCPInputFromResponses
claudeMCPInputFromResponses decodes the outer Responses JSON string and validates that its contents satisfy Claude's JSON-object input contract.
relaykit/relayconvert/internal/toolconv/hosted_values.go:70
↓ 3 callersFunctionclaudeMessageContentParts
(content any)
relaykit/relayconvert/internal/oai_responses/to_claude_messages_req.go:314
↓ 3 callersFunctionclaudeNameFromHostedKind
(kind Kind)
relaykit/relayconvert/internal/toolconv/response_artifacts.go:752
↓ 3 callersFunctionclaudeWebSearchInputFromResponses
claudeWebSearchInputFromResponses narrows the richer Responses action union to the only operation exposed by Claude's web-search server tool: one quer
relaykit/relayconvert/internal/toolconv/hosted_values.go:14
↓ 3 callersFunctioncleanPDFText
cleanPDFText keeps valid, printable text and line breaks.
relay/requestplugin/pdf.go:370
↓ 3 callersFunctionclearPasswordEncryptionCache
()
web/src/features/auth/lib/password-encryption.ts:38
↓ 3 callersFunctionclickHouseLogTTLExpression
(ttlDays int)
model/main.go:430
↓ 3 callersFunctioncloneClaudeUsage
(usage *ClaudeUsage)
relaykit/dto/billing_usage.go:400
↓ 3 callersFunctioncloneGeminiUsageMetadata
(metadata GeminiUsageMetadata)
relaykit/dto/billing_usage.go:417
↓ 3 callersFunctioncloneRequestConverterSpec
(spec RequestConverterSpec)
relaykit/relayconvert/request_registry.go:394
↓ 3 callersFunctioncloneStringAnyMap
(src map[string]any)
service/channel_affinity.go:439
↓ 3 callersFunctioncloneStringMap
(src map[string]string)
relay/helper/billing_expr_request.go:123
↓ 3 callersFunctioncollectPendingUpstreamModelChangesFromModels
( localModels []string, upstreamModels []string, ignoredModels []string, modelMapping map[string]string, )
controller/channel_upstream_update.go:182
↓ 3 callersFunctioncommit
()
web/src/features/channels/components/model-mapping-editor.tsx:205
↓ 3 callersFunctioncommonPointer
(value T)
relay/channel/claude/relay_claude_test.go:23
↓ 3 callersFunctioncompareAny
(left any, right any)
oauth/generic.go:534
↓ 3 callersFunctioncompareSystemVersions
( left: string | null | undefined, right: string | null | undefined )
web/src/features/system-update/releases.ts:68
↓ 3 callersFunctioncompilePluginProtocolTestEndpointWithOptions
( t *testing.T, key string, source string, options pluginruntime.Options, )
controller/plugin_protocol_test.go:1449
↓ 3 callersFunctioncompileRules
(config)
plugins/tasks/request-filter/plugin.js:328
↓ 3 callersMethodcomplete
()
relay/plugin_protocol.go:940
↓ 3 callersFunctioncomputeTimeRange
( days: number, startDate?: Date, endDate?: Date, useStartOfDay = false )
web/src/lib/time.ts:108
↓ 3 callersFunctionconfigureRequestAutoGroupsTest
(t *testing.T)
service/group_auto_groups_test.go:17
↓ 3 callersFunctionconfigureSSRFTestFetchSetting
(t *testing.T)
service/protected_fetch_client_test.go:42
↓ 3 callersFunctionconvert
(value any, target any)
relay/channel/task/jsplugin/adaptor.go:2151
↓ 3 callersFunctionconvertChatCompatibilityRequest
(t *testing.T, request *dto.GeneralOpenAIRequest, channelType int, mapping map[string]string)
controller/channel_test_request_test.go:28
↓ 3 callersMethodconvertCrossProtocolChatRequest
convertCrossProtocolChatRequest converts a Claude, Gemini, or Responses request into an OpenAI chat completions request for an OpenAI-compatible upstr
relay/channel/advancedcustom/adaptor.go:575
↓ 3 callersFunctionconvertImage
(ctx)
plugins/tasks/doubao/plugin.js:525
↓ 3 callersFunctionconvertRowsToJson
(updatedRows: EditorRow[])
web/src/components/json-editor.tsx:99
↓ 3 callersFunctionconvertedReqKey
(reqKey, imageCount)
plugins/tasks/jimeng/plugin.js:185
↓ 3 callersMethodcpuSaturation
cpuSaturation 返回相对容器可用 CPU 的使用率(百分比)。 可用 CPU 取 cgroup 配额与可调度 CPU 的较小者:配额大于 cpuset 或节点核数时, 按配额计算会让容器打满也无法触发保护。 ok=false 表示当前环境没有可用的 cgroup CPU 数据,调用方应回
common/container_usage.go:43
↓ 3 callersFunctioncreateAdvancedCustomRoute
()
web/src/features/channels/lib/advanced-custom.ts:417
↓ 3 callersFunctioncreateAuthFlowWithTx
(tx *gorm.DB, input AuthFlowCreate)
model/auth_flow.go:152
↓ 3 callersFunctioncreateDefaultTaskMatrixConfig
( schema: BillingUsageSchema )
web/src/features/pricing/lib/task-expr.ts:121
↓ 3 callersFunctioncreateEmptyCondition
()
web/src/features/pricing/lib/billing-expr.ts:666
↓ 3 callersFunctioncreateEmptyTimeCondition
()
web/src/features/pricing/lib/billing-expr.ts:670
↓ 3 callersFunctioncreateInitialLaneState
(data?: ModelRatioData | null)
web/src/features/system-settings/models/model-pricing-core.ts:227
↓ 3 callersFunctioncreateRenderChildren
(fadeRun?: FadeRun)
web/src/components/ai-elements/response-renderer.tsx:58
↓ 3 callersFunctioncreateRouteKey
()
web/src/features/channels/components/dialogs/advanced-custom-editor-dialog.tsx:376
↓ 3 callersFunctioncreateRouteKeys
(count: number)
web/src/features/channels/components/dialogs/advanced-custom-editor-dialog.tsx:381
↓ 3 callersFunctioncreateRowId
()
web/src/features/channels/components/model-mapping-editor.tsx:133
↓ 3 callersFunctioncreateTestUserAccessToken
(t *testing.T, userID int, raw string, expiresAt int64)
model/user_update_test.go:425
↓ 3 callersFunctioncreateUserBindTestUser
(t *testing.T)
model/user_update_test.go:32
↓ 3 callersFunctioncredentialIndex
(info *relaycommon.RelayInfo)
relay/channel/providerplugin/adaptor.go:579
↓ 3 callersFunctiondecodeBillingExprB64
(exprB64: string | undefined)
web/src/features/usage-logs/lib/format.ts:264
↓ 3 callersFunctiondecodeConvertedRequest
decodeConvertedRequest reads a request a hook returns: body, form, file or, for the first request, websocket; contentType, path or url, method, header
pkg/jsplugin/provider.go:704
↓ 3 callersFunctiondecodeFlowQuotaResponse
(t *testing.T, recorder *httptest.ResponseRecorder)
controller/usedata_flow_test.go:55
↓ 3 callersFunctiondecodeListModelsResponse
(t *testing.T, recorder *httptest.ResponseRecorder)
controller/model_list_test.go:155
↓ 3 callersFunctiondecodeSecurityEnrollmentResponse
(t *testing.T, response *httptest.ResponseRecorder)
controller/security_enrollment_test.go:413
↓ 3 callersFunctiondecodeWithFlexibleTimes
decodeWithFlexibleTimes unmarshals API responses while tolerating timestamp strings that omit timezone information by normalizing them to RFC3339Nano.
pkg/ionet/jsonutil.go:13
↓ 3 callersFunctiondeepCopyFixture
deepCopyFixture guards against converters mutating shared fixture state between subtests (JSON round-trip through the concrete type).
relaykit/relayconvert/golden_test.go:385
↓ 3 callersFunctiondeepSeekRunEffort
deepSeekRunEffort is the effort DeepSeek runs: none with thinking off, its default high when no effort is sent, and the levels it does not implement m
relay/channel/deepseek/adaptor.go:272
↓ 3 callersFunctiondeepSeekThinking
deepSeekThinking returns the model name to send with DeepSeek's thinking switch and effort. An explicit @ modifier (the reasoning state) wins over a -
relay/channel/deepseek/adaptor.go:247
↓ 3 callersFunctiondefaultPluginProtocolBridgeDeps
()
controller/plugin_protocol.go:58
↓ 3 callersFunctiondefaultPricingMaps
()
model/model_pricing_config.go:86
↓ 3 callersFunctiondefaultResolution
(model)
plugins/tasks/hailuo/plugin.js:203
↓ 3 callersFunctiondeleteEmptyStrings
(value map[string]any)
relaykit/relayconvert/internal/toolconv/encode.go:1697
↓ 3 callersFunctionderiveInstallState
( plugin: MarketplacePlugin, installed: TaskPluginListItem[] )
web/src/features/task-plugins/lib/marketplace.ts:390
↓ 3 callersFunctionderiveLaneRatio
( lane: LaneKey, price: string, nextPromptPrice = promptPrice, nextLanePrices = lanePrices )
web/src/features/system-settings/models/model-pricing-sheet.tsx:448
↓ 3 callersFunctionderiveModelMappingPairs
( models: readonly string[], direction: ModelMappingDirection, rule: ModelMappingRule )
web/src/features/channels/lib/model-mapping-rules.ts:51
↓ 3 callersMethoddispatch
(c *gin.Context)
router/plugin-router.go:434
↓ 3 callersMethoddoFetchDescriptor
(baseURL, key, proxy string, descriptor requestDescriptor)
relay/channel/task/jsplugin/adaptor.go:888
↓ 3 callersFunctiondoTaskMediaRequest
(client *http.Client, request *http.Request, responseHeaderTimeout time.Duration)
controller/video_proxy.go:432
↓ 3 callersMethoddoneDeltaEvents
()
relaykit/relayconvert/internal/oai_chat/to_oai_responses_stream_resp.go:610
↓ 3 callersFunctiondowngradeUserGroupForSubscriptionTx
(tx *gorm.DB, sub *UserSubscription, now int64)
model/subscription.go:452
↓ 3 callersMethoddrain
drain writes the ready events in order; all writes every event.
relay/requestplugin/reply.go:1367
↓ 3 callersFunctioneditTagChannels
( params: TagOperationParams )
web/src/features/channels/api.ts:688
↓ 3 callersFunctioneffectivePlugins
(factory, override map[string]*LoadedPlugin)
pkg/jsplugin/routing.go:1105
↓ 3 callersFunctionemailQuery
(tx *gorm.DB, email string)
model/user.go:315
↓ 3 callersFunctionencryptPassword
( password: string )
web/src/features/auth/lib/password-encryption.ts:43
↓ 3 callersFunctionendpointIndexKey
(method, path, model string)
pkg/jsplugin/routing.go:861
↓ 3 callersFunctionenrichModels
enrichModels keeps configured endpoints intact and derives connections from enabled routes, including hidden or unpriced models absent from the catalo
controller/model_meta.go:248
↓ 3 callersMethodensureBuiltInTools
()
relay/common/tool_usage.go:106
↓ 3 callersMethodensureCreated
()
relaykit/relayconvert/internal/oai_chat/to_oai_responses_stream_resp.go:376
↓ 3 callersMethodensureMessageStart
(estimatedInputTokens int)
relaykit/relayconvert/internal/oai_responses/to_claude_messages_stream_resp.go:197
↓ 3 callersFunctionescapeHtml
(value: string)
web/src/components/ui/markdown.tsx:167
↓ 3 callersFunctionevaluatePasswordStrength
( password: string )
web/src/components/password-strength-utils.ts:151
↓ 3 callersFunctionexecCustomToolState
()
relaykit/relayconvert/internal/oai_chat/to_oai_responses_resp_test.go:363
↓ 3 callersFunctionexpandResponseConverterSteps
(spec ResponseConverterSpec)
relaykit/relayconvert/response_registry.go:756
↓ 3 callersFunctionextractChannelAffinityValue
(c *gin.Context, src operation_setting.ChannelAffinityKeySource)
service/channel_affinity.go:291
↓ 3 callersFunctionfailTaskFromPoll
(ctx context.Context, adaptor TaskPollingAdaptor, task *model.Task, fromStatus model.TaskStatus, reason string
service/task_polling.go:898
↓ 3 callersFunctionfallbackPromptTokens
(info convmeta.Meta)
relaykit/relayconvert/response_registry.go:1251
↓ 3 callersFunctionfetchCodexChannelWhamData
( c *gin.Context, fetch codexWhamFetchFunc, logPrefix string, userMessage string, )
controller/codex_usage.go:55
↓ 3 callersMethodfetchCount
()
service/task_polling_test.go:127
↓ 3 callersFunctionfetchMarketplaceIndex
( indexUrl: string )
web/src/features/task-plugins/lib/marketplace.ts:481
↓ 3 callersFunctionfetchPluginChangelog
(options: { indexUrl: string plugin: MarketplacePlugin version: string language: string signal: Abor
web/src/features/task-plugins/lib/plugin-changelog.ts:316
↓ 3 callersFunctionfetchPluginIconDataUri
( url: string, options: FetchPluginIconOptions = {} )
web/src/features/task-plugins/lib/plugin-icon-file.ts:113
↓ 3 callersFunctionfetchPluginSourceText
( url: string, fetchImpl: typeof fetch = fetchFromPluginSite )
web/src/features/task-plugins/lib/plugin-url.ts:99
↓ 3 callersFunctionfetchStatus
* The single `/api/status` request. * * Owns both side effects of a successful read — syncing the system-config store * and writing the localStorag
web/src/lib/status-query.ts:134
↓ 3 callersFunctionfetchTokenKey
( id: number )
web/src/features/keys/api.ts:112
↓ 3 callersFunctionfetchUpstreamModels
( id: number )
web/src/features/channels/api.ts:355
↓ 3 callersMethodfetchedTaskIDs
()
service/task_polling_test.go:133
↓ 3 callersFunctionfileAttachment
(filename, mime string, data []byte)
plugins/request_plugins_test.go:1144
↓ 3 callersFunctionfileInput
()
web/src/features/task-plugins/__tests__/upload-dialog.test.tsx:67
↓ 3 callersFunctionfilterCandidateIDs
filterCandidateIDs applies filters to a cached candidate id list. Caller must hold channelSyncLock (read lock). The input slice is never mutated. A mi
model/channel_constraint.go:42
↓ 3 callersFunctionfinalizeTerminalTask
finalizeTerminalTask 终态统一收尾(状态 CAS 赢家调用,恰好一次):采样 + 结算 + 失败兜底退款。
service/task_polling.go:708
↓ 3 callersMethodfinish
(startxref int)
relay/requestplugin/pdf_test.go:78
↓ 3 callersFunctionfinishAccessTokenAudit
(c *gin.Context)
middleware/audit.go:307
↓ 3 callersFunctionfinishPluginLogin
finishPluginLogin answers a login call; a done step stored a credential, so the channel cache is reloaded and the change is audited.
controller/provider_plugin.go:53
↓ 3 callersFunctionfirstVideo
(operation)
plugins/tasks/vertex-ai/plugin.js:348
↓ 3 callersFunctionflateBytes
(data []byte)
relay/requestplugin/pdf_test.go:122
← previousnext →2,501–2,600 of 15,409, ranked by callers