MCPcopy Create free account

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

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

↓ 2 callersFunctionassistantMessageWithTool
(content string, id string, name string, args string)
relaykit/relayconvert/internal/oai_chat/to_oai_responses_req_test.go:196
↓ 2 callersFunctionattachEstimatedGeminiBillingUsage
(usage *dto.Usage)
relay/channel/gemini/relay-gemini.go:38
↓ 2 callersFunctionattachQuotaSaturationToOther
attachQuotaSaturationToOther nests a quota saturation marker under other.admin_info.quota_saturation. Nesting under admin_info makes it admin-only for
service/log_info_generate.go:26
↓ 2 callersMethodattemptRequestPluginRecord
attemptRequestPluginRecord is the record of the current channel attempt, the entries after the request's ingress.
relay/common/request_plugin.go:243
↓ 2 callersMethodattemptSucceeded
(attempt int, result *relay.TaskSubmitResult)
controller/task_plugin_debug.go:94
↓ 2 callersFunctionauthHeaders
(ctx)
plugins/tasks/google/plugin.js:68
↓ 2 callersFunctionauthorization
(ctx)
plugins/tasks/vidu/plugin.js:177
↓ 2 callersFunctionauthorizeSecurityEnrollment
(t *testing.T, identity service.AuthIdentity)
controller/security_enrollment_test.go:566
↓ 2 callersFunctionautoSizeColumn
( resizerElement: HTMLElement, table: TanstackTable<TData>, header: Header<TData, unknown> )
web/src/components/data-table/core/data-table-header.tsx:145
↓ 2 callersFunctionbalanceContext
balanceContext is the ctx of the balance hooks.
pluginkit/provider.go:1950
↓ 2 callersFunctionbalanceErrorText
balanceErrorText is the failure message a balance detail keeps: without the request URL, the key line, and a credential line's header and query values
controller/channel_balance.go:170
↓ 2 callersFunctionbase64Body
base64Body decodes a base64 member of at most limit bytes.
pluginkit/provider.go:1197
↓ 2 callersFunctionbase64UrlToArrayBuffer
(value?: string | null)
web/src/lib/passkey.ts:35
↓ 2 callersFunctionbatchUpdateChannelStatus
( ids: number[], status: number )
web/src/features/channels/api.ts:291
↓ 2 callersFunctionbeginAccessTokenAudit
(c *gin.Context, user *model.UserBase, tokenRef string)
middleware/audit.go:281
↓ 2 callersFunctionbeginRun
(state: FadeState, suppress = false)
web/src/components/ai-elements/response-fade.ts:136
↓ 2 callersFunctionbelongsTo
(message, attachment)
plugins/tasks/content-moderation/plugin.js:328
↓ 2 callersFunctionbillingExprSmokeRequests
()
setting/billing_setting/tiered_billing.go:375
↓ 2 callersFunctionboolPointer
(value map[string]any, key string)
relaykit/relayconvert/internal/toolconv/decode.go:894
↓ 2 callersFunctionbootstrapAuthentication
()
web/src/lib/auth-session.ts:400
↓ 2 callersFunctionbuildAdvancedCustomAuth
( mode: AdvancedCustomAuthMode, previousAuth: AdvancedCustomRouteAuth | undefined )
web/src/features/channels/lib/advanced-custom.ts:803
↓ 2 callersFunctionbuildAdvancedCustomModelPreviewChannel
(req fetchModelsRequest)
controller/channel.go:1581
↓ 2 callersFunctionbuildAwsRequestBody
buildAwsRequestBody prepares the payload for AWS requests, applying passthrough rules when enabled.
relay/channel/aws/relay-aws.go:180
↓ 2 callersFunctionbuildChannelAffinityKeyHint
(s string)
service/channel_affinity.go:426
↓ 2 callersFunctionbuildChannelListQuery
(group string, statusFilter int, typeFilter int)
controller/channel.go:180
↓ 2 callersFunctionbuildCurlCommand
(args: { endpoint: string apiKey: string model: string })
web/src/features/dashboard/components/overview/overview-dashboard.tsx:173
↓ 2 callersFunctionbuildDifferences
(localData map[string]any, successfulChannels []struct { name string data map[string]any })
controller/ratio_sync.go:658
↓ 2 callersFunctionbuildDiscordOAuthUrl
(clientId: string, state: string)
web/src/lib/oauth.ts:49
↓ 2 callersFunctionbuildFetchModelsHeaders
(channel *model.Channel, key string)
controller/channel.go:319
↓ 2 callersFunctionbuildFormDefaults
(defaults: FlatPerfDefaults)
web/src/features/system-settings/maintenance/performance-section.tsx:101
↓ 2 callersFunctionbuildFormDefaults
( defaults: FlatPasskeyDefaults )
web/src/features/system-settings/auth/passkey-section.tsx:118
↓ 2 callersFunctionbuildFormDefaults
(defaults: FlatGrokDefaults)
web/src/features/system-settings/models/grok-settings-card.tsx:72
↓ 2 callersFunctionbuildGitHubOAuthUrl
(clientId: string, state: string)
web/src/lib/oauth.ts:42
↓ 2 callersFunctionbuildGroupPerformance
(model: PricingModel)
web/src/features/pricing/lib/mock-stats.ts:311
↓ 2 callersFunctionbuildInstance
( config: Record<string, unknown> )
web/src/features/task-plugins/components/request-plugin-instance-editor.tsx:272
↓ 2 callersFunctionbuildLegacyParamOverride
(paramOverride map[string]any)
relay/common/override.go:204
↓ 2 callersFunctionbuildLinuxDOOAuthUrl
(clientId: string, state: string)
web/src/lib/oauth.ts:82
↓ 2 callersFunctionbuildLogEndpoint
buildLogEndpoint constructs the request path for fetching logs
pkg/ionet/container.go:83
↓ 2 callersMethodbuildManagementRequest
(info *relaycommon.RelayInfo, managementPath string)
relay/channel/advancedcustom/adaptor.go:213
↓ 2 callersFunctionbuildMaskedTokenResponses
(tokens []*model.Token)
controller/token.go:74
↓ 2 callersFunctionbuildMessageDeltaPatchUsage
(claudeResponse *dto.ClaudeResponse, claudeInfo *ClaudeResponseInfo)
relay/channel/claude/relay-claude.go:67
↓ 2 callersFunctionbuildModelRow
( name: string, saved?: ModelPricingSnapshot, draft?: ModelPricingSnapshot )
web/src/features/system-settings/models/model-pricing-snapshots.ts:311
↓ 2 callersFunctionbuildNodeFilterOptions
( rows: FlowQuotaDataItem[], metric: FlowMetric, role: FlowRole, visibleStages: FlowNodeKind[] | undef
web/src/features/dashboard/lib/flow.ts:884
↓ 2 callersFunctionbuildOAuthAuthorizationUrl
( provider: string, state: string, status: SystemStatus )
web/src/lib/oauth.ts:86
↓ 2 callersFunctionbuildOIDCOAuthUrl
( authUrl: string, clientId: string, state: string )
web/src/lib/oauth.ts:65
↓ 2 callersFunctionbuildOllamaStreamDelta
(chunk *ollamaChatStreamChunk, responseID string, created int64, model string, toolCallIndex *int)
relay/channel/ollama/stream.go:82
↓ 2 callersFunctionbuildQueryParams
( timeRange: { start_timestamp: number; end_timestamp: number }, filters?: { time_granularity?: TimeGranul
web/src/features/dashboard/lib/filters.ts:155
↓ 2 callersFunctionbuildRequestRuleExpr
(groups: RequestRuleGroup[])
web/src/features/pricing/lib/billing-expr.ts:871
↓ 2 callersFunctionbuildRouteURL
buildRouteURL builds the URL of a request on route. A non-empty upstreamPath takes the place of the route's upstream_path: it joins the channel base U
relay/channel/advancedcustom/adaptor.go:443
↓ 2 callersFunctionbuildSearchParams
( filters: LogFilters, logCategory: LogCategory )
web/src/features/usage-logs/lib/filter.ts:38
↓ 2 callersFunctionbuildSettingsJSON
* Build the settings JSON string (for type-specific config like vertex_key_type)
web/src/features/channels/lib/channel-form.ts:750
↓ 2 callersMethodbuildSubmit
(c *gin.Context, info *relaycommon.RelayInfo)
relay/channel/task/jsplugin/adaptor.go:1440
↓ 2 callersFunctionbuildSubscriptionResetResult
(plan *SubscriptionPlan, subs []UserSubscription, advanceResetTime bool)
model/subscription.go:1047
↓ 2 callersFunctionbuildSubscriptionSummaries
(subs []UserSubscription)
model/subscription.go:930
↓ 2 callersFunctionbuildSyntaxError
( error: unknown, jsonString: string )
web/src/features/system-settings/models/utils.ts:92
↓ 2 callersFunctionbuildTaskAliasView
(generation *jsplugin.RoutingGeneration)
model/task_model_alias.go:102
↓ 2 callersFunctionbuildTestLogOther
(c *gin.Context, info *relaycommon.RelayInfo, priceData hosttypes.PriceData, usage *dto.Usage, tieredResult *b
controller/channel-test.go:607
↓ 2 callersFunctionbuildTestRequest
(model string, endpointType string, channel *model.Channel, isStream bool)
controller/channel-test.go:746
↓ 2 callersFunctionbuildTimeRangeParams
* Build time range parameters with default values * Shared logic for all log types
web/src/features/usage-logs/lib/utils.ts:100
↓ 2 callersFunctionbuildUpstreamModelUpdateTaskNotificationContent
( lang string, checkedChannels int, changedChannels int, detectedAddModels int, detectedRemoveModels int,
controller/channel_upstream_update.go:679
↓ 2 callersFunctionbuildUserFilterOptions
( rows: FlowQuotaDataItem[], metric: FlowMetric = 'quota', palette?: readonly string[] )
web/src/features/dashboard/lib/flow.ts:841
↓ 2 callersFunctionbuildUserOAuthBindingsResponse
(userId int)
controller/custom_oauth.go:436
↓ 2 callersFunctionbuildVendorOperationPreview
(db *gorm.DB, operation VendorOperation)
model/vendor_management.go:109
↓ 2 callersFunctionbuiltInKlingProtocolSDKFixture
(t *testing.T, taskID string)
controller/plugin_protocol_sdk_test.go:224
↓ 2 callersFunctionbulkFailedTasks
bulkFailedTasks are the tasks of upstream ids a bulk update failed.
service/task_polling.go:718
↓ 2 callersFunctionbytesToBase64
(bytes: Uint8Array)
web/src/features/task-plugins/lib/plugin-icon-file.ts:48
↓ 2 callersFunctioncacheDecrUserQuota
(userId int, delta int64)
model/user_cache.go:167
↓ 2 callersFunctioncacheSetTokenForTest
cacheSetTokenForTest 以测试身份写入完整 token 缓存(含额度字段), 模拟“已水合”的缓存状态。
model/token_auto_groups_cache_test.go:78
↓ 2 callersFunctioncacheTryReserveTokenQuota
(id int, key string, amount int64)
model/quota_reserve.go:93
↓ 2 callersFunctioncacheWriteTokensTotal
(summary textQuotaSummary)
service/text_quota.go:83
↓ 2 callersFunctioncachedLoginSessionKey
(t *testing.T, server *miniredis.Miniredis)
service/auth_session_test.go:87
↓ 2 callersFunctioncalcViolationFeeQuota
(amount, groupRatio float64)
service/violation_fee.go:84
↓ 2 callersFunctioncalculateUserPermissions
计算用户权限的辅助函数
controller/user.go:529
↓ 2 callersMethodcall
call runs login while the flow is claimed and stores its result.
service/provider_plugin_login.go:483
↓ 2 callersMethodcallDecode
(ctx context.Context, admissionTimeout time.Duration, exportName string, members []string, request map[string]
pluginkit/task.go:583
↓ 2 callersMethodcallID
()
relaykit/relayconvert/internal/oai_chat/to_oai_responses_stream_resp.go:918
↓ 2 callersFunctioncallLogHandler
callLogHandler runs a log handler as the given user and returns the JSON lines of the response.
controller/log_export_test.go:28
↓ 2 callersFunctioncallLogTaskConsumption
(t *testing.T, info *relaycommon.RelayInfo, task *model.Task)
service/task_billing_test.go:293
↓ 2 callersFunctioncallMemoryLimit
callMemoryLimit is the memory, in bytes, the JavaScript of one hook call may keep before the runtime stops it; 0 means no limit. When the call's alloc
pluginkit/host.go:123
↓ 2 callersFunctioncallName
(node, sourceCode)
web/scripts/oxlint/intl-locale.mjs:54
↓ 2 callersFunctioncallXAI
(t *testing.T, plugin *jsplugin.LoadedPlugin, path []string, args ...any)
plugins/xai_responses_test.go:36
↓ 2 callersMethodcallbackInput
callbackInput checks callback parameters against the flow and returns the plugin input for them.
service/provider_plugin_login.go:399
↓ 2 callersFunctioncancel
(notify: boolean)
web/src/features/playground/hooks/use-stream-request.ts:169
↓ 2 callersFunctioncancelResultTimeout
()
web/src/routes/oauth/$provider.tsx:139
↓ 2 callersFunctioncanonicalHost
(value *url.URL)
pluginkit/request.go:79
↓ 2 callersFunctioncanonicalUsageLimit
(key string)
relay/channel/task/jsplugin/adaptor.go:1847
↓ 2 callersFunctioncategorizeModels
( models: readonly string[] )
web/src/features/channels/lib/model-categories.ts:26
↓ 2 callersFunctionchannel
(id: number)
web/src/features/channels/lib/__tests__/channel-table-row-id.test.ts:24
↓ 2 callersFunctionchannelAddress
channelAddress normalizes a url value of meta.channelConfig as the plugin's meta.baseUrl is: an absolute http(s) URL with an ASCII host and no credent
pluginkit/config_schema.go:325
↓ 2 callersFunctionchannelAffinityUsageCacheEntryKey
(ruleName, usingGroup, keyFp string)
service/channel_affinity.go:922
↓ 2 callersFunctionchannelHasSensitiveChanges
(channel *PatchChannel, origin *model.Channel, requestData map[string]any)
controller/channel_authz.go:5
↓ 2 callersFunctionchannelMatchesFilter
(ch *Channel, modelName string, filter dto.ChannelFilter)
model/channel_constraint.go:92
↓ 2 callersFunctionchannelOwnerName
(channelType int)
controller/model.go:138
↓ 2 callersFunctionchannelPriorityRevision
(items []ChannelPriority)
model/channel_priority.go:53
↓ 2 callersFunctionchannelRelayConfig
channelRelayConfig returns the relay routes of a task plugin channel's plugin that are on for the channel, nil for any other channel. It reads the set
model/channel_plugin_credential.go:222
↓ 2 callersFunctionchannelSelectChannelTypesField
(channelType int)
service/channel_select_test.go:126
↓ 2 callersFunctionchannelSelectEndpointPluginSource
(key string, channelType int)
service/channel_select_test.go:101
↓ 2 callersFunctionchannelSelectTaskPluginSource
(key string, channelType int)
service/channel_select_test.go:82
↓ 2 callersMethodchannelSetting
channelSetting is the executing channel's settings when the adaptor runs with channel metadata; zero otherwise.
relay/channel/task/jsplugin/adaptor.go:1370
↓ 2 callersFunctionchannelTypePluginModels
channelTypePluginModels lists the models of every plugin declaring a built-in channel type, each once, in plugin key order.
controller/model.go:126
← previousnext →3,701–3,800 of 15,592, ranked by callers