Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/QuantumNous/new-api
/ functions
Functions
15,592 in github.com/QuantumNous/new-api
⨍
Functions
15,592
◇
Types & classes
2,267
↓ 4 callers
Method
event
event passes one event of a response through its check.
relay/requestplugin/socket.go:570
↓ 4 callers
Function
exceedsMaxCharacters
(s string, max int)
setting/console_setting/validation.go:34
↓ 4 callers
Function
expressionDependencies
(node: ExpressionNode)
web/src/features/pricing/lib/billing-expression/types.ts:202
↓ 4 callers
Function
fetchFromPluginSite
( input: RequestInfo | URL, init?: RequestInit )
web/src/features/task-plugins/lib/plugin-site.ts:40
↓ 4 callers
Function
fetchMarketplaceIndex
( indexUrl: string )
web/src/features/task-plugins/lib/marketplace.ts:481
↓ 4 callers
Function
finalizeMessage
( message: Message, apiReasoningContent?: string | null )
web/src/features/playground/lib/message/message-streaming-utils.ts:121
↓ 4 callers
Method
finish
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:1531
↓ 4 callers
Function
firstImage
(req)
plugins/tasks/alibaba/plugin.js:436
↓ 4 callers
Function
firstValues
(header http.Header)
relay/channel/providerplugin/adaptor.go:777
↓ 4 callers
Function
flowPathForStages
( row: FlowQuotaDataItem, stages: FlowNodeKind[], ctx: FlowPathContext = EMPTY_FLOW_PATH_CONTEXT )
web/src/features/dashboard/lib/flow.ts:275
↓ 4 callers
Function
formatChannelBalanceSummary
( result: ChannelBalanceResult | null | undefined, usdBalance: number, options: CurrencyFormatOptions =
web/src/features/channels/lib/channel-balance.ts:77
↓ 4 callers
Function
formatCompactNumber
( value: number | null | undefined, locales?: Intl.LocalesArgument )
web/src/lib/format.ts:58
↓ 4 callers
Function
formatDateTimeObject
(date: Date)
web/src/lib/time.ts:152
↓ 4 callers
Function
formatJsonForTextarea
(value: string)
web/src/features/system-settings/models/utils.ts:19
↓ 4 callers
Function
fromRequestPluginConfigDraft
( schema: RequestPluginConfigShape | undefined, draft: RequestPluginConfigDraft, prefix = '' )
web/src/features/task-plugins/lib/request-plugins.ts:324
↓ 4 callers
Function
geminiCapabilitiesFor
(model string)
relaykit/relayconvert/reasoning/gemini.go:35
↓ 4 callers
Function
getCachePricingMode
( variables: Iterable<string>, modelName?: string )
web/src/features/pricing/lib/cache-pricing.ts:67
↓ 4 callers
Function
getCookie
(name: string)
web/src/lib/cookies.ts:29
↓ 4 callers
Function
getDefaultAdvancedCustomIncomingPath
( converter: AdvancedCustomConverter )
web/src/features/channels/lib/advanced-custom.ts:526
↓ 4 callers
Function
getDefaultDays
(granularity?: TimeGranularity)
web/src/features/dashboard/lib/filters.ts:138
↓ 4 callers
Function
getDefaultTimeRange
()
web/src/features/usage-logs/lib/utils.ts:80
↓ 4 callers
Function
getJSONList
(jsonStr string)
setting/console_setting/validation.go:79
↓ 4 callers
Function
getLogTypeConfig
(type: number)
web/src/features/usage-logs/lib/utils.ts:66
↓ 4 callers
Function
getMinTopupAmount
(topupInfo: TopupInfo | null)
web/src/features/wallet/lib/payment.ts:171
↓ 4 callers
Function
getModelListGroups
(c *gin.Context)
controller/model.go:203
↓ 4 callers
Function
getModuleAccessForGuard
( queryClient: QueryClient, module: HeaderNavModule )
web/src/lib/nav-modules.ts:184
↓ 4 callers
Function
getNameRuleConfig
( t: TFunction )
web/src/features/models/constants.ts:42
↓ 4 callers
Function
getRollingDateRange
( days: number, fromDate: Date = new Date() )
web/src/lib/time.ts:90
↓ 4 callers
Function
getSuccessRateDotClass
(rate: number)
web/src/features/performance-metrics/lib/format.ts:92
↓ 4 callers
Function
getSyncPriceKind
( values?: PricingSyncValues )
web/src/features/system-settings/models/upstream-ratio-sync-helpers.ts:71
↓ 4 callers
Function
getSyncPriceLines
( values: PricingSyncValues, t: (key: string) => string, currency = USD_PRICING_CURRENCY )
web/src/features/system-settings/models/upstream-ratio-sync-helpers.ts:115
↓ 4 callers
Function
getTaskEnumCombinations
( schema: BillingUsageSchema | null | undefined )
web/src/features/pricing/lib/task-expr.ts:88
↓ 4 callers
Function
getTaskForArtifactRequest
(c *gin.Context, taskID string)
controller/task.go:273
↓ 4 callers
Function
getTieredBillingSummary
( other: LogOtherData | null, modelName?: string )
web/src/features/usage-logs/lib/format.ts:349
↓ 4 callers
Function
getUserGroups
()
web/src/features/playground/api.ts:67
↓ 4 callers
Function
getUserModels
(group: string)
web/src/features/playground/api.ts:47
↓ 4 callers
Function
getUserQuotaFromDB
(t *testing.T, id int)
model/quota_reserve_test.go:44
↓ 4 callers
Function
getUserSessionCache
(sid string)
model/user_session.go:266
↓ 4 callers
Function
getUserStorageKey
(key: string)
web/src/features/playground/lib/storage/storage.ts:51
↓ 4 callers
Function
h3QueryTask
(body)
plugins/tasks/hailuo/plugin.js:482
↓ 4 callers
Function
hailuoH3SubmitContext
(requestBody map[string]any)
plugins/hailuo_responses_test.go:192
↓ 4 callers
Function
hasAnyCacheTokens
( other: LogOtherData | null | undefined )
web/src/features/usage-logs/lib/format.ts:335
↓ 4 callers
Function
hasKeywords
(config)
plugins/tasks/request-filter/plugin.js:345
↓ 4 callers
Function
hasMessageContent
(message: Message)
web/src/features/playground/lib/message/message-utils.ts:56
↓ 4 callers
Function
imageProtocolTestEndpoint
(t *testing.T)
controller/plugin_protocol_test.go:1626
↓ 4 callers
Function
imageURLEntries
(body)
plugins/tasks/doubao/plugin.js:649
↓ 4 callers
Function
inferResponseRelayFormat
(response any)
relaykit/relayconvert/response_registry.go:813
↓ 4 callers
Function
interruptCause
interruptCause is what stopped a runtime: the context cause watchRuntimeContext interrupted it with, so errors.Is sees a caller's cancellation through
pluginkit/engine.go:620
↓ 4 callers
Function
invalidateModelPricing
(client: QueryClient)
web/src/features/model-pricing/api.ts:151
↓ 4 callers
Function
isAdvancedCustomManagementPath
(path: string)
web/src/features/channels/lib/advanced-custom.ts:350
↓ 4 callers
Function
isConverterPathAllowed
( incomingPath: string, converter: AdvancedCustomConverter )
web/src/features/channels/lib/advanced-custom.ts:951
↓ 4 callers
Function
isEpayWebhookEnabled
()
controller/payment_webhook_availability.go:113
↓ 4 callers
Function
isKling4Task
(ctx)
plugins/tasks/kling/plugin.js:572
↓ 4 callers
Function
isPDFSpace
(char byte)
relay/requestplugin/pdf.go:562
↓ 4 callers
Function
isPlainObject
(value: unknown)
web/src/features/system-settings/hooks/use-settings-form.ts:34
↓ 4 callers
Function
isRedemptionExpired
( expired_time: number, status: number )
web/src/features/redemption-codes/lib/utils.ts:40
↓ 4 callers
Function
isResponsesToolOutputType
(outputType string)
relaykit/relayconvert/internal/oai_responses/to_oai_chat_resp.go:354
↓ 4 callers
Function
isTimingLogType
(type: number)
web/src/features/usage-logs/lib/utils.ts:59
↓ 4 callers
Function
isWaffoPancakeTopUpEnabled
()
controller/payment_webhook_availability.go:76
↓ 4 callers
Function
issueAuthBundle
(session *model.UserSession, rawRefreshToken string, current bool)
service/auth_session.go:403
↓ 4 callers
Function
jsonRequest
jsonRequest reports a client body the gateway parses as JSON: a Content-Type that starts with application/json, as the request parser checks it (appli
relay/requestplugin/relay.go:467
↓ 4 callers
Function
kling4Entry
(reply, taskId)
plugins/tasks/kling/plugin.js:378
↓ 4 callers
Function
kling4Videos
(entry)
plugins/tasks/kling/plugin.js:395
↓ 4 callers
Method
late
late reports whether the deadline has passed, after which every read fails.
relay/requestplugin/pdf.go:100
↓ 4 callers
Function
linkStableKey
(link: Pick<DashboardFlowLink, 'source' | 'target'>)
web/src/features/dashboard/lib/flow.ts:507
↓ 4 callers
Function
loadConfig
()
web/src/features/playground/lib/storage/storage.ts:298
↓ 4 callers
Function
loadJimengPlugin
(t *testing.T)
plugins/jimeng_responses_test.go:37
↓ 4 callers
Function
loadKeyStatus
( page: number = currentPage, size: number = pageSize, status: number | null = statusFilter )
web/src/features/channels/components/dialogs/multi-key-manage-dialog.tsx:150
↓ 4 callers
Function
logHelper
(ctx context.Context, level string, msg string)
logger/logger.go:99
↓ 4 callers
Function
makeLog
(logOther: LogOtherData = other)
web/src/features/usage-logs/components/__tests__/request-plugin-record.test.tsx:115
↓ 4 callers
Method
mark
mark records what the call did with an attachment: ref, or "url:" and the pointer of a file named by URL. A better status stays: checked over truncate
relay/requestplugin/attachments.go:540
↓ 4 callers
Function
markAuditLogged
markAuditLogged 标记当前请求已在 handler 内手动记录审计日志, 使鉴权链路中的审计兜底(finishAdminAudit)跳过兜底记录,避免重复。
controller/audit.go:138
↓ 4 callers
Function
maxBodyBytes
()
relay/channel/providerplugin/adaptor.go:502
↓ 4 callers
Function
maxConvertedEventBytes
()
pluginkit/host.go:140
↓ 4 callers
Function
mediaKind
mediaKind is the kind utils.media and the record give a file.
relay/requestplugin/attachments.go:135
↓ 4 callers
Method
mediaSource
()
pluginkit/media.go:89
↓ 4 callers
Method
mediaText
Stage hooks only: the text of a text, PDF or DOCX file, read once per request, with the hook's clock stopped. maxChars is 1 to 131072 (the default) UT
pluginkit/v1.d.ts:40
↓ 4 callers
Function
memoryRateLimitHandler
内存限流处理器
middleware/model-rate-limit.go:136
↓ 4 callers
Function
mergeOptions
( options?: CurrencyFormatOptions )
web/src/lib/currency.ts:231
↓ 4 callers
Function
middlewareBearerRequest
(router *gin.Engine, path, token string)
middleware/auth_test.go:430
↓ 4 callers
Function
modelMeta
(modelName string, meta map[string]rankingModelMeta)
service/rankings.go:257
↓ 4 callers
Function
modelModifierDiagnostic
(code string, key string, message string)
relay/helper/model_modifier.go:170
↓ 4 callers
Function
mustConvertResponsesToGemini
(t *testing.T, req dto.OpenAIResponsesRequest)
relay/channel/gemini/adaptor_responses_test.go:175
↓ 4 callers
Function
mustGeminiRawMessage
(t *testing.T, value any)
relay/channel/gemini/adaptor_responses_test.go:190
↓ 4 callers
Function
newAccessTokenTestAdaptor
(keyID string)
relay/channel/vertex/service_account_test.go:33
↓ 4 callers
Function
newAccessTokenTestInfo
(channelID int)
relay/channel/vertex/service_account_test.go:29
↓ 4 callers
Function
newAwsInvokeContext
(parent context.Context)
relay/channel/aws/relay-aws.go:44
↓ 4 callers
Function
newAwsTestRelayInfo
()
relay/channel/aws/relay_aws_test.go:91
↓ 4 callers
Function
newH2PriorKnowledgeClient
(ln net.Listener)
relay/channel/api_request_getbody_test.go:431
↓ 4 callers
Function
newPluginProtocolSDKTestServer
( t *testing.T, pinned pluginruntime.PinnedEndpoint, deps pluginProtocolBridgeDeps, )
controller/plugin_protocol_sdk_test.go:268
↓ 4 callers
Function
newProtectedFetchHTTPClientWithProxy
(resolver ssrfResolver, dialContext func(ctx context.Context, network, address string) (net.Conn, error), getP
service/protected_fetch_client.go:66
↓ 4 callers
Function
newReplyCheck
(ctx context.Context, plan *Plan, instances []*request_plugin_setting.Instance)
relay/requestplugin/reply.go:208
↓ 4 callers
Function
newResponsesWSTestRunner
(t *testing.T, token *model.Token)
controller/responses_websocket_test.go:105
↓ 4 callers
Function
newTaskPluginSubmitDiagnostics
(c *gin.Context)
controller/task_plugin_debug.go:21
↓ 4 callers
Function
newTestContainerUsage
newTestContainerUsage 在临时目录中构造 cgroup 文件,避免依赖运行环境的真实 cgroup。
common/system_monitor_test.go:14
↓ 4 callers
Function
newWaffoPancakeClientFromCreds
(merchantID, privateKey string)
service/waffo_pancake.go:86
↓ 4 callers
Function
newWebSearchCall
newWebSearchCall describes one hosted web-search definition for the host encoder; the caller sets the typed target request.
relaykit/relayconvert/internal/toolconv/encode.go:159
↓ 4 callers
Function
newXAIPlugin
(t *testing.T)
plugins/xai_responses_test.go:27
↓ 4 callers
Method
next
()
relay/channel/providerplugin/stream.go:30
↓ 4 callers
Function
normalizeJsonString
(value: string, fallback = '[]')
web/src/features/system-settings/content/utils.ts:29
← previous
next →
1,901–2,000 of 15,592, ranked by callers