MCPcopy Create free account

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

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

↓ 1 callersFunctionmaskURLQuery
maskURLQuery keeps the parameter names of a raw query and masks the values. Example: key=secret&alt=sse -> ?alt=***&key=***
relaykit/relayconvert/kitutil/mask.go:69
↓ 1 callersFunctionmasked
masked applies the masks of a result to text as the host does.
plugins/request_plugins_test.go:745
↓ 1 callersMethodmasked
masked reports an answer whose text an instance masked.
relay/requestplugin/reply.go:353
↓ 1 callersMethodmatch
(response *dto.GeminiFunctionResponse)
relaykit/relayconvert/internal/gemini_chat/to_oai_chat_req.go:319
↓ 1 callersFunctionmatchAdvancedCustomIncomingPathTemplate
(configuredPath string, requestPath string)
relaykit/dto/channel_settings.go:449
↓ 1 callersFunctionmatchAnyIncludeFold
(patterns []string, s string)
service/channel_affinity.go:274
↓ 1 callersFunctionmatchAnyModelPattern
map[string]*regexp.Regexp
service/openai_chat_responses_mode.go:15
↓ 1 callersFunctionmatchAnyRegexCached
(patterns []string, s string)
service/channel_affinity.go:250
↓ 1 callersFunctionmatchedLabels
( tiers: ParsedTaskTier[], matchedTierLabel?: string | null, usageFacts?: Record<string, string | number
web/src/features/pricing/__tests__/breakdown-tier-match.test.ts:43
↓ 1 callersFunctionmatches
(rule, text, lowered)
plugins/tasks/request-filter/plugin.js:338
↓ 1 callersFunctionmatchesPath
(path: FlowPathNode[])
web/src/features/dashboard/lib/flow.ts:660
↓ 1 callersFunctionmeasure
()
web/src/components/ui/combobox-input.tsx:141
↓ 1 callersFunctionmeasureColumnContentWidth
( resizerElement: HTMLElement, columnId: string )
web/src/components/data-table/core/data-table-header.tsx:182
↓ 1 callersFunctionmeasureElementWidth
(element: HTMLElement)
web/src/components/data-table/core/data-table-header.tsx:206
↓ 1 callersMethodmedia
Stage hooks only: null for a string that is not a ref of the call.
docs/plugin-api/v1.d.ts:33
↓ 1 callersFunctionmediaTextOps
mediaTextOps are the json.patch operations of a media.text effect: the media string replaced by text in base64, with the same mime type and filename.
relay/requestplugin/attachments.go:812
↓ 1 callersFunctionmemberJSON
memberJSON is the JSON.stringify text of the first of paths value has a value other than null or undefined at, nil when it has none.
pkg/jsplugin/engine.go:802
↓ 1 callersFunctionmemoryRateLimiter
(c *gin.Context, maxRequestNum int, duration int64, mark string)
middleware/rate-limit.go:128
↓ 1 callersFunctionmenuChoices
(user: ReturnType<typeof userEvent.setup>)
web/src/features/task-plugins/__tests__/marketplace-panel.test.tsx:124
↓ 1 callersFunctionmergeChannelOverride
(base map[string]any, tpl map[string]any)
service/channel_affinity.go:448
↓ 1 callersFunctionmergeClaudeContent
(regular []dto.ClaudeMediaMessage, hosted []positionedClaudeBlocks, set HostedResponseSet)
relaykit/relayconvert/internal/toolconv/response_artifacts.go:604
↓ 1 callersFunctionmergeModelTotals
(totals map[string]counters, modelName string, value counters)
pkg/perf_metrics/metrics.go:346
↓ 1 callersFunctionmergeObjects
mergeObjects 把 value 的成员写入 path 处的对象:已有成员原地替换,新成员按 键名顺序追加到末尾,其余成员保持原样。
relay/common/override.go:2149
↓ 1 callersFunctionmergePendingStreamChunk
( currentChunk: string, nextChunk: string )
web/src/features/playground/hooks/use-chat-handler.ts:56
↓ 1 callersFunctionmergePinnedColumns
( explicitPinnedColumns: DataTablePinnedColumn[] | undefined, metaPinnedColumns: DataTablePinnedColumn[] )
web/src/components/data-table/core/data-table-view.tsx:203
↓ 1 callersFunctionmergePresetAmounts
( amountOptions: number[], discounts: Record<number, number> )
web/src/features/wallet/lib/payment.ts:207
↓ 1 callersFunctionmergeRanges
(ranges: StatusCodeRange[])
web/src/lib/http-status-code-rules.ts:118
↓ 1 callersFunctionmergeResponsesOutput
(regular []dto.ResponsesOutput, hosted []positionedResponsesOutput, set HostedResponseSet)
relaykit/relayconvert/internal/toolconv/response_artifacts.go:558
↓ 1 callersFunctionmergeWithDefaultSidebarModules
( config: SidebarModulesAdminConfig )
web/src/hooks/use-sidebar-config.ts:71
↓ 1 callersFunctionmetricSeriesKey
(metric: InferenceMetric)
web/src/features/channels/lib/inference-status.ts:85
↓ 1 callersFunctionmidjourneyRequestPlugins
midjourneyRequestPlugins runs the request plugins of a Midjourney submission on its client body before the body is read: the request's ingress, then t
controller/relay.go:443
↓ 1 callersFunctionmigrateClickHouseLogDB
()
model/main.go:414
↓ 1 callersFunctionmigrateDB
()
model/main.go:325
↓ 1 callersFunctionmigrateLOGDB
()
model/main.go:404
↓ 1 callersFunctionmigrateLegacyOption
(sourceKey, targetKey string, transform legacyOptionTransform)
model/frontend_option_migration.go:67
↓ 1 callersFunctionmigrateLegacyUptimeOptions
()
model/frontend_option_migration.go:174
↓ 1 callersFunctionmigrateOptionPrimaryKey
(db *gorm.DB)
model/option_primary_key_migration.go:20
↓ 1 callersFunctionmigrateSubscriptionPlanPriceAmount
migrateSubscriptionPlanPriceAmount migrates price_amount column from float/double to decimal(10,6) This is safe to run multiple times - it checks the
model/main.go:642
↓ 1 callersFunctionmigrateTokenModelLimitsToText
migrateTokenModelLimitsToText migrates model_limits column from varchar(1024) to text This is safe to run multiple times - it checks the column type f
model/main.go:589
↓ 1 callersFunctionminiMaxImageHandler
(c *gin.Context, resp *http.Response, info *relaycommon.RelayInfo)
relay/channel/minimax/image.go:178
↓ 1 callersFunctionminimalWAV
minimalWAV builds a valid 16-bit PCM mono WAV with the given number of sample frames.
common/audio_case_test.go:12
↓ 1 callersFunctionmismatchError
()
web/src/features/auth/api.test.ts:106
↓ 1 callersFunctionmockExportResponse
(lines: unknown[])
web/src/features/usage-logs/components/__tests__/export-dialog.test.tsx:114
↓ 1 callersFunctionmockPatch
(item: AccessTokenItem)
web/src/features/security/components/__tests__/access-tokens-card.test.tsx:204
↓ 1 callersFunctionmockRefreshResponse
(bundle: AuthBundle, onRequest?: () => void)
web/src/features/auth/secure-verification/__tests__/verification-api.test.ts:174
↓ 1 callersFunctionmockSave
(role: number, setting: Record<string, unknown>)
web/src/features/profile/__tests__/settings.test.tsx:223
↓ 1 callersFunctionmockSave
()
web/src/features/request-processing/__tests__/request-processing.test.tsx:177
↓ 1 callersFunctionmockServer
Replies in order for each URL; a reply with success false is an API error.
web/src/features/channels/components/__tests__/plugin-login-dialog.test.tsx:49
↓ 1 callersFunctionmockSheet
(rect: { left: number; right: number }, innerWidth: number)
web/src/features/channels/hooks/__tests__/use-redirect-panel-placement.test.tsx:24
↓ 1 callersFunctionmockSystemDarkMode
(dark: boolean)
web/src/context/__tests__/theme-boot-script.test.ts:38
↓ 1 callersFunctionmockVerification
(scope: string, proofToken: string)
web/src/features/users/components/__tests__/step-up-verification.test.tsx:45
↓ 1 callersFunctionmodelModifierClientError
(message string)
relay/helper/model_modifier.go:29
↓ 1 callersFunctionmodelPriceHelperTiered
(c *gin.Context, info *relaycommon.RelayInfo, billingModelName string, promptTokens int, groupRatioInfo hostty
relay/helper/price.go:344
↓ 1 callersFunctionmodelPricingSyncValues
(data map[string]any, name string)
controller/ratio_sync.go:201
↓ 1 callersFunctionmodifierRequestOverrideDiagnostics
(explicit reasoning.Intent, modifier reasoning.Intent)
relay/helper/reasoning_suffix.go:225
↓ 1 callersFunctionmodifyArray
(doc *ojson.Doc, path string, value any, isPrepend bool)
relay/common/override.go:1803
↓ 1 callersFunctionmodifyString
(doc *ojson.Doc, path string, value any, isPrepend bool)
relay/common/override.go:1831
↓ 1 callersFunctionmodifyValue
(doc *ojson.Doc, path string, value any, keepOrigin, isPrepend bool)
relay/common/override.go:1790
↓ 1 callersFunctionmodulePath
()
common/etag.go:12
↓ 1 callersFunctionmokaEmbeddingHandler
(c *gin.Context, info *relaycommon.RelayInfo, resp *http.Response)
relay/channel/mokaai/relay-mokaai.go:55
↓ 1 callersFunctionmoovVideoTrack
(bytes, start, end)
plugins/tasks/xai/plugin.js:642
↓ 1 callersFunctionmount
(view: 'table' | 'card' = 'card', enabled = true)
web/src/features/channels/components/__tests__/priority-order.test.tsx:185
↓ 1 callersFunctionmount
(batch = false)
web/src/features/models/__tests__/model-deletion.test.tsx:51
↓ 1 callersFunctionmove
(index: number, offset: -1 | 1)
web/src/features/request-processing/index.tsx:118
↓ 1 callersFunctionmove
(index: number, offset: number)
web/src/features/task-plugins/components/request-plugin-config-rows.tsx:98
↓ 1 callersFunctionmoveHeaderInContext
(context map[string]any, fromHeader, toHeader string, keepOrigin bool)
relay/common/override.go:1391
↓ 1 callersFunctionmoveRouteWithinGroup
(index: number, direction: -1 | 1)
web/src/features/channels/components/dialogs/advanced-custom-editor-dialog.tsx:514
↓ 1 callersFunctionmoveValue
moveValue and copyValue write the source's raw bytes: a decoded value would be re-encoded with sorted object keys.
relay/common/override.go:1685
↓ 1 callersFunctionmultiKeyActionRequiresSensitiveWrite
(action string)
controller/channel.go:2353
↓ 1 callersFunctionmustMarshalRequestJSON
(t *testing.T, value any)
relaykit/relayconvert/request_registry_test.go:1107
↓ 1 callersMethodname
()
relay/requestplugin/pdf.go:624
↓ 1 callersFunctionnamespaceObject
namespaceObject builds a global namespace of host functions as a JavaScript object, members in name order. A Go map would be converted only when a hoo
pkg/jsplugin/utils.go:346
↓ 1 callersFunctionnativeBody
(ctx)
plugins/tasks/hailuo/plugin.js:539
↓ 1 callersFunctionnativeRequest
(ctx, action)
plugins/tasks/xai/plugin.js:403
↓ 1 callersFunctionnativeSettings
(action, model, body)
plugins/tasks/vidu/plugin.js:208
↓ 1 callersFunctionnativeTask
(task)
plugins/tasks/sunoapi/plugin.js:322
↓ 1 callersFunctionnestedKeywords
nestedKeywords reports a keywords format field inside field.
pkg/jsplugin/config_schema.go:438
↓ 1 callersFunctionnetworkAllowsIP
(network string, ip net.IP)
service/protected_fetch_client.go:230
↓ 1 callersFunctionnewAPIForm
(baseUrl: string)
web/src/features/channels/lib/__tests__/new-api-channel.test.ts:44
↓ 1 callersFunctionnewAccessTokenScopeTestEngine
(t *testing.T)
router/access_token_scope_test.go:82
↓ 1 callersFunctionnewAwsClient
(c *gin.Context, info *relaycommon.RelayInfo)
relay/channel/aws/relay-aws.go:64
↓ 1 callersFunctionnewAwsInvokeModelInput
()
relay/channel/aws/relay_aws_test.go:104
↓ 1 callersFunctionnewAwsNotifyingResponseWriter
(notifyOn string)
relay/channel/aws/relay_aws_test.go:52
↓ 1 callersMethodnewCompletedOutputWithIDs
(itemID, contentID, text string)
relay/plugin_protocol.go:922
↓ 1 callersFunctionnewContainerUsage
()
common/container_usage.go:34
↓ 1 callersFunctionnewDiskStorageFromReader
(reader io.Reader, maxBytes int64, cachePath string)
common/body_storage.go:185
↓ 1 callersFunctionnewFakeImplicitTLSSMTPServer
(t *testing.T)
common/email_test.go:68
↓ 1 callersFunctionnewGatedResponseWriter
(underlying gin.ResponseWriter)
router/plugin-router.go:513
↓ 1 callersFunctionnewGeminiFunctionCallHistory
(contents []dto.GeminiChatContent)
relaykit/relayconvert/internal/gemini_chat/to_oai_chat_req.go:290
↓ 1 callersFunctionnewGeminiGroundingStreamCandidate
()
relaykit/relayconvert/internal/gemini_chat/grounding.go:137
↓ 1 callersFunctionnewGormConfig
(prepareStmt bool)
model/gorm_logger.go:25
↓ 1 callersFunctionnewHTTPClient
()
controller/model_sync.go:86
↓ 1 callersFunctionnewHTTPClientFromTransportFactory
(policy HTTPTransportPolicy, factory func() *http.Transport)
service/http_client.go:354
↓ 1 callersFunctionnewHookError
(hook, rawMessage string, wrapped error)
pkg/jsplugin/engine.go:85
↓ 1 callersFunctionnewProtectedFetchHTTPClient
()
service/protected_fetch_client.go:58
↓ 1 callersFunctionnewShardedRoundTripper
(policy HTTPTransportPolicy, factory func() *http.Transport)
service/http_transport_sharded.go:24
↓ 1 callersFunctionnewStreamResult
(status *relaycommon.StreamStatus)
relay/helper/stream_result.go:19
↓ 1 callersFunctionnewTokenServer
(t *testing.T)
service/provider_plugin_token_test.go:58
↓ 1 callersFunctionnewTopUpTryLock
()
controller/user.go:1254
↓ 1 callersMethodnewTransport
(proxyURL *url.URL)
service/protected_fetch_client.go:143
← previousnext →7,401–7,500 of 15,409, ranked by callers