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
↓ 2 callers
Function
chatAnnotationsToClaude
(raw json.RawMessage, text string)
relaykit/relayconvert/internal/oai_chat/citations.go:11
↓ 2 callers
Function
chatAnnotationsToResponses
(raw []byte)
relaykit/relayconvert/internal/oai_chat/to_oai_responses_resp.go:121
↓ 2 callers
Function
chatArgumentsRawMessage
(arguments string)
relaykit/relayconvert/internal/oai_chat/to_oai_responses_resp.go:280
↓ 2 callers
Function
chatLinkRequiresApiKey
(url: string)
web/src/features/chat/lib/chat-links.ts:87
↓ 2 callers
Function
chatText
chatText joins the delta text of a Chat Completions stream.
relay/requestplugin/requestplugin_test.go:1127
↓ 2 callers
Function
chatToGeminiStreamState
(info *relaycommon.RelayInfo, streamResponse *dto.ChatCompletionsStreamResponse)
relay/channel/openai/helper.go:80
↓ 2 callers
Function
checkAccessTokenIdentity
checkAccessTokenIdentity locks users before user_access_tokens, matching CreateUserAccessToken, and reports every mismatch as an inactive session.
model/user_access_token.go:267
↓ 2 callers
Function
checkAndSendQuotaNotify
(relayInfo *relaycommon.RelayInfo, quota int, preConsumedQuota int)
service/quota.go:488
↓ 2 callers
Function
checkClusterNameAvailability
(name: string)
web/src/features/models/api.ts:637
↓ 2 callers
Function
checkConditions
(doc *ojson.Doc, contextJSON string, conditions []ConditionOperation, logic string)
relay/common/override.go:666
↓ 2 callers
Function
checkDangerousContent
(content string, index int, messages itemMessages)
setting/console_setting/validation.go:69
↓ 2 callers
Function
checkGolden
(t *testing.T, name string, got []byte)
relaykit/relayconvert/golden_test.go:62
↓ 2 callers
Function
checkKling4Body
(body)
plugins/tasks/kling/plugin.js:307
↓ 2 callers
Function
checkMySQLChineseSupport
checkMySQLChineseSupport ensures the MySQL connection and current schema default charset/collation can store Chinese characters. It allows common Chin
model/main.go:722
↓ 2 callers
Function
checkPluginChannelKeys
checkPluginChannelKeys runs the checkKey of a task plugin channel's plugin on the key lines an administrator typed in: those of key that storedKey doe
controller/channel.go:1652
↓ 2 callers
Function
checkRedisRateLimit
检查Redis中的请求限制
middleware/model-rate-limit.go:29
↓ 2 callers
Function
checkResponsesWSModelAccess
checkResponsesWSModelAccess applies the token model limit with the same name matching as the HTTP distributor. Unlike HTTP, it also runs for requests
relay/responses_websocket.go:1067
↓ 2 callers
Function
checkSampleString
checkSampleString refuses a string that is or looks like media or a link.
pluginkit/sample.go:173
↓ 2 callers
Method
checkValue
checkValue validates a value a field declares itself: its default or an example.
pluginkit/config_schema.go:718
↓ 2 callers
Function
checkVerificationMethods
( scope: SecurityProofScope, signal?: AbortSignal )
web/src/features/auth/secure-verification/api.ts:52
↓ 2 callers
Function
citedText
(t *testing.T, content string, annotations []byte)
relaykit/relayconvert/internal/gemini_chat/to_oai_chat_resp_test.go:167
↓ 2 callers
Method
claimAndCall
claimAndCall takes the current step for this submit, so a repeated or concurrent submit of it cannot call the plugin again, and calls login.
service/provider_plugin_login.go:455
↓ 2 callers
Method
claimed
claimed reports a submit that is still running on the current step.
service/provider_plugin_login.go:478
↓ 2 callers
Function
clampGeminiBudget
(budget int, capabilities geminiCapabilities)
relaykit/relayconvert/reasoning/gemini.go:542
↓ 2 callers
Function
classifyDashboardCredential
(c *gin.Context)
middleware/auth.go:205
↓ 2 callers
Function
classifyPollHTTP
(statusCode int)
service/task_polling.go:814
↓ 2 callers
Function
classifyValue
(run: FadeRun, value: string)
web/src/components/ai-elements/response-fade.ts:189
↓ 2 callers
Function
claudeBillingUsageFromSemanticUsage
(usage *dto.Usage)
relaykit/relayconvert/internal/claude_messages/to_oai_chat_resp.go:400
↓ 2 callers
Function
claudeCitationsToChat
(raw json.RawMessage, text string, textOffset int)
relaykit/relayconvert/internal/claude_messages/citations.go:12
↓ 2 callers
Function
claudeImageSourceURL
claudeImageSourceURL is the Chat image_url for a Claude image source: a data URL for base64 data or the URL of a url source. Other sources, such as Fi
relaykit/relayconvert/internal/claude_messages/to_oai_chat_req.go:327
↓ 2 callers
Function
claudeReasoningDiagnostic
(code string, message string)
relaykit/relayconvert/reasoning/claude.go:380
↓ 2 callers
Function
claudeRequestReasoningIntent
(ctx context.Context, claudeRequest *dto.ClaudeRequest, info convmeta.Meta)
relaykit/relayconvert/internal/claude_messages/to_oai_responses_req.go:87
↓ 2 callers
Function
claudeResultTypeFromHostedKind
(kind Kind)
relaykit/relayconvert/internal/toolconv/response_artifacts.go:810
↓ 2 callers
Function
claudeSourceURL
(source *dto.ClaudeMessageSource)
relaykit/relayconvert/internal/claude_messages/to_oai_responses_req.go:321
↓ 2 callers
Function
claudeToGeminiStreamState
(info *relaycommon.RelayInfo)
relay/channel/claude/relay-claude.go:187
↓ 2 callers
Function
claudeWebSearchSupportsResponseInclusion
(toolType string)
relaykit/relayconvert/internal/toolconv/decode.go:855
↓ 2 callers
Function
clearChannelReadOnlyFields
(channel *PatchChannel, requestData map[string]any)
controller/channel_authz.go:94
↓ 2 callers
Method
clearExpiredItems
clearExpiredItems periodically removes expired entries from the LRU tail.
common/rate-limit.go:100
↓ 2 callers
Function
clearPendingTimer
()
web/src/features/channels/lib/channel-field-update.ts:39
↓ 2 callers
Function
clickHouseCreateTableHasTTL
(createTableSQL string)
model/main.go:498
↓ 2 callers
Function
clickHouseLogCreateTableSQL
(ttlDays int)
model/main.go:445
↓ 2 callers
Function
clickHouseLogTTLClause
(ttlDays int)
model/main.go:437
↓ 2 callers
Function
clientVisibleClaudeStreamUsage
(state *convmeta.ClaudeConvertInfo, incoming *dto.Usage)
relaykit/relayconvert/internal/oai_chat/to_claude_messages_resp.go:93
↓ 2 callers
Function
cloneMeta
(meta Meta)
pluginkit/meta.go:832
↓ 2 callers
Function
cloneRelayRoutes
(routes []dto.AdvancedCustomRoute)
pluginkit/meta.go:358
↓ 2 callers
Function
cloneResponseConverterSpec
(spec ResponseConverterSpec)
relaykit/relayconvert/response_registry.go:806
↓ 2 callers
Function
cloneStringSet
(source map[string]struct{})
pkg/jsplugin/routing.go:406
↓ 2 callers
Function
cloneTextConverterSpec
(spec TextConverterSpec)
relaykit/relayconvert/text_converter_registry.go:366
↓ 2 callers
Function
cloneTextConverterStrings
(values []string)
relaykit/relayconvert/text_converter_registry.go:373
↓ 2 callers
Function
closeActiveSource
(target: StreamEventSource)
web/src/features/playground/hooks/use-stream-request.ts:65
↓ 2 callers
Function
collectContent
(texts, content, inToolResult)
plugins/tasks/request-filter/plugin.js:148
↓ 2 callers
Function
collectPendingApplyUpstreamModelChanges
(settings dto.ChannelOtherSettings)
controller/channel_upstream_update.go:1109
↓ 2 callers
Function
collectTexts
(body)
plugins/tasks/request-redact/plugin.js:270
↓ 2 callers
Function
collectUserIDs
(users []*User)
model/user_pagination_test.go:30
↓ 2 callers
Function
commitRun
(state: FadeState)
web/src/components/ai-elements/response-fade.ts:160
↓ 2 callers
Function
commonFields
(source, body)
plugins/tasks/xai/plugin.js:182
↓ 2 callers
Function
compactFlowSelectionLabel
(count: number)
web/src/features/dashboard/lib/flow-selection.ts:56
↓ 2 callers
Function
compileConfigPlugin
(schema string)
pluginkit/meta_test.go:699
↓ 2 callers
Method
complete
(task *model.Task, quota int)
controller/task_plugin_debug.go:215
↓ 2 callers
Function
completeAssistantMessage
(message: Message)
web/src/features/playground/lib/message/message-streaming-utils.ts:151
↓ 2 callers
Function
completeReasoningTiming
( message: Message, completedAt: number = Date.now() )
web/src/features/playground/lib/message/message-timing-utils.ts:53
↓ 2 callers
Function
completeVerifiedLoginResponse
(c *gin.Context, bundle *service.AuthBundle, method string, migration *service.LegacyGitHubMigration)
controller/login_verification.go:149
↓ 2 callers
Function
computeBuildRevision
()
web/src/lib/build-metadata.ts:76
↓ 2 callers
Function
configAddressPath
configAddressPath splits an upstream_path of the form {config.<name>}<rest>.
pluginkit/meta.go:287
↓ 2 callers
Function
configObject
(config json.RawMessage)
pluginkit/config_schema.go:307
↓ 2 callers
Function
configToMap
辅助函数:将配置对象转换为map
setting/config/config.go:93
↓ 2 callers
Function
connectionOtherSettings
connectionOtherSettings is the channel's other settings as its requests use them: a task plugin channel runs on the relay routes of the plugin pinned
relay/responses_websocket.go:725
↓ 2 callers
Function
consumeOAuthLoginRedirect
(state: string)
web/src/features/auth/lib/oauth-callback-mode.ts:34
↓ 2 callers
Function
containsPricingMarker
(node ast.Node)
pkg/billingexpr/fixed.go:22
↓ 2 callers
Function
contentStart
contentStart is the offset of a part's content in its segment: past the rest of the delimiter line, the headers and the blank line after them.
relay/requestplugin/form.go:276
↓ 2 callers
Function
convert
(ctx)
plugins/tasks/alibaba/plugin.js:853
↓ 2 callers
Function
convertCrossProtocolResponsesRequest
convertCrossProtocolResponsesRequest converts a Claude or Gemini client request for an OpenAI Responses upstream.
relay/channel/advancedcustom/adaptor.go:604
↓ 2 callers
Function
convertJSON
(value any, target any)
pluginkit/task.go:545
↓ 2 callers
Method
convertNext
convertNext converts the next upstream event, or the end of the stream, and queues the output the plugin returns.
relay/channel/providerplugin/stream.go:232
↓ 2 callers
Method
convertOpenAICompatibleRequest
(c *gin.Context, info *relaycommon.RelayInfo, request *dto.GeneralOpenAIRequest)
relay/channel/advancedcustom/adaptor.go:616
↓ 2 callers
Function
convertResponsesResponseForClient
(c *gin.Context, info *relaycommon.RelayInfo, response *dto.OpenAIResponsesResponse)
relay/channel/openai/chat_via_responses.go:150
↓ 2 callers
Function
convertRowsToJson
(updatedRows: MappingRow[])
web/src/features/channels/components/model-mapping-editor.tsx:267
↓ 2 callers
Function
convertedBody
convertedBody reads the body member of a convert result: a string is the body text, any other value is sent as the JSON text JSON.stringify writes.
pluginkit/provider.go:1400
↓ 2 callers
Function
copyChannel
( id: number, params: CopyChannelParams = {} )
web/src/features/channels/api.ts:384
↓ 2 callers
Function
copyFile
(target io.Writer, header *multipart.FileHeader)
relay/channel/providerplugin/adaptor.go:395
↓ 2 callers
Function
copyHeaderInContext
(context map[string]any, fromHeader, toHeader string, keepOrigin bool)
relay/common/override.go:1402
↓ 2 callers
Function
copyRequest
(req *dto.ClaudeRequest, version string)
relay/channel/vertex/dto.go:26
↓ 2 callers
Function
copyToClipboard
()
web/src/components/ai-elements/code-block.tsx:655
↓ 2 callers
Function
countClaudeContentBlockTools
countClaudeContentBlockTools counts the billable tool calls of one content block. On a channel whose upstream prices search itself (WebSearchBillingKe
relay/channel/claude/relay-claude.go:243
↓ 2 callers
Function
countPasswordCharacters
(password: string)
web/src/lib/password-policy.ts:25
↓ 2 callers
Function
countPluginKinds
( partsList: Required<TaskPluginParts>[] )
web/src/features/task-plugins/lib/plugin-kinds.ts:40
↓ 2 callers
Function
countSystemTasks
(t *testing.T, taskType string)
service/system_task_test.go:58
↓ 2 callers
Function
createChannelColumn
(config: { accessorKey?: string headerLabel: string })
web/src/features/usage-logs/components/columns/column-helpers.tsx:168
↓ 2 callers
Function
createChannelFieldUpdateScheduler
( onUpdate: (value: number) => void, timers: ChannelFieldUpdateTimers = browserTimers )
web/src/features/channels/lib/channel-field-update.ts:32
↓ 2 callers
Function
createChannelTestCachePatch
( responseTime?: number, completedAt = Date.now() )
web/src/features/channels/components/dialogs/channel-test-dialog.tsx:142
↓ 2 callers
Function
createDefaultOperation
()
web/src/features/channels/components/dialogs/param-override-editor-dialog.tsx:537
↓ 2 callers
Function
createDefaultVisualConfig
()
web/src/features/pricing/lib/tier-expr.ts:93
↓ 2 callers
Function
createDurationColumn
(config: { submitTimeKey: string finishTimeKey: string unit?: 'seconds' | 'milliseconds' headerLabel:
web/src/features/usage-logs/components/columns/column-helpers.tsx:107
↓ 2 callers
Function
createEmailSchema
(t: (key: string) => string)
web/src/features/system-settings/integrations/email-settings-schema.ts:21
↓ 2 callers
Function
createEmptyVisualCondition
()
web/src/features/pricing/lib/billing-expression/visual.ts:83
↓ 2 callers
Function
createFadeState
()
web/src/components/ai-elements/response-fade.ts:132
↓ 2 callers
Function
createGroupPricingId
()
web/src/features/system-settings/models/group-ratio-visual-editor.tsx:126
↓ 2 callers
Function
createJsonStringField
( t: Translate, options?: Parameters<typeof validateJsonString>[1] )
web/src/features/system-settings/models/ratio-settings-card.tsx:103
↓ 2 callers
Function
createKeySourceRow
(source?: Partial<KeySource>)
web/src/features/system-settings/general/channel-affinity/rule-editor-dialog.tsx:118
↓ 2 callers
Function
createLegacyPendingSystemTask
(t *testing.T, taskType string)
model/system_task_test.go:182
← previous
next →
3,801–3,900 of 15,592, ranked by callers