MCPcopy Create free account

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

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

↓ 5 callersFunctiongetPluginWebsite
(value: unknown)
web/src/features/task-plugins/lib/plugin-website.ts:20
↓ 5 callersFunctiongetSavedChartPreferences
()
web/src/features/dashboard/lib/filters.ts:94
↓ 5 callersFunctiongetSyncExpressionPricing
( expression: string, t: (key: string) => string, currency = USD_PRICING_CURRENCY )
web/src/features/system-settings/models/upstream-ratio-sync-helpers.ts:165
↓ 5 callersFunctiongetTaskQuota
(t *testing.T, id int64)
service/task_billing_test.go:562
↓ 5 callersFunctiongetTaskUsagePriceUnitLabelKey
( unit: BillingUsageUnit | undefined )
web/src/features/pricing/lib/dynamic-price.ts:120
↓ 5 callersFunctiongetTierCachePricingMode
( tiers: readonly ParsedTier[], modelName?: string )
web/src/features/pricing/lib/cache-pricing.ts:91
↓ 5 callersFunctiongetUserAvatarFallback
(name: string)
web/src/lib/avatar.ts:43
↓ 5 callersFunctiongetUserAvatarStyle
(name: string)
web/src/lib/avatar.ts:31
↓ 5 callersFunctionhasTaskUsageSchema
(model: PricingModel)
web/src/features/pricing/lib/dynamic-price.ts:161
↓ 5 callersFunctionhasValue
(value: unknown)
web/src/features/system-settings/models/model-pricing-core.ts:198
↓ 5 callersMethodhookContext
hookContext is the ctx of the relay hooks of the request.
relay/channel/providerplugin/adaptor.go:594
↓ 5 callersFunctionidParam
(id int)
controller/provider_plugin_test.go:111
↓ 5 callersFunctionidentityFilters
(key string, channelTypes []int)
model/task_plugin_channel_select_test.go:52
↓ 5 callersFunctioninvalidRequestStatus
invalidRequestStatus is the status of a request whose body could not be read or parsed: 413 when the body exceeds MAX_REQUEST_BODY_MB, else 400.
middleware/utils.go:40
↓ 5 callersFunctioninvalidateTokenCacheForMutation
invalidateTokenCacheForMutation is called before a token metadata mutation writes to the database: it raises the fence and drops the cached hash so no
model/token_cache.go:56
↓ 5 callersFunctionisAuthBundle
(value: unknown)
web/src/lib/auth-session.ts:131
↓ 5 callersFunctionisContentSizedColumn
(columnId: string)
web/src/components/data-table/core/content-sized-columns.ts:19
↓ 5 callersFunctionisH3
(model)
plugins/tasks/hailuo/plugin.js:303
↓ 5 callersFunctionisObject
(value)
plugins/tasks/request-filter/plugin.js:129
↓ 5 callersFunctionisPaymentComplianceConfirmed
()
controller/payment_webhook_availability.go:10
↓ 5 callersFunctionisRecord
(value: unknown)
web/src/lib/server-error-message.ts:89
↓ 5 callersFunctionisRecord
(value: unknown)
web/src/lib/auth-session.ts:90
↓ 5 callersMethoditem
item returns the media ref names.
relay/requestplugin/attachments.go:325
↓ 5 callersFunctionlimitLogTimeRange
limitLogTimeRange returns the start of a log or dashboard search kept within the longest log time range. A missing start reaches back the whole range,
controller/log.go:42
↓ 5 callersFunctionlistTaskPluginItem
(t *testing.T, key string)
controller/task_plugin_test.go:182
↓ 5 callersMethodlogRejectedUsage
(hook string, _ error)
relay/channel/task/jsplugin/adaptor.go:1859
↓ 5 callersFunctionlogTokenName
( log: Pick<UsageLog, 'token_id' | 'token_name'>, t: (key: string, opts?: Record<string, unknown>) => stri
web/src/features/usage-logs/lib/format.ts:595
↓ 5 callersFunctionlogsAppender
(logs *[]string)
controller/plugin_protocol_test.go:1572
↓ 5 callersMethodmember
(name string)
pkg/requestpatch/patch.go:521
↓ 5 callersFunctionmergeModelNames
(base []string, appended []string)
controller/channel_upstream_update.go:110
↓ 5 callersMethodmessage
message takes one event of a WebSocket stream: a whole JSON message the session already decoded.
relay/requestplugin/reply.go:1056
↓ 5 callersMethodmessageID
()
relaykit/relayconvert/internal/oai_chat/to_oai_responses_stream_resp.go:852
↓ 5 callersFunctionmodelPricingValues
(values map[string]map[string]any, name string)
model/model_pricing_config.go:128
↓ 5 callersFunctionmustResponsesEventsFromChatChunk
(t *testing.T, state *ChatToResponsesStreamState, chunk *dto.ChatCompletionsStreamResponse)
relaykit/relayconvert/internal/oai_chat/to_oai_responses_resp_test.go:576
↓ 5 callersFunctionnewAwsInvokeError
(requestContext context.Context, err error, operation string)
relay/channel/aws/relay-aws.go:51
↓ 5 callersFunctionnewFakeSMTPServer
(t *testing.T)
common/email_test.go:35
↓ 5 callersFunctionnewPinRetryContext
()
controller/channel_pin_retry_test.go:102
↓ 5 callersFunctionnewRealtimeSession
(t *testing.T)
relay/requestplugin/socket_test.go:54
↓ 5 callersFunctionnewSecurityMailbox
Use a real local SMTP boundary so delivery, failure and code handling are exercised without exporting test-only mail hooks from production packages.
controller/security_account_test.go:254
↓ 5 callersFunctionnewTokenAutoGroupsAuthenticatedContext
(t *testing.T, method string, target string, body any, userID int)
controller/token_auto_groups_test.go:67
↓ 5 callersFunctionnormalizeJsonString
(value: string)
web/src/features/system-settings/models/utils.ts:32
↓ 5 callersFunctionnormalizeModelName
(model: string)
web/src/features/channels/lib/model-mapping-validation.ts:45
↓ 5 callersFunctionnormalizeTierLabel
(label: string | undefined)
web/src/features/pricing/lib/billing-expr.ts:351
↓ 5 callersFunctionobjectValue
(value, name)
plugins/tasks/alibaba/plugin.js:785
↓ 5 callersMethodout
out sends one event to the client and keeps it for the report.
relay/requestplugin/socket.go:86
↓ 5 callersMethodout
out writes to the client: one message on a WebSocket, stream bytes otherwise.
relay/requestplugin/reply.go:1139
↓ 5 callersFunctionparseAdvancedCustomConfig
( value: string | undefined )
web/src/features/channels/lib/advanced-custom.ts:567
↓ 5 callersFunctionparseMarketplaceIndex
(payload: unknown)
web/src/features/task-plugins/lib/marketplace.ts:81
↓ 5 callersFunctionparseOptionalJson
(value: string | undefined)
web/src/features/channels/lib/channel-form.ts:113
↓ 5 callersFunctionparseRatioMap
(value: string)
web/src/features/system-settings/models/group-ratio-visual-editor.tsx:136
↓ 5 callersFunctionparseUsableMap
(value: string)
web/src/features/system-settings/models/group-ratio-visual-editor.tsx:143
↓ 5 callersMethodpart
part is the output of a Responses output part.
relay/requestplugin/reply.go:227
↓ 5 callersFunctionperformManageUserRequest
(t *testing.T, body string)
controller/user_manage_test.go:84
↓ 5 callersFunctionpinMappingOrderPlugin
(t *testing.T, c *gin.Context, source string)
relay/relay_task_test.go:213
↓ 5 callersFunctionpluginCredentialLine
(t *testing.T, pluginKey, token string)
controller/provider_plugin_test.go:113
↓ 5 callersFunctionpluginSourceByteLength
(source: string)
web/src/features/task-plugins/lib/plugin-url.ts:28
↓ 5 callersFunctionpolicyLabel
(t: TFunction, value: string)
web/src/features/system-settings/request-policies/policy-label.ts:6
↓ 5 callersFunctionpostTaskPluginStatus
(t *testing.T, key, query, body string)
controller/task_plugin_test.go:167
↓ 5 callersFunctionpreserveToolPrices
(t *testing.T)
setting/operation_setting/tools_price_test.go:12
↓ 5 callersFunctionpricingByModel
(pricings []Pricing)
model/pricing_usage_schema_test.go:140
↓ 5 callersFunctionpricingUsagePluginSource
(version, usageSchema string)
model/pricing_usage_schema_test.go:21
↓ 5 callersFunctionproviderParams
providerParams returns the params of messages that name the OAuth provider.
controller/oauth.go:41
↓ 5 callersFunctionproviderPlugin
(relay, source string)
pluginkit/provider_test.go:30
↓ 5 callersFunctionpushText
(texts, value)
plugins/tasks/request-filter/plugin.js:133
↓ 5 callersFunctionreasoningOutputText
(output *dto.ResponsesOutput)
relaykit/relayconvert/internal/oai_responses/to_oai_chat_resp.go:290
↓ 5 callersFunctionredactVideoResponseBody
(body []byte)
service/task_polling.go:726
↓ 5 callersFunctionregisterAttachmentPlugin
(t *testing.T, instances string)
relay/requestplugin/attachments_test.go:51
↓ 5 callersFunctionregisterChannelGapsPlugin
(t *testing.T, key, source string)
controller/channel_plugin_gaps_test.go:76
↓ 5 callersFunctionrejectOldCredential
rejectOldCredential answers the token endpoint, and fails an old token with status until the refresh replaced it.
router/provider_plugin_relay_test.go:428
↓ 5 callersMethodremoveExpired
removeExpired releases every expired request at the front of the queue.
common/rate-limit.go:36
↓ 5 callersFunctionreportContext
reportContext is a finished request's context as the relay leaves it, and the recorder of what the client received.
relay/requestplugin/requestplugin_test.go:843
↓ 5 callersFunctionrequestClientIP
(router http.Handler, remoteAddr string, forwardedFor string)
middleware/trusted_proxies_test.go:13
↓ 5 callersFunctionrequestHeaders
(ctx)
plugins/tasks/vertex-ai/plugin.js:131
↓ 5 callersMethodresolve
(c *gin.Context, info *relaycommon.RelayInfo)
relay/channel/advancedcustom/adaptor.go:394
↓ 5 callersFunctionresolvePluginSourceUrl
( indexUrl: string, path: string )
web/src/features/task-plugins/lib/marketplace.ts:47
↓ 5 callersFunctionresponsesCallName
responsesCallName is the upstream function name of a function_call or custom_tool_call item: a call made in a tool namespace uses the name its flatten
relaykit/relayconvert/internal/oai_responses/to_oai_chat_req.go:596
↓ 5 callersFunctionrowMetrics
(row: FlowQuotaDataItem)
web/src/features/dashboard/lib/flow.ts:160
↓ 5 callersFunctionsanitizeAuthRedirect
( value: unknown, origin: string )
web/src/features/auth/lib/auth-redirect.ts:46
↓ 5 callersFunctionsankeyDatumValue
( datum: Record<string, unknown>, key: string )
web/src/features/dashboard/lib/flow.ts:1045
↓ 5 callersFunctionseedSubscriptionResetPlan
(t *testing.T, plan *SubscriptionPlan)
model/subscription_reset_test.go:12
↓ 5 callersFunctionselectResponsesWSChannel
selectResponsesWSChannel narrows the shared HTTP selection to channels that speak the Responses WebSocket protocol and renders its outcome as a non-re
relay/responses_websocket.go:1088
↓ 5 callersFunctionserveRevalidatedJSON
serveRevalidatedJSON writes public content as JSON with a weak content-derived ETag and answers conditional requests with 304 Not Modified. The ETag i
controller/revalidated_response.go:28
↓ 5 callersFunctionsetAuthNoStore
(c *gin.Context)
controller/auth_session.go:178
↓ 5 callersFunctionsetupChannelGapsTest
(t *testing.T)
controller/channel_plugin_gaps_test.go:65
↓ 5 callersFunctionsetupLogin
setupLogin evaluates the shared login policy after primary authentication. Only a completed Passkey ceremony may go directly to session issuance. A pe
controller/user.go:150
↓ 5 callersFunctionsetupPrivateChannelMediaTest
(t *testing.T)
controller/video_proxy_channel_test.go:23
↓ 5 callersFunctionsetupResponsesWSRequestTest
(t *testing.T)
controller/responses_websocket_test.go:41
↓ 5 callersFunctionsetupTokenAutoGroupsControllerTest
(t *testing.T)
controller/token_auto_groups_test.go:41
↓ 5 callersFunctionstartSecurityEmailBinding
(t *testing.T, identity service.AuthIdentity, email, method string)
controller/security_account_test.go:337
↓ 5 callersMethodstop
()
relay/helper/common.go:29
↓ 5 callersFunctionstringMetaField
(object map[string]any, name string)
pluginkit/meta.go:2111
↓ 5 callersFunctionstringifyAdvancedCustomConfig
( config: AdvancedCustomConfig )
web/src/features/channels/lib/advanced-custom.ts:582
↓ 5 callersFunctionsubmitDoubaoImage
Runs the production host validation, body conversion and usage extraction for one normalized image request without contacting Volcengine.
plugins/doubao_responses_test.go:85
↓ 5 callersFunctiontaskPluginCompileError
(c *gin.Context, err error)
controller/task_plugin.go:35
↓ 5 callersFunctiontaskPluginDebugStatus
(status string)
controller/task_plugin_debug.go:258
↓ 5 callersFunctiontaskPluginProtocolJSONValue
taskPluginProtocolJSONValue encodes a task view for a hook, which receives it parsed from the text.
controller/plugin_protocol.go:1169
↓ 5 callersFunctiontaskResponsesPluginSource
(key string, channelType int, models, supports, hooks, parseRequestBody string)
middleware/task_plugin_test.go:1939
↓ 5 callersFunctiontestPDF
testPDF is a one-page PDF that shows text in Helvetica; trailer adds members to its trailer.
relay/requestplugin/attachments_test.go:87
↓ 5 callersFunctiontextRegistryChatResponse
()
relaykit/relayconvert/response_registry_test.go:735
↓ 5 callersFunctiontoRequestPluginConfigDraft
( schema: RequestPluginConfigShape | undefined, config: Record<string, unknown> )
web/src/features/task-plugins/lib/request-plugins.ts:218
← previousnext →1,501–1,600 of 15,592, ranked by callers