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
↓ 1 callers
Function
coerceToolInputBySchema
(name string, input any, tools []map[string]any)
backend/toolcall/parser.go:308
↓ 1 callers
Function
coerceValueBySchema
(value any, schema map[string]any)
backend/toolcall/parser.go:326
↓ 1 callers
Function
collectRecentToolCalls
(messages []any, limit int)
backend/adapter/standard_request.go:778
↓ 1 callers
Function
collectRoundRecordsFromValue
(value any, seen map[int]bool)
backend/adapter/standard_request.go:563
↓ 1 callers
Function
collectTaskIDs
(value any, taskIDs *[]string)
backend/main.go:6278
↓ 1 callers
Function
collectToolCallRefs
(messages []any)
backend/context_pipeline.go:1401
↓ 1 callers
Function
convertResponseMessage
(item map[string]any)
backend/main.go:5085
↓ 1 callers
Function
convertResponseToolCallItem
(item map[string]any)
backend/main.go:5187
↓ 1 callers
Function
convertResponseToolOutputItem
(item map[string]any)
backend/main.go:5200
↓ 1 callers
Function
copyCaps
(src map[string]bool)
backend/services/model_catalog.go:143
↓ 1 callers
Function
copyMap
(src map[string]any)
backend/main.go:5310
↓ 1 callers
Method
count
(email, model, chatType string)
backend/main.go:1687
↓ 1 callers
Function
countToolEvents
(messages []any)
backend/adapter/standard_request.go:866
↓ 1 callers
Function
crc32
(bytes: Uint8Array)
frontend/src/pages/AccountsPage.tsx:293
↓ 1 callers
Method
createImageURLs
(ctx context.Context, model, promptText string, imageOptions map[string]any)
backend/main.go:5817
↓ 1 callers
Method
createVideoURLs
(ctx context.Context, model, promptText string, videoOptions map[string]any)
backend/main.go:5950
↓ 1 callers
Method
createWarmChat
(ctx context.Context, acc Account, warmKey ModelWarmKey)
backend/main.go:1667
↓ 1 callers
Function
dedupeToolCalls
(calls []ParsedToolCall)
backend/main.go:8861
↓ 1 callers
Method
deleteUploadedLocalFileRecord
(fileID string)
backend/context_pipeline.go:577
↓ 1 callers
Function
deriveSessionKey
(surface, authToken string, payload map[string]any)
backend/context_pipeline.go:827
↓ 1 callers
Function
detectClientProfile
(r *http.Request, tools []map[string]any)
backend/context_pipeline.go:205
↓ 1 callers
Function
detectToolLocalName
(body string)
backend/toolcall/formats_qnml.go:201
↓ 1 callers
Function
detectTopicChange
(firstUserText, lastUserText string)
backend/adapter/standard_request.go:299
↓ 1 callers
Function
detectVariantModel
(modelID string)
backend/services/model_catalog.go:115
↓ 1 callers
Function
disallowedInvalidToolName
(req StandardRequest, result CompletionResult)
backend/main.go:3329
↓ 1 callers
Function
dosTime
(date = new Date())
frontend/src/pages/AccountsPage.tsx:304
↓ 1 callers
Function
downloadJSON
(name: string, data: unknown)
frontend/src/pages/AccountsPage.tsx:289
↓ 1 callers
Function
earliestMissingRoundBeforeAttempt
(prompt string, calls []ParsedToolCall)
backend/main.go:3342
↓ 1 callers
Function
enablePrewarmAfterStart
(port int, adminKey string, target int)
start-all.go:233
↓ 1 callers
Function
enqueueAssistantDelta
(content: string, reasoning: string)
frontend/src/pages/TestPage.tsx:371
↓ 1 callers
Method
ensureToken
(ctx context.Context)
backend/main.go:958
↓ 1 callers
Function
envBool
(key string, fallback bool)
backend/main.go:2149
↓ 1 callers
Function
envFloat
(key string, fallback float64)
backend/main.go:2140
↓ 1 callers
Function
envIntAlias
(key, alias string, fallback int)
backend/main.go:2131
↓ 1 callers
Function
envString
(key, fallback string)
start-all.go:458
↓ 1 callers
Function
estimatePromptLen
(messages []any, tools []map[string]any, clientProfile string)
backend/context_pipeline.go:744
↓ 1 callers
Function
exampleParamsFromSchema
(tool map[string]any)
backend/adapter/standard_request.go:1698
↓ 1 callers
Function
exampleSchemaValue
(name string, spec map[string]any)
backend/adapter/standard_request.go:1733
↓ 1 callers
Function
extractContentText
(content any)
backend/main.go:6991
↓ 1 callers
Function
extractImageURLs
(text string)
backend/main.go:6148
↓ 1 callers
Function
extractInlineFilePayload
(block map[string]any)
backend/context_pipeline.go:611
↓ 1 callers
Function
extractLooseQNMLAttrs
(text string, allowed map[string]string)
backend/toolcall/formats_qnml.go:542
↓ 1 callers
Function
extractModelList
(decoded any)
backend/main.go:9011
↓ 1 callers
Function
extractOrderedStepExcerpt
(text string, maxLines, maxChars int)
backend/adapter/standard_request.go:615
↓ 1 callers
Function
extractQNMLCandidates
(text string)
backend/toolcall/formats_qnml.go:307
↓ 1 callers
Function
extractReasoning
(delta map[string]any, extra map[string]any)
backend/upstream/sse_consumer.go:128
↓ 1 callers
Function
extractStreamDelta
(payload: unknown)
frontend/src/pages/TestPage.tsx:154
↓ 1 callers
Function
extractTaskIDs
(text string)
backend/main.go:6176
↓ 1 callers
Function
extractVerifyLinkFromEmailRecord
(msg map[string]any)
backend/main.go:1083
↓ 1 callers
Function
extractWorkspaceNotice
(messages []any)
backend/adapter/standard_request.go:372
↓ 1 callers
Function
failureOf
(acc: AccountItem)
frontend/src/pages/AccountsPage.tsx:181
↓ 1 callers
Function
familyOf
(option: ModelOption)
frontend/src/lib/models.ts:91
↓ 1 callers
Function
fetchStatus
()
frontend/src/pages/Dashboard.tsx:79
↓ 1 callers
Method
fetchVerifyLink
(ctx context.Context, email string)
backend/main.go:1024
↓ 1 callers
Function
fileExt
(name string)
backend/main.go:9062
↓ 1 callers
Function
fillNthInput
(page pw.Page, index int, value string)
backend/main.go:1308
↓ 1 callers
Function
fillPasswordInput
(page pw.Page, index int, value string)
backend/main.go:1322
↓ 1 callers
Function
filterImageModels
(options: ModelOption[])
frontend/src/lib/models.ts:160
↓ 1 callers
Function
filterLooseInputForTool
(name string, input map[string]any, tools []map[string]any)
backend/toolcall/formats_qnml.go:632
↓ 1 callers
Function
filterOutOfOrderToolCalls
(req StandardRequest, calls []ParsedToolCall)
backend/main.go:3259
↓ 1 callers
Function
filterPromptDisallowedToolCalls
(req StandardRequest, calls []ParsedToolCall)
backend/main.go:2940
↓ 1 callers
Function
filterRepeatedToolCalls
(req StandardRequest, calls []ParsedToolCall)
backend/main.go:3650
↓ 1 callers
Function
filterTextTestModels
(options: ModelOption[])
frontend/src/lib/models.ts:139
↓ 1 callers
Function
filterVideoModels
(options: ModelOption[])
frontend/src/lib/models.ts:176
↓ 1 callers
Function
findGo
()
start-all.go:187
↓ 1 callers
Function
findLogTestMarkers
(text string)
backend/main.go:8652
↓ 1 callers
Function
findNPM
()
start-all.go:211
↓ 1 callers
Function
findNode
()
start-all.go:201
↓ 1 callers
Method
findToolStart
(text string)
backend/toolcall/tool_sieve.go:137
↓ 1 callers
Function
findUpstreamCacheEntry
(entries []UpstreamFileCacheEntry, sessionKey, accountEmail, sha, ext string)
backend/context_pipeline.go:902
↓ 1 callers
Function
findVerifyLinkViaMailPage
(ctx context.Context, page pw.Page, email string)
backend/main.go:1358
↓ 1 callers
Function
firstCDATAValueBetween
(text string, start, end int)
backend/toolcall/formats_qnml.go:606
↓ 1 callers
Function
firstFenceIndex
(line string)
backend/toolcall/formats_qnml.go:380
↓ 1 callers
Function
firstMatchedGroup
(text string, match []int, pairs ...int)
backend/toolcall/formats_qnml.go:584
↓ 1 callers
Function
firstNonEmpty
(values ...string)
backend/upstream/sse_consumer.go:154
↓ 1 callers
Function
firstNonEmpty
(values ...string)
backend/toolcall/parser.go:137
↓ 1 callers
Function
firstNonEmptyUserText
(messages []any)
backend/adapter/standard_request.go:663
↓ 1 callers
Function
firstNonNegativeIndex
(values ...int)
backend/toolcall/formats_qnml.go:297
↓ 1 callers
Function
firstRepeatedToolName
(calls []ParsedToolCall)
backend/main.go:3767
↓ 1 callers
Function
firstString
(values ...any)
backend/adapter/standard_request.go:1910
↓ 1 callers
Function
firstToolMarkerIndex
(text string)
backend/toolcall/tool_sieve.go:306
↓ 1 callers
Function
firstUserTaskLine
(messages []any)
backend/adapter/standard_request.go:1031
↓ 1 callers
Function
formatActualSize
(img: GeneratedImage)
frontend/src/pages/ImagePage.tsx:154
↓ 1 callers
Function
formatLimitTime
(until: number)
frontend/src/pages/AccountsPage.tsx:138
↓ 1 callers
Function
formatRoundList
(rounds []int, limit int)
backend/adapter/standard_request.go:598
↓ 1 callers
Function
formatToolSignatureForPrompt
(signature string)
backend/main.go:3684
↓ 1 callers
Function
genericToolProfile
()
backend/adapter/tool_profile_common.go:110
↓ 1 callers
Method
getUploadedLocalFile
(fileID, ownerToken string)
backend/context_pipeline.go:559
↓ 1 callers
Function
handleActivate
(targetEmail: string)
frontend/src/pages/AccountsPage.tsx:642
↓ 1 callers
Function
handleCopyToken
(acc: AccountItem)
frontend/src/pages/AccountsPage.tsx:709
↓ 1 callers
Function
handleDelete
(target: AccountItem)
frontend/src/pages/AccountsPage.tsx:498
↓ 1 callers
Function
handleDelete
(item: ApiKeyItem)
frontend/src/pages/TokensPage.tsx:129
↓ 1 callers
Function
handleDownload
(url: string, idx: number)
frontend/src/pages/ImagePage.tsx:137
↓ 1 callers
Function
handleDownload
(url: string, idx: number)
frontend/src/pages/VideoPage.tsx:142
↓ 1 callers
Function
handleEditAccount
(acc: AccountItem)
frontend/src/pages/AccountsPage.tsx:718
↓ 1 callers
Method
handleGeminiGenerate
(w http.ResponseWriter, r *http.Request)
backend/main.go:5604
↓ 1 callers
Method
handleGeminiStream
(w http.ResponseWriter, r *http.Request)
backend/main.go:5624
↓ 1 callers
Function
handleGenerate
()
frontend/src/pages/ImagePage.tsx:78
↓ 1 callers
Function
handleGenerate
()
frontend/src/pages/VideoPage.tsx:81
↓ 1 callers
Function
handleImageLoad
(url: string, image: HTMLImageElement)
frontend/src/pages/ImagePage.tsx:146
← previous
next →
501–600 of 1,037, ranked by callers