Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/QuantumNous/new-api
/ functions
Functions
15,409 in github.com/QuantumNous/new-api
⨍
Functions
15,409
◇
Types & classes
2,241
↓ 2 callers
Function
applyChatCompletionResponse
( message: Message, response: ChatCompletionResponse )
web/src/features/playground/lib/message/message-streaming-utils.ts:200
↓ 2 callers
Function
applyDeepSeekV4ClaudeThinkingSuffix
(info *relaycommon.RelayInfo, request *dto.ClaudeRequest)
relay/channel/deepseek/adaptor.go:154
↓ 2 callers
Function
applyEndpoints
( preset: (typeof OAUTH_PRESETS)[number], url: string )
web/src/features/system-settings/auth/custom-oauth/components/preset-selector.tsx:85
↓ 2 callers
Function
applyExplicitLogTextFilter
(tx *gorm.DB, column string, value string)
model/log.go:18
↓ 2 callers
Function
applyFaviconToDom
(url: string)
web/src/lib/dom-utils.ts:19
↓ 2 callers
Function
applyFlow
(next: EmailBindingFlow)
web/src/features/security/components/dialogs/email-bind-dialog.tsx:118
↓ 2 callers
Function
applyHTTPTransportPolicy
(transport *http.Transport, policy HTTPTransportPolicy)
service/http_transport_sharded.go:115
↓ 2 callers
Function
applyHeaderOverrideToRequest
(req *http.Request, headerOverride map[string]string)
relay/channel/api_request.go:346
↓ 2 callers
Function
applyJsonSmartEnter
( value: string, selectionStart: number, selectionEnd: number )
web/src/components/json-code-editor/json-code-editor-utils.ts:126
↓ 2 callers
Function
applyOpenAIChatReasoningThroughHandlerOrder
(t *testing.T, original dto.GeneralOpenAIRequest)
relay/channel/claude/relay_claude_test.go:407
↓ 2 callers
Method
applyOutputItem
(event *dto.ResponsesStreamResponse, estimatedInputTokens int, stop bool)
relaykit/relayconvert/internal/oai_responses/to_claude_messages_stream_resp.go:378
↓ 2 callers
Function
applyPasskeyDomainOptions
(values map[string]string)
model/passkey_option.go:255
↓ 2 callers
Function
applyPreset
(kind: 'today' | '7d' | 'week' | '30d' | 'month')
web/src/features/usage-logs/components/compact-date-time-range-picker.tsx:92
↓ 2 callers
Function
applyPricingDraft
( options: PricingOptions, data: ModelRatioData, names: string[] = [data.name] )
web/src/features/model-pricing/pricing.ts:271
↓ 2 callers
Function
applyPricingValues
( options: PricingOptions, values: PricingValues, names: string[] )
web/src/features/model-pricing/pricing.ts:290
↓ 2 callers
Function
applyPriorityPreview
( channels: Channel[], order: PriorityOrder, desc: boolean )
web/src/features/channels/lib/channel-priority-order.ts:69
↓ 2 callers
Function
applyRankingQuotaTimeRange
(query *gorm.DB, startTime int64, endTime int64)
model/usedata_rankings.go:58
↓ 2 callers
Function
applyRechargeRate
( price: number, showWithRecharge: boolean, priceRate: number, usdExchangeRate: number )
web/src/features/pricing/lib/dynamic-price.ts:191
↓ 2 callers
Method
applyResponseMetadata
(response *dto.OpenAIResponsesResponse)
relaykit/relayconvert/internal/oai_responses/to_claude_messages_stream_resp.go:182
↓ 2 callers
Function
applyRule
(text, rule)
plugins/tasks/request-redact/plugin.js:376
↓ 2 callers
Function
applySelectedModelChanges
(originModels []string, addModels []string, removeModels []string)
controller/channel_upstream_update.go:148
↓ 2 callers
Function
applyStreamingChunk
( message: Message, type: StreamChunkType, chunk: string )
web/src/features/playground/lib/message/message-streaming-utils.ts:81
↓ 2 callers
Function
applySystemPromptIfNeeded
(c *gin.Context, info *relaycommon.RelayInfo, request *dto.GeneralOpenAIRequest)
relay/chat_completions_via_responses.go:23
↓ 2 callers
Function
applyTaskMediaRequestHeaders
(destination http.Header, headers map[string]string)
controller/video_proxy.go:484
↓ 2 callers
Function
applyTaskPluginModelPreview
applyTaskPluginModelPreview sets up an unsaved task plugin channel for a model list preview as the Advanced Custom preview does: the plugin's meta.bas
controller/channel.go:1664
↓ 2 callers
Function
applyVendorOperation
(operation VendorOperation)
model/vendor_management.go:213
↓ 2 callers
Function
arrayBufferToBase64Url
( buffer?: ArrayBuffer | ArrayBufferLike | null )
web/src/lib/passkey.ts:71
↓ 2 callers
Function
artifactData
(ctx)
plugins/tasks/jimeng/plugin.js:410
↓ 2 callers
Function
artifactData
(ctx)
plugins/tasks/hailuo/plugin.js:765
↓ 2 callers
Function
artifactFileID
(ctx)
plugins/tasks/hailuo/plugin.js:771
↓ 2 callers
Function
artifactVideoURL
(ctx)
plugins/tasks/google/plugin.js:309
↓ 2 callers
Function
artifactVideoURL
(ctx)
plugins/tasks/vidu/plugin.js:442
↓ 2 callers
Function
artifactVideoURL
(ctx)
plugins/tasks/kling/plugin.js:642
↓ 2 callers
Function
asFloat64
(value any)
controller/ratio_sync.go:107
↓ 2 callers
Function
asOAIResponsesResponse
(response any)
relaykit/relayconvert/response_registry.go:1280
↓ 2 callers
Function
asOAIResponsesStreamResponse
(response any)
relaykit/relayconvert/response_registry.go:1291
↓ 2 callers
Function
aspect
(size)
plugins/tasks/vertex-ai/plugin.js:308
↓ 2 callers
Function
aspectRatio
(dimensions, ratios)
plugins/tasks/kling/plugin.js:195
↓ 2 callers
Function
assertEpayCallbacksVerifyBeforeSettlement
assertEpayCallbacksVerifyBeforeSettlement sends each callback to the top-up and subscription endpoints by GET and POST. Only a valid pending callback
controller/payment_webhook_availability_test.go:249
↓ 2 callers
Function
assertIndependentReplayReaders
assertIndependentReplayReaders proves that readers handed out by getBody own independent cursors, per the http.Request.GetBody contract of returning a
relay/common/outbound_body_test.go:75
↓ 2 callers
Function
assertLimitError
( t *testing.T, err error, expectedScope string, expectedLimit int, )
controller/plugin_protocol_limiter_test.go:234
↓ 2 callers
Function
assessBaseUrlTrust
( value: string | undefined )
web/src/features/channels/lib/task-plugin-base-url.ts:51
↓ 2 callers
Function
assistantMessageWithTool
(content string, id string, name string, args string)
relaykit/relayconvert/internal/oai_chat/to_oai_responses_req_test.go:196
↓ 2 callers
Function
attachEstimatedGeminiBillingUsage
(usage *dto.Usage)
relay/channel/gemini/relay-gemini.go:35
↓ 2 callers
Function
attachQuotaSaturationToOther
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 callers
Function
attachedFunctions
attachedFunctions returns the function declarations and the tool choice that AttachRequest wrote into a Chat, Claude, or Gemini request, decoded from
relaykit/relayconvert/internal/toolconv/policy_test.go:141
↓ 2 callers
Method
attemptRequestPluginRecord
attemptRequestPluginRecord is the record of the current channel attempt, the entries after the request's ingress.
relay/common/request_plugin.go:243
↓ 2 callers
Method
attemptSucceeded
(attempt int, result *relay.TaskSubmitResult)
controller/task_plugin_debug.go:94
↓ 2 callers
Function
authHeaders
(ctx)
plugins/tasks/google/plugin.js:68
↓ 2 callers
Function
authorization
(ctx)
plugins/tasks/vidu/plugin.js:177
↓ 2 callers
Function
authorizeSecurityEnrollment
(t *testing.T, identity service.AuthIdentity)
controller/security_enrollment_test.go:566
↓ 2 callers
Function
autoSizeColumn
( resizerElement: HTMLElement, table: TanstackTable<TData>, header: Header<TData, unknown> )
web/src/components/data-table/core/data-table-header.tsx:145
↓ 2 callers
Function
balanceContext
balanceContext is the ctx of the balance hooks.
pkg/jsplugin/provider.go:1966
↓ 2 callers
Function
balanceErrorText
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 callers
Function
base64Body
base64Body decodes a base64 member of at most limit bytes.
pkg/jsplugin/provider.go:1199
↓ 2 callers
Function
base64UrlToArrayBuffer
(value?: string | null)
web/src/lib/passkey.ts:35
↓ 2 callers
Function
batchUpdateChannelStatus
( ids: number[], status: number )
web/src/features/channels/api.ts:275
↓ 2 callers
Function
beginAccessTokenAudit
(c *gin.Context, user *model.UserBase, tokenRef string)
middleware/audit.go:281
↓ 2 callers
Function
beginRun
(state: FadeState, suppress = false)
web/src/components/ai-elements/response-fade.ts:136
↓ 2 callers
Function
belongsTo
(message, attachment)
plugins/tasks/content-moderation/plugin.js:328
↓ 2 callers
Function
billingExprSmokeRequests
()
setting/billing_setting/tiered_billing.go:375
↓ 2 callers
Function
boolPointer
(value map[string]any, key string)
relaykit/relayconvert/internal/toolconv/decode.go:894
↓ 2 callers
Function
bootstrapAuthentication
()
web/src/lib/auth-session.ts:400
↓ 2 callers
Function
buildAdvancedCustomAuth
( mode: AdvancedCustomAuthMode, previousAuth: AdvancedCustomRouteAuth | undefined )
web/src/features/channels/lib/advanced-custom.ts:795
↓ 2 callers
Function
buildAdvancedCustomModelPreviewChannel
(req fetchModelsRequest)
controller/channel.go:1577
↓ 2 callers
Function
buildAwsRequestBody
buildAwsRequestBody prepares the payload for AWS requests, applying passthrough rules when enabled.
relay/channel/aws/relay-aws.go:180
↓ 2 callers
Function
buildChannelAffinityKeyHint
(s string)
service/channel_affinity.go:426
↓ 2 callers
Function
buildChannelListQuery
(group string, statusFilter int, typeFilter int)
controller/channel.go:179
↓ 2 callers
Function
buildCurlCommand
(args: { endpoint: string apiKey: string model: string })
web/src/features/dashboard/components/overview/overview-dashboard.tsx:173
↓ 2 callers
Function
buildDifferences
(localData map[string]any, successfulChannels []struct { name string data map[string]any })
controller/ratio_sync.go:658
↓ 2 callers
Function
buildDiscordOAuthUrl
(clientId: string, state: string)
web/src/lib/oauth.ts:49
↓ 2 callers
Function
buildFetchModelsHeaders
(channel *model.Channel, key string)
controller/channel.go:318
↓ 2 callers
Function
buildFormDefaults
(defaults: FlatPerfDefaults)
web/src/features/system-settings/maintenance/performance-section.tsx:101
↓ 2 callers
Function
buildFormDefaults
( defaults: FlatPasskeyDefaults )
web/src/features/system-settings/auth/passkey-section.tsx:118
↓ 2 callers
Function
buildFormDefaults
(defaults: FlatGrokDefaults)
web/src/features/system-settings/models/grok-settings-card.tsx:72
↓ 2 callers
Function
buildGitHubOAuthUrl
(clientId: string, state: string)
web/src/lib/oauth.ts:42
↓ 2 callers
Function
buildGroupPerformance
(model: PricingModel)
web/src/features/pricing/lib/mock-stats.ts:311
↓ 2 callers
Function
buildInstance
( config: Record<string, unknown> )
web/src/features/task-plugins/components/request-plugin-instance-editor.tsx:244
↓ 2 callers
Function
buildLegacyParamOverride
(paramOverride map[string]any)
relay/common/override.go:189
↓ 2 callers
Function
buildLinuxDOOAuthUrl
(clientId: string, state: string)
web/src/lib/oauth.ts:82
↓ 2 callers
Function
buildLogEndpoint
buildLogEndpoint constructs the request path for fetching logs
pkg/ionet/container.go:83
↓ 2 callers
Method
buildManagementRequest
(info *relaycommon.RelayInfo, managementPath string)
relay/channel/advancedcustom/adaptor.go:203
↓ 2 callers
Function
buildMaskedTokenResponses
(tokens []*model.Token)
controller/token.go:74
↓ 2 callers
Function
buildMessageDeltaPatchUsage
(claudeResponse *dto.ClaudeResponse, claudeInfo *ClaudeResponseInfo)
relay/channel/claude/relay-claude.go:67
↓ 2 callers
Function
buildModelRow
( name: string, saved?: ModelPricingSnapshot, draft?: ModelPricingSnapshot )
web/src/features/system-settings/models/model-pricing-snapshots.ts:311
↓ 2 callers
Function
buildNodeFilterOptions
( rows: FlowQuotaDataItem[], metric: FlowMetric, role: FlowRole, visibleStages: FlowNodeKind[] | undef
web/src/features/dashboard/lib/flow.ts:884
↓ 2 callers
Function
buildOAuthAuthorizationUrl
( provider: string, state: string, status: SystemStatus )
web/src/lib/oauth.ts:86
↓ 2 callers
Function
buildOIDCOAuthUrl
( authUrl: string, clientId: string, state: string )
web/src/lib/oauth.ts:65
↓ 2 callers
Function
buildOllamaStreamDelta
(chunk *ollamaChatStreamChunk, responseID string, created int64, model string, toolCallIndex *int)
relay/channel/ollama/stream.go:82
↓ 2 callers
Function
buildQueryParams
( timeRange: { start_timestamp: number; end_timestamp: number }, filters?: { time_granularity?: TimeGranul
web/src/features/dashboard/lib/filters.ts:155
↓ 2 callers
Function
buildRequestRuleExpr
(groups: RequestRuleGroup[])
web/src/features/pricing/lib/billing-expr.ts:871
↓ 2 callers
Function
buildRouteURL
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:432
↓ 2 callers
Function
buildSearchParams
( filters: LogFilters, logCategory: LogCategory )
web/src/features/usage-logs/lib/filter.ts:38
↓ 2 callers
Function
buildSettingsJSON
* Build the settings JSON string (for type-specific config like vertex_key_type)
web/src/features/channels/lib/channel-form.ts:737
↓ 2 callers
Method
buildSubmit
(c *gin.Context, info *relaycommon.RelayInfo)
relay/channel/task/jsplugin/adaptor.go:1724
↓ 2 callers
Function
buildSubscriptionResetResult
(plan *SubscriptionPlan, subs []UserSubscription, advanceResetTime bool)
model/subscription.go:1047
↓ 2 callers
Function
buildSubscriptionSummaries
(subs []UserSubscription)
model/subscription.go:930
↓ 2 callers
Function
buildSyntaxError
( error: unknown, jsonString: string )
web/src/features/system-settings/models/utils.ts:92
↓ 2 callers
Function
buildTaskAliasView
(generation *jsplugin.RoutingGeneration)
model/task_model_alias.go:102
↓ 2 callers
Function
buildTestLogOther
(c *gin.Context, info *relaycommon.RelayInfo, priceData hosttypes.PriceData, usage *dto.Usage, tieredResult *b
controller/channel-test.go:606
← previous
next →
3,601–3,700 of 15,409, ranked by callers