MCPcopy Create free account

hub / github.com/YuJunZhiXue/qwen2API / functions

Functions1,037 in github.com/YuJunZhiXue/qwen2API

↓ 85 callersFunctionstringValue
(m map[string]any, key, fallback string)
backend/main.go:8919
↓ 64 callersMethodLock
(key string)
backend/core/session_lock.go:14
↓ 62 callersMethodlogInfo
(ctx context.Context, msg string, attrs ...any)
backend/main.go:8598
↓ 59 callersMethodlogWarn
(ctx context.Context, msg string, attrs ...any)
backend/main.go:8604
↓ 57 callersFunctionstringValue
(m map[string]any, key, fallback string)
backend/adapter/standard_request.go:1995
↓ 54 callersFunctionwriteError
(w http.ResponseWriter, status int, detail any)
backend/main.go:8908
↓ 46 callersFunctionanyString
(v any, fallback string)
backend/main.go:8930
↓ 46 callersFunctiontoolParseText
(result CompletionResult)
backend/main.go:7211
↓ 41 callersFunctionfirstNonEmpty
(values ...string)
backend/main.go:6336
↓ 37 callersFunctiontruncate
(text string, limit int)
backend/main.go:9066
↓ 37 callersFunctionwriteJSON
(w http.ResponseWriter, status int, payload any)
backend/main.go:8902
↓ 33 callersFunctionwriteSSEEvent
(w io.Writer, event string, payload any)
backend/main.go:7112
↓ 31 callersMethodWrite
(data []byte)
backend/main.go:8401
↓ 29 callersFunctionpromptTail
(text string, limit int)
backend/main.go:8667
↓ 26 callersFunctionenvInt
(key string, fallback int)
backend/main.go:2122
↓ 26 callersFunctiongetAuthHeader
()
frontend/src/lib/auth.ts:65
↓ 25 callersFunctionlogInfo
(logger *slog.Logger, ctx context.Context, msg string, attrs ...any)
backend/main.go:8616
↓ 23 callersFunctionasText
(value: unknown)
frontend/src/pages/TestPage.tsx:69
↓ 23 callersFunctionlogWarn
(logger *slog.Logger, ctx context.Context, msg string, attrs ...any)
backend/main.go:8622
↓ 23 callersFunctionu16
(value: number)
frontend/src/pages/AccountsPage.tsx:311
↓ 21 callersFunctionanyList
(v any)
backend/main.go:8995
↓ 18 callersMethodlogParsedToolCalls
(ctx context.Context, label, stage string, calls []ParsedToolCall)
backend/main.go:7224
↓ 18 callersFunctionmaxInt
(a, b int)
backend/main.go:882
↓ 18 callersFunctionopenAIChunk
(id string, created int64, model string, delta map[string]any, finish any)
backend/main.go:7103
↓ 17 callersFunctionfirstNonNil
(values ...any)
backend/main.go:5318
↓ 16 callersMethodAdd
(acc Account)
backend/main.go:458
↓ 16 callersFunctionclipText
(text string, limit int)
backend/adapter/standard_request.go:1954
↓ 16 callersFunctionintValue
(m map[string]any, key string, fallback int)
backend/main.go:8944
↓ 16 callersMethodverifyAdmin
(w http.ResponseWriter, r *http.Request)
backend/main.go:2535
↓ 15 callersMethodGet
(id string)
backend/services/file_store.go:37
↓ 15 callersFunctionenvString
(key, fallback string)
backend/main.go:2115
↓ 15 callersFunctionmustJSON
(v any)
backend/main.go:6345
↓ 14 callersFunctionEnvInt
(key string, fallback int)
backend/core/config.go:83
↓ 14 callersFunctionanyList
(v any)
backend/adapter/standard_request.go:2042
↓ 14 callersFunctionnormalizeToolNameKey
(name string)
backend/main.go:3564
↓ 13 callersMethodDone
()
backend/runtime/stream_presenter.go:26
↓ 13 callersMethodRelease
(acc *Account)
backend/main.go:587
↓ 13 callersFunctionfirstString
(values ...any)
backend/main.go:8355
↓ 13 callersFunctionfirstString
(values ...any)
backend/upstream/sse_consumer.go:145
↓ 13 callersMethodhasAny
(candidates ...string)
backend/adapter/tool_profile_common.go:145
↓ 13 callersFunctioninvalidToolArgsName
(result CompletionResult)
backend/main.go:3722
↓ 13 callersFunctionisInvalidToolArgsResult
(result CompletionResult)
backend/main.go:3718
↓ 13 callersFunctionmax
(a, b int)
backend/core/account_pool/pool_core.go:99
↓ 13 callersFunctionrandomID
()
backend/main.go:8894
↓ 13 callersFunctionu32
(value: number)
frontend/src/pages/AccountsPage.tsx:315
↓ 12 callersFunctiondecodeJSON
(r *http.Request, dst any)
backend/main.go:8912
↓ 12 callersFunctionfetchAccounts
(notify = false)
frontend/src/pages/AccountsPage.tsx:393
↓ 12 callersMethodresolveAuth
(w http.ResponseWriter, r *http.Request)
backend/main.go:2505
↓ 11 callersMethodLoadInto
(v any)
backend/main.go:8698
↓ 11 callersFunctionhasTextualToolMarker
(text string)
backend/main.go:7288
↓ 11 callersFunctionsetRequestLogFields
(ctx context.Context, fields ...any)
backend/main.go:8507
↓ 10 callersMethodFlush
()
backend/main.go:8410
↓ 10 callersFunctionflushSSE
(w http.ResponseWriter)
backend/main.go:7116
↓ 10 callersFunctionparsedToolNames
(calls []ParsedToolCall)
backend/main.go:7241
↓ 10 callersFunctionredactToken
(token string)
backend/main.go:8641
↓ 10 callersMethodrequestJSON
(ctx context.Context, method, path, token string, body any, timeout time.Duration)
backend/main.go:7926
↓ 10 callersFunctionrequireSessionKey
()
frontend/src/pages/AccountsPage.tsx:382
↓ 9 callersFunctionasRecord
(value: unknown)
frontend/src/pages/TestPage.tsx:73
↓ 9 callersMethodclassifyAccountErrorFor
(acc *Account, err error, usage string)
backend/main.go:4370
↓ 9 callersFunctionfatalf
(format string, args ...any)
start-all.go:515
↓ 9 callersFunctionflattenContentText
(content any)
backend/context_pipeline.go:417
↓ 9 callersFunctiongetString
(value: unknown)
frontend/src/pages/AccountsPage.tsx:212
↓ 9 callersFunctionisBlockedToolNameOutput
(result CompletionResult, allowedNames []string)
backend/main.go:7762
↓ 8 callersFunctionExtractContentText
(content any)
backend/adapter/standard_request.go:1124
↓ 8 callersMethodSave
(v any)
backend/main.go:8724
↓ 8 callersMethodSnapshot
()
backend/main.go:386
↓ 8 callersFunctionclampInt
(value, minValue, maxValue int)
backend/main.go:2105
↓ 8 callersFunctioncollectFinalizeReason
(result CompletionResult, calls []ParsedToolCall)
backend/main.go:7265
↓ 8 callersFunctionextractBlockedToolNames
(text string, allowedNames []string)
backend/main.go:7733
↓ 8 callersFunctiongetStoredApiKey
()
frontend/src/lib/auth.ts:44
↓ 8 callersFunctionhasUnclosed
(openRe, closeRe *regexp.Regexp, text string)
backend/services/truncation_recovery.go:70
↓ 8 callersFunctionmodelMode
(option: ModelOption)
frontend/src/lib/models.ts:75
↓ 8 callersMethodresetLocked
()
backend/main.go:369
↓ 7 callersFunctionEnvString
(key, fallback string)
backend/core/config.go:76
↓ 7 callersFunctionNewJSONStore
(path string, defaultData any)
backend/main.go:8681
↓ 7 callersMethodStatus
()
backend/main.go:1726
↓ 7 callersMethodStop
()
backend/main.go:2230
↓ 7 callersFunctionanyString
(v any, fallback string)
backend/adapter/standard_request.go:1928
↓ 7 callersMethodavailableFor
(settings Settings, usage string)
backend/main.go:701
↓ 7 callersFunctioncompletionToolCalls
(result CompletionResult, tools []map[string]any)
backend/main.go:7281
↓ 7 callersFunctioneffectiveStatusCode
(acc: AccountItem)
frontend/src/pages/AccountsPage.tsx:132
↓ 7 callersFunctionextractUserTextOnly
(content any)
backend/adapter/standard_request.go:1858
↓ 7 callersFunctionfatal
(err error)
start-all.go:510
↓ 7 callersFunctionnormalizeAccountUsage
(usage string)
backend/main.go:836
↓ 7 callersFunctionparseToolCalls
(text string, tools []map[string]any)
backend/main.go:8752
↓ 7 callersFunctionqwenSafeToolName
(name string)
backend/adapter/standard_request.go:1234
↓ 7 callersFunctionrenderQNMLToolCall
(name string, input map[string]any)
backend/adapter/standard_request.go:1804
↓ 7 callersFunctionrepeatedToolCallName
(req StandardRequest, result CompletionResult)
backend/main.go:3758
↓ 7 callersMethodrunToolMarkupRecoveryAttempt
(ctx context.Context, acc *Account, req StandardRequest, prompt, reason string)
backend/main.go:4073
↓ 7 callersFunctionsanitizeClientErrorString
(msg string)
backend/main.go:4583
↓ 7 callersFunctionsleepWithContext
(ctx context.Context, delay time.Duration)
backend/main.go:1420
↓ 7 callersFunctionsuppressBlockedToolNameOutput
(result *CompletionResult, allowedNames []string)
backend/main.go:7769
↓ 6 callersMethodCreateChat
(ctx context.Context, token, model, chatType string)
backend/upstream/qwen_executor.go:11
↓ 6 callersFunctionappendLogAttrs
(ctx context.Context, attrs ...any)
backend/main.go:8590
↓ 6 callersFunctionappendMatches
(out *[]string, text, pattern string, submatch bool)
backend/main.go:6232
↓ 6 callersFunctiondedupeUpstreamFiles
(files []map[string]any)
backend/context_pipeline.go:888
↓ 6 callersFunctionemptyCompletionFallback
(req StandardRequest, result CompletionResult)
backend/main.go:7183
↓ 6 callersFunctionfirstNonNil
(values ...any)
backend/toolcall/parser.go:128
↓ 6 callersFunctionhasAnyNonEmptyArg
(args map[string]any, names ...string)
backend/main.go:3568
↓ 6 callersFunctionrandomID
()
backend/toolcall/parser.go:101
next →1–100 of 1,037, ranked by callers