feat(webui): visualize context usage by logical round (#5649)

* feat(webui): visualize per-request context reuse

* refactor(webui): report usage by logical round

* fix(webui): align context chart with logical rounds

* refactor(webui): derive turn usage from logical rounds

* fix(webui): polish context usage details
This commit is contained in:
chengyongru authored and GitHub committed 2026-09-04 15:13:17 +08:00
1 parent 8fb7bc34ec
commit 6b82d642fc
35 files changed
+994 -274

No files matched your search

+10 -2
View File
@@ -1185,8 +1185,16 @@
"switchModel": "切換此對話使用的模型",
"manageModels": "管理模型預設",
"context": {
"tooltip": "上下文 · {{tokens}}{{capacity}}",
"meterDescription": "{{context}}。已使用 {{percent}}%。"
"tooltip": "上下文 {{percent}}%",
"detailsLabel": "開啟上下文用量",
"panelTitle": "上下文用量",
"contextTitle": "上下文",
"recentRounds": "最近輪次",
"inputTrend": "輸入 Token",
"input": "輸入 Token",
"cacheHitRate": "KV Cache 命中率",
"output": "輸出 Token",
"duration": "生成耗時"
},
"queued": {
"label": "佇列中的引導訊息",