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
↓ 1 callers
Function
UsesSubmitEventDelta
UsesSubmitEventDelta reports whether SSE submissions go through parseSubmitEventDelta: the plugin declares submit-sse-delta@1, or exports parseSubmitE
pkg/jsplugin/registry.go:398
↓ 1 callers
Function
ValidAuditCategory
(category string)
model/audit_log.go:265
↓ 1 callers
Function
ValidTokenFingerprint
(value string)
model/audit_log.go:269
↓ 1 callers
Method
ValidateBackupCodeAndUpdateUsage
ValidateBackupCodeAndUpdateUsage 验证备用码并更新使用记录
model/twofa.go:306
↓ 1 callers
Function
ValidateBasicTaskRequest
(c *gin.Context, info *RelayInfo, action string)
relay/common/relay_utils.go:283
↓ 1 callers
Function
ValidateEpaySignOption
ValidateEpaySignOption checks a change to the Epay signing settings against the saved ones. While RSA is active, both keys must parse; under MD5 only
setting/operation_setting/payment_setting.go:63
↓ 1 callers
Function
ValidateLogMaxRangeDays
(value string)
setting/operation_setting/log_setting.go:39
↓ 1 callers
Function
ValidateQuotaOption
ValidateQuotaOption validates reservation settings before they are persisted.
setting/operation_setting/quota_setting.go:34
↓ 1 callers
Function
ValidateServiceURL
ValidateServiceURL checks a utils.fetch URL of a hook that runs without a channel: its host must be one of hosts, each `host` or `host:port`.
pkg/jsplugin/request.go:31
↓ 1 callers
Function
ValidateSystemTaskRetentionDays
(value string)
setting/operation_setting/system_task_setting.go:31
↓ 1 callers
Method
ValidateTOTPAndUpdateUsage
ValidateTOTPAndUpdateUsage 验证TOTP并更新使用记录
model/twofa.go:277
↓ 1 callers
Method
ValidateURL
ValidateURL 验证URL是否安全
common/ssrf_protection.go:323
↓ 1 callers
Function
ValidateUserToken
(key string)
model/token.go:224
↓ 1 callers
Method
Value
()
model/audit_other.go:65
↓ 1 callers
Function
VerifyConfiguredWaffoPancakeWebhook
VerifyConfiguredWaffoPancakeWebhook verifies the signature header. The SDK picks the matching test / prod public key from the payload's `mode` field.
service/waffo_pancake.go:167
↓ 1 callers
Function
VerifyLogin
(c *gin.Context)
controller/login_verification.go:17
↓ 1 callers
Function
VerifyLoginCode
(token, code, ip, userAgent string)
service/login_verification.go:130
↓ 1 callers
Function
Version
()
middleware/cors.go:18
↓ 1 callers
Function
WaffoPayMethods2JsonString
WaffoPayMethods2JsonString 将默认 WaffoPayMethods 序列化为 JSON 字符串(供 InitOptionMap 使用)
setting/payment_waffo.go:61
↓ 1 callers
Method
WebAuthnName
()
service/passkey/user.go:29
↓ 1 callers
Function
WithPluginCredentialRefreshLock
WithPluginCredentialRefreshLock runs refresh while no other node or goroutine refreshes a credential of the channel, so a refresh token goes out once
model/channel.go:749
↓ 1 callers
Method
WithRuntime
WithRuntime returns a shallow immutable copy carrying the prepared inner handler. Callers use it before publication; published generations must not be
pkg/jsplugin/routing.go:763
↓ 1 callers
Function
WrapAsViolationFeeGrokCSAM
(err *types.NewAPIError)
service/violation_fee.go:41
↓ 1 callers
Method
Write
(data []byte)
middleware/distributor.go:355
↓ 1 callers
Method
Write
(data []byte)
relay/channel/aws/relay_aws_test.go:60
↓ 1 callers
Method
WriteContentType
(w http.ResponseWriter)
common/custom-event.go:80
↓ 1 callers
Function
WriteDiskCacheFile
WriteDiskCacheFile 写入数据到磁盘缓存文件 返回文件路径
common/disk_cache.go:61
↓ 1 callers
Function
WriteDiskCacheFileString
WriteDiskCacheFileString 写入字符串到磁盘缓存文件
common/disk_cache.go:83
↓ 1 callers
Function
WssHelper
(c *gin.Context, info *relaycommon.RelayInfo)
relay/websocket.go:18
↓ 1 callers
Function
WssObject
(c *gin.Context, ws *websocket.Conn, object any)
relay/helper/common.go:308
↓ 1 callers
Function
WssString
(c *gin.Context, ws *websocket.Conn, str string)
relay/helper/common.go:299
↓ 1 callers
Function
abs
(value int)
relay/requestplugin/pdf.go:1399
↓ 1 callers
Function
absoluteRequestURL
absoluteRequestURL reports whether text is an address a hook may send a request to: an absolute http(s) URL with a host, without credentials or fragme
pkg/jsplugin/provider.go:832
↓ 1 callers
Function
acKey
(dict []string)
service/str.go:75
↓ 1 callers
Function
accessTokenEdit
(description string)
service/access_token_scope.go:48
↓ 1 callers
Function
accessTokenView
(description string)
service/access_token_scope.go:44
↓ 1 callers
Method
acquireCallSlot
(ctx context.Context, admissionTimeout time.Duration)
pkg/jsplugin/engine.go:594
↓ 1 callers
Function
acquireSystemTaskLock
(taskType string, taskID string, lockedBy string, now int64, lockUntil int64)
model/system_task.go:408
↓ 1 callers
Method
activate
()
router/plugin-router.go:520
↓ 1 callers
Function
add
(root *node, tokens []string, value *node)
pkg/requestpatch/patch.go:747
↓ 1 callers
Method
add
(call *dto.FunctionCall)
relaykit/relayconvert/internal/gemini_chat/to_oai_chat_req.go:310
↓ 1 callers
Function
addCondition
(group: boolean)
web/src/features/system-settings/models/visual-condition-tree.tsx:146
↓ 1 callers
Method
addCounters
(c counters)
pkg/perf_metrics/types.go:156
↓ 1 callers
Function
addExternalLinkAttributes
(html: string, baseUrl?: string)
web/src/components/ui/markdown.tsx:723
↓ 1 callers
Function
addGeminiInputTokenDetail
(details *InputTokenDetails, detail GeminiPromptTokensDetails)
relaykit/dto/billing_usage.go:375
↓ 1 callers
Function
addLink
( map: Map<string, DashboardFlowLink>, source: FlowPathNode, target: FlowPathNode, metrics: FlowMetric
web/src/features/dashboard/lib/flow.ts:442
↓ 1 callers
Function
addNode
( map: Map<string, DashboardFlowNode>, pathNode: FlowPathNode, metrics: FlowMetrics, metric: FlowMetri
web/src/features/dashboard/lib/flow.ts:416
↓ 1 callers
Function
addParticipant
(name: string)
web/src/components/ui/markdown.tsx:479
↓ 1 callers
Function
addRequiredIssue
( ctx: z.RefinementCtx, path: string, message: string )
web/src/features/channels/lib/channel-form.ts:193
↓ 1 callers
Function
addRoute
(incomingPath: string | null)
web/src/features/channels/components/dialogs/advanced-custom-editor-dialog.tsx:404
↓ 1 callers
Function
addRouteForIncomingPath
(incomingPath: string)
web/src/features/channels/components/dialogs/advanced-custom-editor-dialog.tsx:424
↓ 1 callers
Function
addSensitiveWordInstance
addSensitiveWordInstance appends the instance to the saved instance list. The old check matched words in any letter case.
model/sensitive_word_migration.go:100
↓ 1 callers
Function
addTimeToDate
( months: number, days: number, hours: number, baseDate: Date = new Date() )
web/src/lib/time.ts:187
↓ 1 callers
Function
adjustForMinimum
( value: number, digits: number, minimumNonZero: number )
web/src/lib/currency.ts:285
↓ 1 callers
Function
adjustPriceAmount
( amount: number, mode: PriceAdjustment, rate: number )
web/src/features/system-settings/models/upstream-price-adjustment.ts:131
↓ 1 callers
Function
adjustUserQuota
( payload: ManageUserQuotaPayload )
web/src/features/users/api.ts:168
↓ 1 callers
Function
adminClearUserBinding
( userId: number, bindingType: string, proofToken: string )
web/src/features/users/api.ts:243
↓ 1 callers
Function
adminResetPlanSubscriptionsTx
(tx *gorm.DB, plan *SubscriptionPlan, now int64, advanceResetTime bool)
model/subscription.go:1090
↓ 1 callers
Function
adminResetUserSubscriptionsByPlanTx
(tx *gorm.DB, userId int, plan *SubscriptionPlan, now int64, advanceResetTime bool)
model/subscription.go:1068
↓ 1 callers
Function
adminUnbindCustomOAuth
( userId: number, providerId: number, proofToken: string )
web/src/features/users/api.ts:259
↓ 1 callers
Method
admitPlugins
( candidate, current *jsplugin.RoutingGeneration, blocked map[*jsplugin.LoadedPlugin]string, )
router/plugin-router.go:189
↓ 1 callers
Function
advancedCustomConfigUsesRelativeUpstreamPath
( config: AdvancedCustomConfig | null )
web/src/features/channels/lib/advanced-custom.ts:751
↓ 1 callers
Function
advancedCustomEndpointTypeFromIncomingPath
(incomingPath string)
relaykit/dto/channel_settings.go:357
↓ 1 callers
Function
affinityFingerprint
(s string)
service/channel_affinity.go:415
↓ 1 callers
Function
aggregateChannelsByTag
( channels: Channel[] )
web/src/features/channels/lib/channel-utils.ts:635
↓ 1 callers
Function
aggregateUptime
(points: UptimeDayPoint[])
web/src/features/pricing/lib/mock-stats.ts:466
↓ 1 callers
Function
aliAnthropicMessagesModelPatterns
()
relay/channel/ali/adaptor.go:41
↓ 1 callers
Function
alphaColor
( color: string, alpha: number )
web/src/features/dashboard/lib/flow.ts:299
↓ 1 callers
Function
animateDragTransform
( element: HTMLElement, transform: string, transition: ValueAnimationTransition<string> )
web/src/features/channels/hooks/use-channel-priority-drag.ts:52
↓ 1 callers
Function
annotationIndex
(value any)
relaykit/relayconvert/internal/oai_chat/citations.go:69
↓ 1 callers
Method
annotationRawDelta
(raw []byte)
relaykit/relayconvert/internal/oai_responses/to_oai_chat_stream_resp.go:224
↓ 1 callers
Method
answerFields
answerFields reads the answer texts of a non-stream body in format. It returns false when the host cannot read the answer.
relay/requestplugin/reply.go:593
↓ 1 callers
Function
apiBase
(baseUrl, project, location)
plugins/tasks/vertex-ai/plugin.js:330
↓ 1 callers
Function
apiVersion2domain
(apiVersion string)
relay/channel/xunfei/relay-xunfei.go:250
↓ 1 callers
Method
appendAnnotationDelta
(raw []byte)
relaykit/relayconvert/internal/oai_chat/to_oai_responses_stream_resp.go:452
↓ 1 callers
Function
appendBillingInfo
(relayInfo *relaycommon.RelayInfo, other *model.LogOther)
service/log_info_generate.go:200
↓ 1 callers
Function
appendChannelAffinityTemplateAdminInfo
(c *gin.Context, meta channelAffinityMeta)
service/channel_affinity.go:497
↓ 1 callers
Function
appendClaudeToolResult
(messages []dto.ClaudeMessage, toolResult dto.ClaudeMediaMessage)
relaykit/relayconvert/internal/oai_responses/to_claude_messages_req.go:299
↓ 1 callers
Function
appendClaudeToolUse
(messages []dto.ClaudeMessage, toolUse dto.ClaudeMediaMessage)
relaykit/relayconvert/internal/oai_responses/to_claude_messages_req.go:284
↓ 1 callers
Function
appendCliTemplates
()
web/src/features/system-settings/general/channel-affinity/index.tsx:121
↓ 1 callers
Method
appendContent
(content dto.GeminiChatContent, rendered string)
relaykit/relayconvert/internal/gemini_chat/grounding.go:141
↓ 1 callers
Method
appendDelta
(block *responsesClaudeStreamBlock, delta string, estimatedInputTokens int)
relaykit/relayconvert/internal/oai_responses/to_claude_messages_stream_resp.go:311
↓ 1 callers
Function
appendFinalRequestFormat
(relayInfo *relaycommon.RelayInfo, other *model.LogOther)
service/log_info_generate.go:279
↓ 1 callers
Function
appendGeminiContentPart
(req *dto.GeminiChatRequest, role string, part dto.GeminiPart)
relaykit/relayconvert/internal/oai_responses/to_gemini_chat_req.go:397
↓ 1 callers
Method
appendGroundingChunks
(metadata *dto.GeminiGroundingMetadata)
relaykit/relayconvert/internal/gemini_chat/grounding.go:181
↓ 1 callers
Function
appendHostedHistoryToClaude
(target *dto.ClaudeRequest, set Set)
relaykit/relayconvert/internal/toolconv/encode.go:1117
↓ 1 callers
Function
appendHostedHistoryToOpenAIResponses
(target *dto.OpenAIResponsesRequest, set Set)
relaykit/relayconvert/internal/toolconv/encode.go:874
↓ 1 callers
Function
appendMarkdownExampleFence
( output: string[], block: MarkdownExampleFence )
web/src/components/ai-elements/response-content.ts:68
↓ 1 callers
Method
appendOutput
(text string)
relay/plugin_protocol.go:854
↓ 1 callers
Function
appendParamOverrideInfo
(relayInfo *relaycommon.RelayInfo, other *model.LogOther)
service/log_info_generate.go:153
↓ 1 callers
Method
appendPartialFunctionCall
(candidateIndex int64, call *dto.FunctionCall)
relaykit/relayconvert/internal/gemini_chat/to_oai_chat_resp.go:499
↓ 1 callers
Function
appendPricingEndpoint
(endpoints []string, endpoint string)
model/pricing.go:210
↓ 1 callers
Method
appendReasoningDelta
(delta string)
relaykit/relayconvert/internal/oai_chat/to_oai_responses_stream_resp.go:477
↓ 1 callers
Function
appendRequestConversionChain
(relayInfo *relaycommon.RelayInfo, other *model.LogOther)
service/log_info_generate.go:251
↓ 1 callers
Function
appendStreamStatus
(relayInfo *relaycommon.RelayInfo, other *model.LogOther)
service/log_info_generate.go:170
↓ 1 callers
Method
appendTextDelta
(delta string)
relaykit/relayconvert/internal/oai_chat/to_oai_responses_stream_resp.go:412
↓ 1 callers
Method
appendToolCallDelta
(choiceIndex int, toolCall dto.ToolCallResponse)
relaykit/relayconvert/internal/oai_chat/to_gemini_chat_resp.go:401
↓ 1 callers
Method
appendToolCallDelta
(toolCall dto.ToolCallResponse)
relaykit/relayconvert/internal/oai_chat/to_oai_responses_stream_resp.go:518
↓ 1 callers
Function
appendToolCallToLastAssistant
(messages []dto.Message, toolCall dto.ToolCallRequest)
relaykit/relayconvert/internal/oai_responses/to_oai_chat_req.go:367
↓ 1 callers
Function
appendUserMessagePair
( messages: Message[], content: string )
web/src/features/playground/lib/message/conversation-message-utils.ts:57
← previous
next →
5,701–5,800 of 15,409, ranked by callers