MCPcopy Create free account

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

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

↓ 5 callersFunctionlogsAppender
(logs *[]string)
controller/plugin_protocol_test.go:1568
↓ 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:1052
↓ 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 callersFunctionmustAdvancedCustomRawMessage
(t *testing.T, value any)
relay/channel/advancedcustom/adaptor_test.go:1145
↓ 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 callersMethodobserve
(response *dto.GeminiChatResponse)
relay/channel/gemini/relay-gemini.go:104
↓ 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:1135
↓ 5 callersFunctionparseAdvancedCustomConfig
( value: string | undefined )
web/src/features/channels/lib/advanced-custom.ts:559
↓ 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:223
↓ 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:165
↓ 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)
pkg/jsplugin/provider_test.go:32
↓ 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:73
↓ 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:762
↓ 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:383
↓ 5 callersFunctionresolveModelProvider
(modelName: string)
web/src/lib/model-provider.ts:241
↓ 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 callersFunctionroutePathShape
(routePath string)
pkg/jsplugin/routing.go:845
↓ 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 callersFunctionserveTaskPluginImageProtocol
serveTaskPluginImageProtocol answers an OpenAI Images API request that a task plugin claimed. The API is synchronous: the durable submission runs firs
controller/plugin_protocol_image.go:31
↓ 5 callersFunctionsetAuthNoStore
(c *gin.Context)
controller/auth_session.go:178
↓ 5 callersFunctionsetupChannelGapsTest
(t *testing.T)
controller/channel_plugin_gaps_test.go:62
↓ 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 callersFunctionsetupRelayRouterTestDB
(t *testing.T)
router/relay_router_test.go:149
↓ 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 callersFunctionstrictStringSlice
(object map[string]any, name string)
pkg/jsplugin/registry.go:2626
↓ 5 callersFunctionstringMetaField
(object map[string]any, name string)
pkg/jsplugin/registry.go:2509
↓ 5 callersFunctionstringifyAdvancedCustomConfig
( config: AdvancedCustomConfig )
web/src/features/channels/lib/advanced-custom.ts:574
↓ 5 callersFunctionsubmit
(values: EmailBindingValues)
web/src/features/security/components/dialogs/email-bind-dialog.tsx:127
↓ 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 callersFunctiontaskHasPluginExecution
(task *model.Task)
controller/task.go:248
↓ 5 callersFunctiontaskPluginCompileError
(c *gin.Context, err error)
controller/task_plugin.go:34
↓ 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:644
↓ 5 callersFunctiontoRequestPluginConfigDraft
( schema: RequestPluginConfigShape | undefined, config: Record<string, unknown> )
web/src/features/task-plugins/lib/request-plugins.ts:218
↓ 5 callersFunctiontokenAuditParams
(c *gin.Context)
controller/audit.go:187
↓ 5 callersFunctiontriggerRefresh
()
web/src/features/redemption-codes/components/redemptions-provider.tsx:47
↓ 5 callersFunctiontrimmed
(value)
plugins/tasks/jimeng/plugin.js:54
↓ 5 callersFunctiontryParseRequestRuleExpr
( expr: string )
web/src/features/pricing/lib/billing-expr.ts:588
↓ 5 callersFunctionupdateChannel
( id: number, data: Partial<Channel> )
web/src/features/channels/api.ts:245
↓ 5 callersFunctionupdateUserCache
updateUserCache refreshes non-quota user cache fields. Quota is maintained by atomic quota delta paths and must not be overwritten by stale user snaps
model/user_cache.go:92
↓ 5 callersFunctionuseAuthRedirect
()
web/src/features/auth/hooks/use-auth-redirect.ts:36
↓ 5 callersFunctionuseBranch
()
web/src/components/ai-elements/branch.tsx:49
↓ 5 callersFunctionuseCommonLogsColumns
( isAdmin: boolean, isRoot: boolean, showBillingSource = false )
web/src/features/usage-logs/components/columns/common-logs-columns.tsx:352
↓ 5 callersFunctionuseScheduledChannelDatabase
useScheduledChannelDatabase isolates these locked-update tests on each real dialect selected through TEST_TASK_DB_DIALECT and the standard test DSNs.
model/channel_plugin_credential_test.go:242
↓ 5 callersFunctionvalidateAdvancedCustomConfig
( config: AdvancedCustomConfig | null )
web/src/features/channels/lib/advanced-custom.ts:615
↓ 5 callersFunctionvalidateOptionValue
(key string, value string)
model/option.go:239
↓ 5 callersFunctionvalueMap
(value any)
controller/ratio_sync.go:94
↓ 5 callersFunctionviaGateway
(ctx)
plugins/tasks/vertex-ai/plugin.js:128
↓ 5 callersFunctionvisualNodeId
()
web/src/features/pricing/lib/billing-expression/visual.ts:79
↓ 5 callersFunctionwriteAccountStatusError
writeAccountStatusError responds with a web console message under a non-200 status.
controller/secure_verification.go:140
↓ 5 callersFunctionwriteChat
(w http.ResponseWriter, request capturedRequest)
router/provider_plugin_relay_test.go:100
↓ 5 callersFunctionwriteUserCache
(user *UserBase, includeQuota bool)
model/user_auth_cache.go:48
↓ 4 callersMethodAddAll
(other map[K]V)
types/rw_map.go:46
← previousnext →1,501–1,600 of 15,409, ranked by callers