Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/YuJunZhiXue/qwen2API
/ functions
Functions
1,037 in github.com/YuJunZhiXue/qwen2API
⨍
Functions
1,037
◇
Types & classes
114
↓ 2 callers
Function
xmlEscape
(text string)
backend/adapter/standard_request.go:1961
↓ 1 callers
Method
Add
(acc Account)
backend/core/account_pool/pool_core.go:58
↓ 1 callers
Method
Add
(attachment Attachment)
backend/services/context_attachment_manager.go:13
↓ 1 callers
Function
BuildChatPayload
BuildChatPayload builds the Qwen /api/v2/chat/completions request body.
backend/upstream/payload_builder.go:18
↓ 1 callers
Function
BuildToolInstructions
(tools []map[string]any)
backend/adapter/standard_request.go:1185
↓ 1 callers
Function
DedupeToolCalls
DedupeToolCalls removes repeated calls with the same name and arguments.
backend/toolcall/parser.go:46
↓ 1 callers
Function
DeriveFamily
(modelID string, item map[string]any)
backend/services/model_catalog.go:205
↓ 1 callers
Method
Ensure
()
backend/main.go:8687
↓ 1 callers
Method
Ensure
()
backend/core/database.go:23
↓ 1 callers
Function
EnvIntAlias
(key, alias string, fallback int)
backend/core/config.go:92
↓ 1 callers
Method
Expired
(now time.Time)
backend/services/context_cleanup.go:6
↓ 1 callers
Function
ExtractModelCapabilities
(item map[string]any)
backend/services/model_catalog.go:151
↓ 1 callers
Function
ExtractThinkingEnabled
(body map[string]any)
backend/adapter/standard_request.go:113
↓ 1 callers
Function
FilterSensitiveFields
(fields map[string]any)
backend/core/log_filter.go:5
↓ 1 callers
Function
ForEachJSONFragment
ForEachJSONFragment visits standalone JSON objects or arrays embedded in text.
backend/toolcall/formats_json.go:49
↓ 1 callers
Function
FormatUpstreamError
(obj map[string]any)
backend/upstream/qwen_executor.go:47
↓ 1 callers
Function
FormatUpstreamError
(obj map[string]any)
backend/services/qwen_client.go:76
↓ 1 callers
Method
GetVisionTaskStatus
(ctx context.Context, token, taskID string, timeout time.Duration)
backend/main.go:8211
↓ 1 callers
Function
HasTextualToolMarker
(text string)
backend/services/tool_parser.go:47
↓ 1 callers
Function
HasTextualToolMarker
(text string)
backend/runtime/execution.go:158
↓ 1 callers
Method
ListChats
(ctx context.Context, token string, limit int)
backend/main.go:8221
↓ 1 callers
Method
ListModelsFromPool
(ctx context.Context)
backend/main.go:8245
↓ 1 callers
Method
Load
()
backend/main.go:313
↓ 1 callers
Method
LoadAny
()
backend/main.go:8716
↓ 1 callers
Method
LoadInto
(v any)
backend/core/database.go:34
↓ 1 callers
Function
LoadSettings
()
backend/main.go:1820
↓ 1 callers
Method
MarkInvalid
(acc *Account, status, message string)
backend/main.go:621
↓ 1 callers
Method
MarkSuccess
(acc *Account)
backend/main.go:602
↓ 1 callers
Function
MessagesToPrompt
(body map[string]any)
backend/adapter/standard_request.go:133
↓ 1 callers
Function
NewAccountPool
(store *JSONStore, settings Settings, logger *slog.Logger)
backend/main.go:304
↓ 1 callers
Function
NewApp
(settings Settings, logger *slog.Logger)
backend/main.go:140
↓ 1 callers
Function
NewChatIDPool
(client *QwenClient, accounts *AccountPool, settings Settings, logger *slog.Logger)
backend/main.go:1480
↓ 1 callers
Function
NewKeepAliveService
(logger *slog.Logger)
backend/main.go:2181
↓ 1 callers
Function
NewMailSession
()
backend/main.go:928
↓ 1 callers
Function
NewQwenClient
(pool *AccountPool, settings Settings, logger *slog.Logger)
backend/main.go:7877
↓ 1 callers
Function
NewTraceID
()
backend/core/request_trace.go:28
↓ 1 callers
Function
NormalizeAttachmentName
(name string)
backend/services/attachment_preprocessor.go:17
↓ 1 callers
Function
NormalizeChatType
NormalizeChatType maps API-facing aliases onto Qwen upstream chat types.
backend/upstream/payload_builder.go:10
↓ 1 callers
Function
NormalizeTools
(value any)
backend/adapter/standard_request.go:1165
↓ 1 callers
Function
NormalizeWarmChatType
(chatType string)
backend/services/chat_id_pool.go:27
↓ 1 callers
Method
Parse
(tools []map[string]any)
backend/toolcall/stream_state.go:21
↓ 1 callers
Function
ParseModelMode
(modelID, defaultModel string)
backend/services/model_modes.go:43
↓ 1 callers
Function
ParseQwenEvent
ParseQwenEvent normalizes the different text fields Qwen uses across models.
backend/upstream/sse_consumer.go:72
↓ 1 callers
Function
ParseToolDirectiveOnce
(state RuntimeAttemptState, tools []map[string]any)
backend/runtime/execution.go:111
↓ 1 callers
Method
PollVerifyLink
(ctx context.Context, email string, timeout time.Duration)
backend/main.go:1004
↓ 1 callers
Method
PostChatCompletionOnce
(ctx context.Context, token, chatID string, payload map[string]any, timeout time.Duration)
backend/main.go:8175
↓ 1 callers
Function
QwenRequestID
()
backend/core/httpx_engine.go:29
↓ 1 callers
Function
QwenRequestID
()
backend/services/qwen_client.go:44
↓ 1 callers
Function
RedactToken
(token string)
backend/core/request_logging.go:45
↓ 1 callers
Function
ResolveModel
(name string, aliases map[string]string)
backend/services/model_modes.go:23
↓ 1 callers
Method
SetGlobalMaxInflight
(value int)
backend/main.go:511
↓ 1 callers
Method
SetMaxInflight
(value int)
backend/main.go:497
↓ 1 callers
Method
SetReadySetThreshold
(value int)
backend/main.go:504
↓ 1 callers
Method
Start
(now time.Time)
backend/runtime/stream_metrics.go:14
↓ 1 callers
Method
StartBackground
(ctx context.Context)
backend/main.go:175
↓ 1 callers
Method
Take
(ctx context.Context, email, model, chatType string)
backend/main.go:1579
↓ 1 callers
Function
ToQwenToolName
(name string)
backend/services/tool_name_obfuscation.go:36
↓ 1 callers
Function
TraceID
(ctx context.Context)
backend/core/request_trace.go:18
↓ 1 callers
Method
UpdateSettings
(settings Settings)
backend/main.go:1539
↓ 1 callers
Method
VerifyToken
(ctx context.Context, token string)
backend/main.go:8278
↓ 1 callers
Method
accountErrorCooldown
(lower string)
backend/main.go:4407
↓ 1 callers
Function
accountFromRecord
(value: unknown)
frontend/src/pages/AccountsPage.tsx:216
↓ 1 callers
Method
acquireCompletionChat
(ctx context.Context, req StandardRequest, preferredEmail string)
backend/main.go:2566
↓ 1 callers
Method
activateQwenAccount
(ctx context.Context, acc Account)
backend/main.go:1134
↓ 1 callers
Method
addUsedTokens
(token string, delta int)
backend/main.go:4944
↓ 1 callers
Function
alreadySelected
(selected []map[string]any, name string)
backend/adapter/standard_request.go:1625
↓ 1 callers
Function
anthropicPrompt
(body map[string]any)
backend/main.go:5459
↓ 1 callers
Function
appendAssistantTypewriter
(message: ChatMessage)
frontend/src/pages/TestPage.tsx:275
↓ 1 callers
Function
applyTopicIsolation
(messages []any)
backend/adapter/standard_request.go:243
↓ 1 callers
Function
argValuePresent
(value any)
backend/main.go:3635
↓ 1 callers
Method
available
(settings Settings)
backend/main.go:697
↓ 1 callers
Function
boolValue
(v any)
backend/main.go:8966
↓ 1 callers
Function
boolValue
(v any)
backend/adapter/standard_request.go:2005
↓ 1 callers
Method
buildAnthropicPayload
(ctx context.Context, id, model, prompt string, req StandardRequest, result CompletionResult, stage string)
backend/main.go:7144
↓ 1 callers
Function
buildBackend
(goExe, backendDir, canonicalExe string)
start-all.go:260
↓ 1 callers
Function
buildCapabilityMap
(tools []map[string]any)
backend/adapter/tool_profile_common.go:205
↓ 1 callers
Function
buildCommonToolInstructionPrefix
(profile cliToolProfile)
backend/adapter/tool_profile_common.go:163
↓ 1 callers
Function
buildDroppedHistoryNotice
(originalMessages, keptMessages []any, tools []map[string]any)
backend/adapter/standard_request.go:639
↓ 1 callers
Function
buildFallbackModelList
()
backend/main.go:6772
↓ 1 callers
Function
buildFewShotBlock
(tools []map[string]any)
backend/adapter/standard_request.go:1501
↓ 1 callers
Function
buildModelEntry
---- migrated from models.go ----
backend/main.go:6743
↓ 1 callers
Function
buildOpenAICompletionPayload
(id string, created int64, req StandardRequest, result CompletionResult)
backend/main.go:7078
↓ 1 callers
Function
buildOpenAIModelList
(upstream []map[string]any)
backend/main.go:6776
↓ 1 callers
Function
buildOrderedRoundRecordState
(messages []any, originalGoal string)
backend/adapter/standard_request.go:471
↓ 1 callers
Function
buildProfileToolBlock
(profile cliToolProfile, tools []map[string]any)
backend/adapter/tool_profile_common.go:187
↓ 1 callers
Function
buildQNMLToolInstructions
(tools []map[string]any, names []string, schemas []string)
backend/adapter/standard_request.go:1307
↓ 1 callers
Function
buildTaskMemoryBlock
(messages []any, tools []map[string]any)
backend/adapter/standard_request.go:424
↓ 1 callers
Function
buildToolInstructions
(tools []map[string]any)
backend/main.go:7047
↓ 1 callers
Function
buildToolResultFollowupNotice
(messages []any)
backend/adapter/standard_request.go:1058
↓ 1 callers
Function
buildWorkspaceNotice
(workspaceRoot string)
backend/context_pipeline.go:222
↓ 1 callers
Function
canonicalToolTag
(closing bool, body string, selfClosing bool)
backend/toolcall/formats_qnml.go:170
↓ 1 callers
Function
canonicalizeQNML
(text string)
backend/toolcall/formats_qnml.go:111
↓ 1 callers
Function
capabilityBadges
(option?: ModelOption)
frontend/src/lib/models.ts:134
↓ 1 callers
Function
claudeCodeToolProfile
()
backend/adapter/tool_profile_claude_code.go:3
↓ 1 callers
Function
cleanMangledQNMLValue
(value string)
backend/toolcall/formats_qnml.go:624
↓ 1 callers
Function
cleanWorkspaceCandidate
(value string)
backend/context_pipeline.go:283
↓ 1 callers
Method
cleanupContextArtifacts
(ctx context.Context)
backend/context_pipeline.go:1504
↓ 1 callers
Function
clearStoredApiKey
()
frontend/src/lib/auth.ts:61
↓ 1 callers
Function
cn
(...inputs: ClassValue[])
frontend/src/lib/utils.ts:4
↓ 1 callers
Function
coerceToolCalls
(calls []ParsedToolCall, tools []map[string]any)
backend/toolcall/parser.go:154
← previous
next →
401–500 of 1,037, ranked by callers