MCPcopy Create free account

hub / github.com/YuJunZhiXue/qwen2API / functions

Functions1,037 in github.com/YuJunZhiXue/qwen2API

↓ 3 callersFunctioncloneMap
(m map[string]any)
backend/toolcall/parser.go:546
↓ 3 callersFunctioncloneRateLimits
(in map[string]AccountRateLimit)
backend/main.go:825
↓ 3 callersFunctioncoerceQNMLScalar
(raw string, rawString bool)
backend/toolcall/formats_qnml.go:671
↓ 3 callersMethodconsumeToolCapture
(force bool)
backend/toolcall/tool_sieve.go:116
↓ 3 callersFunctioncontentToText
(content any)
backend/adapter/standard_request.go:1879
↓ 3 callersFunctiondedupeStrings
(values []string)
backend/main.go:6322
↓ 3 callersFunctionenvInt
(key string, fallback int)
start-all.go:465
↓ 3 callersFunctionexampleToolParams
(tool map[string]any)
backend/adapter/standard_request.go:1651
↓ 3 callersFunctionextractNameAttr
(attrs string)
backend/toolcall/formats_qnml.go:409
↓ 3 callersFunctionextractReasoningFromContent
(content: unknown)
frontend/src/pages/TestPage.tsx:130
↓ 3 callersFunctionextractRoundRecords
(text string)
backend/adapter/standard_request.go:537
↓ 3 callersFunctionextractVideoURLs
(text string)
backend/main.go:6159
↓ 3 callersFunctionfileExists
(path string)
start-all.go:492
↓ 3 callersFunctiongetRatioStatus
(img: GeneratedImage)
frontend/src/pages/ImagePage.tsx:159
↓ 3 callersFunctionimageRatio
(options map[string]any)
backend/upstream/payload_builder.go:100
↓ 3 callersFunctioninferModeFromId
(modelId: string)
frontend/src/lib/models.ts:79
↓ 3 callersFunctionintSliceContains
(values []int, want int)
backend/main.go:3409
↓ 3 callersFunctioninvalidToolCallReason
(call ParsedToolCall)
backend/main.go:3422
↓ 3 callersFunctioninvalidToolMarkupFallback
(req StandardRequest, result CompletionResult)
backend/main.go:4344
↓ 3 callersFunctionisControlToolName
(name string)
backend/adapter/standard_request.go:1966
↓ 3 callersFunctionisFileCacheHint
(text string)
backend/context_pipeline.go:193
↓ 3 callersFunctionisLikelyCompletedToolTurn
(text string)
backend/main.go:7579
↓ 3 callersFunctionisModelNotFoundErrorMessage
(lower string)
backend/main.go:4457
↓ 3 callersFunctionisTransientUpstreamErrorMessage
(lower string)
backend/main.go:4511
↓ 3 callersFunctionlatestRepeatedToolCallActivity
(messages []any, limit int)
backend/adapter/standard_request.go:755
↓ 3 callersFunctionmakeToolCallActivity
(name, args string)
backend/adapter/standard_request.go:836
↓ 3 callersFunctionmessageToolResultSummaries
(msg map[string]any)
backend/adapter/standard_request.go:918
↓ 3 callersFunctionmissingRequiredArgs
(name string, input any, tools []map[string]any)
backend/toolcall/parser.go:464
↓ 3 callersFunctionmustJSON
(v any)
backend/toolcall/parser.go:146
↓ 3 callersMethodnormalize
()
backend/main.go:682
↓ 3 callersFunctionnormalizeApiKey
(input: string)
frontend/src/lib/auth.ts:7
↓ 3 callersFunctionobfuscateBareToolNames
(text string, tools []map[string]any)
backend/adapter/standard_request.go:1274
↓ 3 callersFunctionparsedToolCallSignature
(call ParsedToolCall)
backend/main.go:3670
↓ 3 callersMethodprepareStandardRequest
(ctx context.Context, r *http.Request, body map[string]any, defaultModel, surface, authToken string)
backend/context_pipeline.go:1477
↓ 3 callersMethodprewarmEnabled
()
backend/main.go:1532
↓ 3 callersFunctionpromptDisallowsToolCall
(prompt, toolName string)
backend/main.go:2956
↓ 3 callersFunctionqwenHeaders
(token string)
backend/main.go:7893
↓ 3 callersFunctionrateLimitReasonForUsage
(usage string)
backend/main.go:853
↓ 3 callersMethodrateLimitedUntilFor
(usage string)
backend/main.go:749
↓ 3 callersMethodrecord
(status int, err error)
backend/main.go:2280
↓ 3 callersFunctionresponseStringifyContent
(value any)
backend/main.go:5284
↓ 3 callersFunctionresponsesToolItems
(calls []ParsedToolCall)
backend/main.go:8869
↓ 3 callersFunctionreverseStrings
(values []string)
backend/adapter/standard_request.go:950
↓ 3 callersFunctionrunForegroundOutput
(spec commandSpec)
start-all.go:303
↓ 3 callersFunctionsafeRemoveGeneratedPath
(rootDir, target string)
backend/context_pipeline.go:1314
↓ 3 callersFunctionserviceOf
(acc: AccountItem)
frontend/src/pages/AccountsPage.tsx:165
↓ 3 callersMethodsetRateLimitFor
(usage string, until float64, message string)
backend/main.go:760
↓ 3 callersFunctionshouldBufferStreamTextDeltas
(req StandardRequest)
backend/main.go:3666
↓ 3 callersFunctionshouldForceToolContinuation
(req StandardRequest, result CompletionResult)
backend/main.go:7331
↓ 3 callersFunctionsleep
(ms: number)
frontend/src/pages/TestPage.tsx:126
↓ 3 callersFunctionsplitEnvList
(value string)
backend/main.go:2062
↓ 3 callersFunctionsplitInlineThinking
(content: string, reasoning = "")
frontend/src/pages/TestPage.tsx:112
↓ 3 callersFunctionstreamTimeoutDuration
(seconds int)
backend/main.go:7848
↓ 3 callersFunctiontoolCallNameAndArgs
(call map[string]any)
backend/adapter/standard_request.go:1782
↓ 3 callersFunctiontoolInputPreview
(input any, limit int)
backend/main.go:7236
↓ 3 callersFunctionwarmChatKey
(email, model, chatType string)
backend/main.go:1751
↓ 2 callersMethodAcquire
(ctx context.Context, preferredEmail string)
backend/main.go:520
↓ 2 callersMethodApply
(cfg KeepAliveConfig)
backend/main.go:2195
↓ 2 callersMethodAvailable
(maxInflight int)
backend/core/account_pool/pool_core.go:89
↓ 2 callersFunctionEstimateTokens
(text string)
backend/services/token_calc.go:5
↓ 2 callersMethodGet
(apiToken, filePath string)
backend/context_pipeline.go:171
↓ 2 callersMethodGetChatDetail
(ctx context.Context, token, chatID string, timeout time.Duration)
backend/main.go:8216
↓ 2 callersMethodNormalize
()
backend/core/account_pool/pool_core.go:78
↓ 2 callersFunctionParseSSEBlock
ParseSSEBlock decodes one SSE block with data: JSON payloads.
backend/upstream/sse_consumer.go:48
↓ 2 callersFunctionParseToolCalls
ParseToolCalls extracts tool calls from XML/QNML-style and JSON fragments.
backend/toolcall/parser.go:20
↓ 2 callersMethodPut
(apiToken, filePath, content string)
backend/context_pipeline.go:153
↓ 2 callersFunctionSanitizeVisibleText
(text string)
backend/runtime/execution.go:176
↓ 2 callersFunctionanthropicMessages
(body map[string]any)
backend/main.go:5450
↓ 2 callersFunctionasRecord
(value: unknown)
frontend/src/lib/models.ts:71
↓ 2 callersFunctionbackendEnv
(root string, port int, adminKey string, prewarmTarget int)
start-all.go:224
↓ 2 callersFunctionboolLogValue
(value bool)
backend/main.go:8634
↓ 2 callersFunctionbuildRepeatedToolCallNotice
(messages []any)
backend/adapter/standard_request.go:737
↓ 2 callersFunctioncanonicalToolName
(name string, allowed map[string]string)
backend/main.go:8814
↓ 2 callersMethodclearRateLimitFor
(usage string)
backend/main.go:779
↓ 2 callersFunctionclickFirst
(page pw.Page, selectors []string, timeoutMS float64)
backend/main.go:1299
↓ 2 callersFunctioncollectImportAccounts
(value: unknown)
frontend/src/pages/AccountsPage.tsx:230
↓ 2 callersFunctioncollectMediaURLs
(value any, urls *[]string, keys map[string]bool, looks func(string) bool)
backend/main.go:6261
↓ 2 callersFunctioncollectRecentToolActivity
(messages []any, limit int)
backend/adapter/standard_request.go:702
↓ 2 callersMethodcompactRateLimits
()
backend/main.go:796
↓ 2 callersFunctioncompactSystemReminders
(text string)
backend/main.go:7063
↓ 2 callersFunctionconcatBytes
(chunks: Uint8Array[])
frontend/src/pages/AccountsPage.tsx:319
↓ 2 callersFunctionconvertResponseContentPart
(part any, role string)
backend/main.go:5143
↓ 2 callersFunctionconvertResponseMessageContent
(content any, role string)
backend/main.go:5107
↓ 2 callersFunctioncopyToClipboard
(text: string)
frontend/src/pages/TokensPage.tsx:61
↓ 2 callersFunctiondecodeDataURI
(uri string)
backend/context_pipeline.go:591
↓ 2 callersFunctionderiveWorkspaceRoot
(payload map[string]any)
backend/context_pipeline.go:233
↓ 2 callersFunctiondetectToolProfile
(tools []map[string]any)
backend/adapter/tool_profile_common.go:94
↓ 2 callersFunctiondispatchSseEvent
()
frontend/src/pages/TestPage.tsx:414
↓ 2 callersFunctiondownloadBlob
(name: string, blob: Blob)
frontend/src/pages/AccountsPage.tsx:278
↓ 2 callersFunctionexeName
(name string)
start-all.go:497
↓ 2 callersFunctionextensionLower
(name string)
backend/context_pipeline.go:1090
↓ 2 callersFunctionextractAPIToken
(r *http.Request)
backend/main.go:2548
↓ 2 callersFunctionextractPlainRoundMentions
(text string)
backend/main.go:3241
↓ 2 callersFunctionextractProgressRoundRecords
(text string)
backend/main.go:3366
↓ 2 callersFunctionextractToolFilePathFromAny
(value any)
backend/context_pipeline.go:1437
↓ 2 callersFunctionextractTopicEntities
(text string)
backend/adapter/standard_request.go:327
↓ 2 callersFunctionextractUpstreamFailure
(text string)
backend/main.go:6184
↓ 2 callersFunctionextractVerifyLinkFromPage
(page pw.Page)
backend/main.go:1387
↓ 2 callersFunctionfenceRun
(stripped string)
backend/toolcall/formats_qnml.go:394
↓ 2 callersFunctionfillFirst
(page pw.Page, selectors []string, value string, timeoutMS float64)
backend/main.go:1287
← previousnext →201–300 of 1,037, ranked by callers