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
↓ 5 callers
Function
getPluginWebsite
(value: unknown)
web/src/features/task-plugins/lib/plugin-website.ts:20
↓ 5 callers
Function
getSavedChartPreferences
()
web/src/features/dashboard/lib/filters.ts:94
↓ 5 callers
Function
getSyncExpressionPricing
( expression: string, t: (key: string) => string, currency = USD_PRICING_CURRENCY )
web/src/features/system-settings/models/upstream-ratio-sync-helpers.ts:165
↓ 5 callers
Function
getTaskQuota
(t *testing.T, id int64)
service/task_billing_test.go:562
↓ 5 callers
Function
getTaskUsagePriceUnitLabelKey
( unit: BillingUsageUnit | undefined )
web/src/features/pricing/lib/dynamic-price.ts:120
↓ 5 callers
Function
getTierCachePricingMode
( tiers: readonly ParsedTier[], modelName?: string )
web/src/features/pricing/lib/cache-pricing.ts:91
↓ 5 callers
Function
getUserAvatarFallback
(name: string)
web/src/lib/avatar.ts:43
↓ 5 callers
Function
getUserAvatarStyle
(name: string)
web/src/lib/avatar.ts:31
↓ 5 callers
Function
hasTaskUsageSchema
(model: PricingModel)
web/src/features/pricing/lib/dynamic-price.ts:161
↓ 5 callers
Function
hasValue
(value: unknown)
web/src/features/system-settings/models/model-pricing-core.ts:198
↓ 5 callers
Method
hookContext
hookContext is the ctx of the relay hooks of the request.
relay/channel/providerplugin/adaptor.go:594
↓ 5 callers
Function
idParam
(id int)
controller/provider_plugin_test.go:111
↓ 5 callers
Function
identityFilters
(key string, channelTypes []int)
model/task_plugin_channel_select_test.go:52
↓ 5 callers
Function
invalidRequestStatus
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 callers
Function
invalidateTokenCacheForMutation
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 callers
Function
isAuthBundle
(value: unknown)
web/src/lib/auth-session.ts:131
↓ 5 callers
Function
isContentSizedColumn
(columnId: string)
web/src/components/data-table/core/content-sized-columns.ts:19
↓ 5 callers
Function
isH3
(model)
plugins/tasks/hailuo/plugin.js:303
↓ 5 callers
Function
isObject
(value)
plugins/tasks/request-filter/plugin.js:129
↓ 5 callers
Function
isPaymentComplianceConfirmed
()
controller/payment_webhook_availability.go:10
↓ 5 callers
Function
isRecord
(value: unknown)
web/src/lib/server-error-message.ts:89
↓ 5 callers
Function
isRecord
(value: unknown)
web/src/lib/auth-session.ts:90
↓ 5 callers
Method
item
item returns the media ref names.
relay/requestplugin/attachments.go:325
↓ 5 callers
Function
limitLogTimeRange
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 callers
Function
listTaskPluginItem
(t *testing.T, key string)
controller/task_plugin_test.go:182
↓ 5 callers
Method
logRejectedUsage
(hook string, _ error)
relay/channel/task/jsplugin/adaptor.go:1859
↓ 5 callers
Function
logTokenName
( 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 callers
Function
logsAppender
(logs *[]string)
controller/plugin_protocol_test.go:1572
↓ 5 callers
Method
member
(name string)
pkg/requestpatch/patch.go:521
↓ 5 callers
Function
mergeModelNames
(base []string, appended []string)
controller/channel_upstream_update.go:110
↓ 5 callers
Method
message
message takes one event of a WebSocket stream: a whole JSON message the session already decoded.
relay/requestplugin/reply.go:1056
↓ 5 callers
Method
messageID
()
relaykit/relayconvert/internal/oai_chat/to_oai_responses_stream_resp.go:852
↓ 5 callers
Function
modelPricingValues
(values map[string]map[string]any, name string)
model/model_pricing_config.go:128
↓ 5 callers
Function
mustResponsesEventsFromChatChunk
(t *testing.T, state *ChatToResponsesStreamState, chunk *dto.ChatCompletionsStreamResponse)
relaykit/relayconvert/internal/oai_chat/to_oai_responses_resp_test.go:576
↓ 5 callers
Function
newAwsInvokeError
(requestContext context.Context, err error, operation string)
relay/channel/aws/relay-aws.go:51
↓ 5 callers
Function
newFakeSMTPServer
(t *testing.T)
common/email_test.go:35
↓ 5 callers
Function
newPinRetryContext
()
controller/channel_pin_retry_test.go:102
↓ 5 callers
Function
newRealtimeSession
(t *testing.T)
relay/requestplugin/socket_test.go:54
↓ 5 callers
Function
newSecurityMailbox
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 callers
Function
newTokenAutoGroupsAuthenticatedContext
(t *testing.T, method string, target string, body any, userID int)
controller/token_auto_groups_test.go:67
↓ 5 callers
Function
normalizeJsonString
(value: string)
web/src/features/system-settings/models/utils.ts:32
↓ 5 callers
Function
normalizeModelName
(model: string)
web/src/features/channels/lib/model-mapping-validation.ts:45
↓ 5 callers
Function
normalizeTierLabel
(label: string | undefined)
web/src/features/pricing/lib/billing-expr.ts:351
↓ 5 callers
Function
objectValue
(value, name)
plugins/tasks/alibaba/plugin.js:785
↓ 5 callers
Method
out
out sends one event to the client and keeps it for the report.
relay/requestplugin/socket.go:86
↓ 5 callers
Method
out
out writes to the client: one message on a WebSocket, stream bytes otherwise.
relay/requestplugin/reply.go:1139
↓ 5 callers
Function
parseAdvancedCustomConfig
( value: string | undefined )
web/src/features/channels/lib/advanced-custom.ts:567
↓ 5 callers
Function
parseMarketplaceIndex
(payload: unknown)
web/src/features/task-plugins/lib/marketplace.ts:81
↓ 5 callers
Function
parseOptionalJson
(value: string | undefined)
web/src/features/channels/lib/channel-form.ts:113
↓ 5 callers
Function
parseRatioMap
(value: string)
web/src/features/system-settings/models/group-ratio-visual-editor.tsx:136
↓ 5 callers
Function
parseUsableMap
(value: string)
web/src/features/system-settings/models/group-ratio-visual-editor.tsx:143
↓ 5 callers
Method
part
part is the output of a Responses output part.
relay/requestplugin/reply.go:227
↓ 5 callers
Function
performManageUserRequest
(t *testing.T, body string)
controller/user_manage_test.go:84
↓ 5 callers
Function
pinMappingOrderPlugin
(t *testing.T, c *gin.Context, source string)
relay/relay_task_test.go:213
↓ 5 callers
Function
pluginCredentialLine
(t *testing.T, pluginKey, token string)
controller/provider_plugin_test.go:113
↓ 5 callers
Function
pluginSourceByteLength
(source: string)
web/src/features/task-plugins/lib/plugin-url.ts:28
↓ 5 callers
Function
policyLabel
(t: TFunction, value: string)
web/src/features/system-settings/request-policies/policy-label.ts:6
↓ 5 callers
Function
postTaskPluginStatus
(t *testing.T, key, query, body string)
controller/task_plugin_test.go:167
↓ 5 callers
Function
preserveToolPrices
(t *testing.T)
setting/operation_setting/tools_price_test.go:12
↓ 5 callers
Function
pricingByModel
(pricings []Pricing)
model/pricing_usage_schema_test.go:140
↓ 5 callers
Function
pricingUsagePluginSource
(version, usageSchema string)
model/pricing_usage_schema_test.go:21
↓ 5 callers
Function
providerParams
providerParams returns the params of messages that name the OAuth provider.
controller/oauth.go:41
↓ 5 callers
Function
providerPlugin
(relay, source string)
pluginkit/provider_test.go:30
↓ 5 callers
Function
pushText
(texts, value)
plugins/tasks/request-filter/plugin.js:133
↓ 5 callers
Function
reasoningOutputText
(output *dto.ResponsesOutput)
relaykit/relayconvert/internal/oai_responses/to_oai_chat_resp.go:290
↓ 5 callers
Function
redactVideoResponseBody
(body []byte)
service/task_polling.go:726
↓ 5 callers
Function
registerAttachmentPlugin
(t *testing.T, instances string)
relay/requestplugin/attachments_test.go:51
↓ 5 callers
Function
registerChannelGapsPlugin
(t *testing.T, key, source string)
controller/channel_plugin_gaps_test.go:76
↓ 5 callers
Function
rejectOldCredential
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 callers
Method
removeExpired
removeExpired releases every expired request at the front of the queue.
common/rate-limit.go:36
↓ 5 callers
Function
reportContext
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 callers
Function
requestClientIP
(router http.Handler, remoteAddr string, forwardedFor string)
middleware/trusted_proxies_test.go:13
↓ 5 callers
Function
requestHeaders
(ctx)
plugins/tasks/vertex-ai/plugin.js:131
↓ 5 callers
Method
resolve
(c *gin.Context, info *relaycommon.RelayInfo)
relay/channel/advancedcustom/adaptor.go:394
↓ 5 callers
Function
resolvePluginSourceUrl
( indexUrl: string, path: string )
web/src/features/task-plugins/lib/marketplace.ts:47
↓ 5 callers
Function
responsesCallName
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 callers
Function
rowMetrics
(row: FlowQuotaDataItem)
web/src/features/dashboard/lib/flow.ts:160
↓ 5 callers
Function
sanitizeAuthRedirect
( value: unknown, origin: string )
web/src/features/auth/lib/auth-redirect.ts:46
↓ 5 callers
Function
sankeyDatumValue
( datum: Record<string, unknown>, key: string )
web/src/features/dashboard/lib/flow.ts:1045
↓ 5 callers
Function
seedSubscriptionResetPlan
(t *testing.T, plan *SubscriptionPlan)
model/subscription_reset_test.go:12
↓ 5 callers
Function
selectResponsesWSChannel
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 callers
Function
serveRevalidatedJSON
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 callers
Function
setAuthNoStore
(c *gin.Context)
controller/auth_session.go:178
↓ 5 callers
Function
setupChannelGapsTest
(t *testing.T)
controller/channel_plugin_gaps_test.go:65
↓ 5 callers
Function
setupLogin
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 callers
Function
setupPrivateChannelMediaTest
(t *testing.T)
controller/video_proxy_channel_test.go:23
↓ 5 callers
Function
setupResponsesWSRequestTest
(t *testing.T)
controller/responses_websocket_test.go:41
↓ 5 callers
Function
setupTokenAutoGroupsControllerTest
(t *testing.T)
controller/token_auto_groups_test.go:41
↓ 5 callers
Function
startSecurityEmailBinding
(t *testing.T, identity service.AuthIdentity, email, method string)
controller/security_account_test.go:337
↓ 5 callers
Method
stop
()
relay/helper/common.go:29
↓ 5 callers
Function
stringMetaField
(object map[string]any, name string)
pluginkit/meta.go:2111
↓ 5 callers
Function
stringifyAdvancedCustomConfig
( config: AdvancedCustomConfig )
web/src/features/channels/lib/advanced-custom.ts:582
↓ 5 callers
Function
submitDoubaoImage
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 callers
Function
taskPluginCompileError
(c *gin.Context, err error)
controller/task_plugin.go:35
↓ 5 callers
Function
taskPluginDebugStatus
(status string)
controller/task_plugin_debug.go:258
↓ 5 callers
Function
taskPluginProtocolJSONValue
taskPluginProtocolJSONValue encodes a task view for a hook, which receives it parsed from the text.
controller/plugin_protocol.go:1169
↓ 5 callers
Function
taskResponsesPluginSource
(key string, channelType int, models, supports, hooks, parseRequestBody string)
middleware/task_plugin_test.go:1939
↓ 5 callers
Function
testPDF
testPDF is a one-page PDF that shows text in Helvetica; trailer adds members to its trailer.
relay/requestplugin/attachments_test.go:87
↓ 5 callers
Function
textRegistryChatResponse
()
relaykit/relayconvert/response_registry_test.go:735
↓ 5 callers
Function
toRequestPluginConfigDraft
( schema: RequestPluginConfigShape | undefined, config: Record<string, unknown> )
web/src/features/task-plugins/lib/request-plugins.ts:218
← previous
next →
1,501–1,600 of 15,592, ranked by callers