Fix token usage history gaps and add dev detail popup (#386)

Co-authored-by: zuolingxuan <zuolingxuan@bytedance.com>
This commit is contained in:
Lingxuan Zuo
2026-03-10 17:20:10 +08:00
committed by GitHub
Unverified
parent d3960a3d0f
commit 80e89ddc5c
12 changed files with 406 additions and 29 deletions

View File

@@ -33,7 +33,7 @@
"more": "+{{count}} more",
"recentTokenHistory": {
"title": "Recent Token Usage",
"description": "The latest assistant responses with recorded token usage.",
"description": "Recent assistant responses and tool results with model/provider usage data.",
"loading": "Loading token usage history...",
"empty": "No token usage history yet",
"groupByModel": "By model",
@@ -55,6 +55,9 @@
"output": "Output {{value}}",
"cacheRead": "Cache read {{value}}",
"cacheWrite": "Cache write {{value}}",
"cost": "Cost ${{amount}}"
"cost": "Cost ${{amount}}",
"viewContent": "View content",
"contentDialogTitle": "Usage detail content",
"close": "Close"
}
}
}

View File

@@ -33,7 +33,7 @@
"more": "+{{count}} 件",
"recentTokenHistory": {
"title": "最近のトークン使用量",
"description": "トークン使用量が記録された最新のアシスタント応答を表示します。",
"description": "モデル/プロバイダー使用情報を含む、最近のアシスタント応答とツール結果を表示します。",
"loading": "トークン使用履歴を読み込み中...",
"empty": "トークン使用履歴はまだありません",
"groupByModel": "モデル別",
@@ -55,6 +55,9 @@
"output": "出力 {{value}}",
"cacheRead": "キャッシュ読取 {{value}}",
"cacheWrite": "キャッシュ書込 {{value}}",
"cost": "コスト ${{amount}}"
"cost": "コスト ${{amount}}",
"viewContent": "内容を見る",
"contentDialogTitle": "使用量詳細の内容",
"close": "閉じる"
}
}
}

View File

@@ -33,7 +33,7 @@
"more": "+{{count}} 更多",
"recentTokenHistory": {
"title": "最近 Token 消耗",
"description": "展示最近带有 token 用量记录的助手回复。",
"description": "展示最近的助手回复与工具结果中的模型/提供商用量记录。",
"loading": "正在加载 token 消耗历史...",
"empty": "还没有 token 消耗历史",
"groupByModel": "按模型",
@@ -55,6 +55,9 @@
"output": "输出 {{value}}",
"cacheRead": "缓存读取 {{value}}",
"cacheWrite": "缓存写入 {{value}}",
"cost": "费用 ${{amount}}"
"cost": "费用 ${{amount}}",
"viewContent": "查看内容",
"contentDialogTitle": "用量明细内容",
"close": "关闭"
}
}
}