MCPcopy Create free account

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

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

↓ 4 callersFunctionasOAIChatStreamResponse
(response any)
relaykit/relayconvert/response_registry.go:1269
↓ 4 callersFunctionassertBilledAlike
assertBilledAlike checks that a plugin channel billed a request as the Advanced Custom channel did.
router/provider_plugin_relay_test.go:1496
↓ 4 callersFunctionassertChannelRoutePermission
(t *testing.T, method string, path string, permission authz.Permission, handler any)
router/channel_router_test.go:63
↓ 4 callersMethodattachments
Stage hooks only: the request's files in body order, then the file parts of a form body. The host never downloads a file the request only names.
docs/plugin-api/v1.d.ts:31
↓ 4 callersFunctionauditFieldLabel
(key: string, t: TFunction)
web/src/features/usage-logs/audit/lib/audit-details.ts:83
↓ 4 callersFunctionawaitH2ServerResult
(t *testing.T, resultCh <-chan h2ServerResult)
relay/channel/api_request_getbody_test.go:329
↓ 4 callersFunctionbaseAutoTokenRequest
(name string)
controller/token_auto_groups_test.go:56
↓ 4 callersFunctionbatchUpdate
()
model/utils.go:64
↓ 4 callersFunctionbearerHeaderAuth
()
web/src/features/channels/lib/advanced-custom.ts:220
↓ 4 callersFunctionbeginSecurityLoginPasskey
(t *testing.T, parentToken string)
controller/auth_flow_test.go:47
↓ 4 callersFunctionbenchmarkAlibaba
(b *testing.B)
relay/channel/task/jsplugin/performance_test.go:22
↓ 4 callersFunctionbody
(parts: string)
web/src/features/task-plugins/__tests__/request-plugin-samples.test.ts:71
↓ 4 callersFunctionbucketStart
(ts int64)
pkg/perf_metrics/metrics.go:425
↓ 4 callersFunctionbuildChannelAffinityCacheKeySuffix
(rule operation_setting.ChannelAffinityRule, modelName string, usingGroup string, affinityValue string)
service/channel_affinity.go:339
↓ 4 callersFunctionbuildClaudeUsageFromOpenAIUsage
(oaiUsage *dto.Usage)
relaykit/relayconvert/internal/oai_chat/to_claude_messages_resp.go:89
↓ 4 callersFunctionbuildDefaultDashboardFilters
( preferences: DashboardChartPreferences = getSavedChartPreferences() )
web/src/features/dashboard/lib/filters.ts:143
↓ 4 callersFunctionbuildMaskedTokenResponse
(token *model.Token)
controller/token.go:57
↓ 4 callersFunctionbuildResponsesWSErrorPayload
(eventID, streamID string, apiErr *types.NewAPIError, upstreamURLs ...string)
relay/responses_websocket.go:1045
↓ 4 callersFunctionbuildSettingJSON
(formData: ChannelFormValues)
web/src/features/channels/lib/channel-form.ts:688
↓ 4 callersFunctionbuildUsageFromGeminiMetadata
(metadata *dto.GeminiUsageMetadata, fallbackPromptTokens int)
relay/channel/gemini/relay-gemini.go:27
↓ 4 callersFunctioncacheApplyTokenQuotaDelta
(id int, key string, delta int64)
model/quota_reserve.go:99
↓ 4 callersFunctioncacheInitToken
cacheInitToken publishes database metadata when the hash is cold or fails verification. Existing quota counters survive repairs because pre-consume ca
model/token_cache.go:73
↓ 4 callersMethodcacheMAC
()
model/token_cache.go:12
↓ 4 callersFunctioncalcNextResetTime
(base time.Time, plan *SubscriptionPlan, endUnix int64)
model/subscription.go:356
↓ 4 callersMethodcapture
capture starts keeping what the client gets for Report once an instance that may report the request is in scope: at the request's ingress, or at a cha
relay/requestplugin/report.go:108
↓ 4 callersFunctioncapturePointer
( event: ReactPointerEvent<HTMLElement>, capture: boolean )
web/src/components/floating-window.tsx:264
↓ 4 callersFunctionceilDiv
(a, b int)
tokenkit/image.go:288
↓ 4 callersMethodchannelType
channelType is the executing channel's type when polling or content fetches run with channel metadata; zero otherwise, which is a vendor upstream.
relay/channel/task/jsplugin/adaptor.go:1524
↓ 4 callersFunctionchatAnswer
(content string)
relay/requestplugin/requestplugin_test.go:1019
↓ 4 callersFunctionchatChunk
(content string, finish string)
relay/requestplugin/requestplugin_test.go:1025
↓ 4 callersFunctioncheckIsActive
( href: string, item: NavItem, mainNav = false )
web/src/components/layout/lib/url-utils.ts:57
↓ 4 callersFunctionchooseDB
(envName string, isLog bool)
model/main.go:140
↓ 4 callersFunctionclampPosition
( position: FloatingWindowPosition, width: number )
web/src/components/floating-window.tsx:133
↓ 4 callersFunctioncleanupAuthArtifacts
()
service/auth_cleanup.go:29
↓ 4 callersFunctionclearAuthenticatedClientState
( queryClient: QueryClient, synchronizeTabs = true )
web/src/lib/auth-session.ts:199
↓ 4 callersFunctionclearChannelInfo
(channel *model.Channel)
controller/channel.go:72
↓ 4 callersFunctionclientCacheKey
(proxyCacheKey string, policy HTTPTransportPolicy)
service/http_client.go:143
↓ 4 callersMethodclone
()
pkg/requestpatch/patch.go:459
↓ 4 callersFunctioncloneHostedOutput
(output *dto.ResponsesOutput)
relaykit/relayconvert/internal/oai_chat/to_oai_responses_stream_resp.go:982
↓ 4 callersFunctioncloneOpenAIUsage
(usage *Usage)
relaykit/dto/billing_usage.go:386
↓ 4 callersFunctionclonePluginMap
(source map[string]*LoadedPlugin)
pkg/jsplugin/registry.go:1318
↓ 4 callersFunctioncompileEntryFromCacheByHash
(exprStr, hash string)
pkg/billingexpr/compile.go:189
↓ 4 callersFunctioncompileFromCacheByHash
(exprStr, hash string)
pkg/billingexpr/compile.go:181
↓ 4 callersFunctioncompileProtocolPlugin
(t *testing.T, key, models, protocols, exports string)
pkg/jsplugin/protocol_supports_test.go:226
↓ 4 callersFunctioncomposeTieredTextQuota
(relayInfo *relaycommon.RelayInfo, summary textQuotaSummary, tieredQuota int, tieredResult *billingexpr.Tiered
service/text_quota.go:201
↓ 4 callersFunctionconditionRange
( node: VisualCondition )
web/src/features/system-settings/models/visual-condition-tree.tsx:64
↓ 4 callersFunctionconfirmUserSessionActiveSnapshot
(session *UserSession)
model/user_session.go:380
↓ 4 callersFunctionconvertImage
(ctx)
plugins/tasks/alibaba/plugin.js:511
↓ 4 callersFunctioncountGeminiBillableFunctionCalls
(info *relaycommon.RelayInfo, response *dto.GeminiChatResponse)
relay/channel/gemini/relay-gemini.go:131
↓ 4 callersFunctioncreateAccessTokenTestSession
createAccessTokenTestSession returns a browser session identity and the dashboard JWT that carries it.
controller/access_token_audit_test.go:125
↓ 4 callersFunctioncreateAccessTokenTestUser
(t *testing.T, username string)
model/user_update_test.go:410
↓ 4 callersFunctioncreateDefaultTaskVisualConfig
( schema: BillingUsageSchema )
web/src/features/pricing/lib/task-expr.ts:104
↓ 4 callersFunctioncreateLoadingAssistantMessage
( startedAt: number = Date.now() )
web/src/features/playground/lib/message/message-utils.ts:92
↓ 4 callersFunctioncreateMiddlewareScopedToken
(t *testing.T, userID int, expiresAt int64, scopes ...string)
middleware/auth_test.go:369
↓ 4 callersFunctioncreateOAuthAuthorization
( provider: string, intent: 'login' | 'bind' | 'verify', operation?: VerificationOperation, signal?: A
web/src/features/auth/api.ts:173
↓ 4 callersFunctioncreateReserveTestToken
(t *testing.T, remainQuota int)
model/quota_reserve_test.go:30
↓ 4 callersFunctioncreateTaskError
(err error, code string, statusCode int, localError bool)
relay/common/relay_utils.go:110
↓ 4 callersFunctioncustomToolInputFromArguments
customToolInputFromArguments unwraps the raw custom tool input from the {"input": ...} arguments a Chat function call carries. Arguments of any other
relaykit/relayconvert/internal/oai_chat/to_oai_responses_resp.go:261
↓ 4 callersFunctiondecideTaskRetry
decideTaskRetry is the single retry decision for task submissions. The reason is recorded in the request policy decision events of the log details.
controller/relay.go:995
↓ 4 callersFunctiondecodeDataWithFlexibleTimes
(data []byte, target *T)
pkg/ionet/jsonutil.go:39
↓ 4 callersFunctiondecodeImageConfig
decodeImageConfig 从字节数据解码图片配置
service/file_service.go:465
↓ 4 callersMethoddeleteExpiredEntries
deleteExpiredEntries walks only the oldest LRU entries and stops at the first active key.
common/rate-limit.go:107
↓ 4 callersFunctiondetectHEIF
detectHEIF checks ISOBMFF magic bytes to detect HEIC/HEIF files. Returns "image/heic", "image/heif", or "" if not recognized.
service/file_service.go:496
↓ 4 callersMethoddisconnect
()
web/src/test-setup.ts:93
↓ 4 callersFunctiondistributorEndpointPluginSource
(key string, channelType int)
middleware/distributor_test.go:209
↓ 4 callersFunctiondoAwsClientRequest
(c *gin.Context, info *relaycommon.RelayInfo, a *Adaptor, requestBody io.Reader)
relay/channel/aws/relay-aws.go:97
↓ 4 callersFunctionencode
(writer io.Writer, event CustomEvent)
common/custom-event.go:59
↓ 4 callersMethodendStream
endStream ends the outputs of a stream: the instances read the rest of the text, and every event waiting goes out.
relay/requestplugin/reply.go:1503
↓ 4 callersFunctionensureEmailAvailableWithTx
(tx *gorm.DB, email string, excludeUserID int)
model/user.go:656
↓ 4 callersFunctionensureMapKeyInContext
(context map[string]any, key string)
relay/common/override.go:1612
↓ 4 callersMethodevent
(event dto.PluginResponsesStreamEvent)
relay/plugin_protocol.go:996
↓ 4 callersMethodevent
event passes one event of a response through its check.
relay/requestplugin/socket.go:570
↓ 4 callersFunctionexceedsMaxCharacters
(s string, max int)
setting/console_setting/validation.go:34
↓ 4 callersFunctionexpressionDependencies
(node: ExpressionNode)
web/src/features/pricing/lib/billing-expression/types.ts:202
↓ 4 callersFunctionfetchFromPluginSite
( input: RequestInfo | URL, init?: RequestInit )
web/src/features/task-plugins/lib/plugin-site.ts:40
↓ 4 callersFunctionfinalizeMessage
( message: Message, apiReasoningContent?: string | null )
web/src/features/playground/lib/message/message-streaming-utils.ts:121
↓ 4 callersMethodfinish
finish ends the checks of the attempt: an answer still waiting is checked and written, a stream's outputs end and its events go out. After a stop the
relay/requestplugin/reply.go:1527
↓ 4 callersFunctionfirstImage
(req)
plugins/tasks/alibaba/plugin.js:436
↓ 4 callersFunctionfirstValues
(header http.Header)
relay/channel/providerplugin/adaptor.go:777
↓ 4 callersFunctionflowPathForStages
( row: FlowQuotaDataItem, stages: FlowNodeKind[], ctx: FlowPathContext = EMPTY_FLOW_PATH_CONTEXT )
web/src/features/dashboard/lib/flow.ts:275
↓ 4 callersFunctionformatChannelBalanceSummary
( result: ChannelBalanceResult | null | undefined, usdBalance: number, options: CurrencyFormatOptions =
web/src/features/channels/lib/channel-balance.ts:77
↓ 4 callersFunctionformatDateTimeObject
(date: Date)
web/src/lib/time.ts:152
↓ 4 callersFunctionformatJsonForTextarea
(value: string)
web/src/features/system-settings/models/utils.ts:19
↓ 4 callersFunctionfromRequestPluginConfigDraft
( schema: RequestPluginConfigShape | undefined, draft: RequestPluginConfigDraft, prefix = '' )
web/src/features/task-plugins/lib/request-plugins.ts:324
↓ 4 callersFunctiongeminiCapabilitiesFor
(model string)
relaykit/relayconvert/reasoning/gemini.go:35
↓ 4 callersFunctiongetCookie
(name: string)
web/src/lib/cookies.ts:29
↓ 4 callersFunctiongetDefaultAdvancedCustomIncomingPath
( converter: AdvancedCustomConverter )
web/src/features/channels/lib/advanced-custom.ts:518
↓ 4 callersFunctiongetDefaultDays
(granularity?: TimeGranularity)
web/src/features/dashboard/lib/filters.ts:138
↓ 4 callersFunctiongetDefaultTimeRange
()
web/src/features/usage-logs/lib/utils.ts:80
↓ 4 callersFunctiongetJSONList
(jsonStr string)
setting/console_setting/validation.go:79
↓ 4 callersFunctiongetLogTypeConfig
(type: number)
web/src/features/usage-logs/lib/utils.ts:66
↓ 4 callersFunctiongetMinTopupAmount
(topupInfo: TopupInfo | null)
web/src/features/wallet/lib/payment.ts:171
↓ 4 callersFunctiongetModelListGroups
(c *gin.Context)
controller/model.go:188
↓ 4 callersFunctiongetModuleAccessForGuard
( queryClient: QueryClient, module: HeaderNavModule )
web/src/lib/nav-modules.ts:184
↓ 4 callersFunctiongetNameRuleConfig
( t: TFunction )
web/src/features/models/constants.ts:42
↓ 4 callersFunctiongetRollingDateRange
( days: number, fromDate: Date = new Date() )
web/src/lib/time.ts:90
↓ 4 callersFunctiongetSuccessRateDotClass
(rate: number)
web/src/features/performance-metrics/lib/format.ts:92
↓ 4 callersFunctiongetSyncExpressionPricing
( expression: string, t: (key: string) => string, currency = USD_PRICING_CURRENCY )
web/src/features/system-settings/models/upstream-ratio-sync-helpers.ts:161
↓ 4 callersFunctiongetSyncPriceKind
( values?: PricingSyncValues )
web/src/features/system-settings/models/upstream-ratio-sync-helpers.ts:67
↓ 4 callersFunctiongetSyncPriceLines
( values: PricingSyncValues, t: (key: string) => string, currency = USD_PRICING_CURRENCY )
web/src/features/system-settings/models/upstream-ratio-sync-helpers.ts:111
← previousnext →1,801–1,900 of 15,409, ranked by callers