Add dashboard token usage history (#240)

This commit is contained in:
Lingxuan Zuo
2026-03-02 13:20:33 +08:00
committed by GitHub
Unverified
parent 0bc4b7cbc2
commit 62108bdc23
10 changed files with 718 additions and 6 deletions

View File

@@ -24,5 +24,31 @@
"activeSkills": "Active Skills",
"noSkills": "No skills enabled",
"enableSome": "Enable some skills",
"more": "+{{count}} more"
}
"more": "+{{count}} more",
"recentTokenHistory": {
"title": "Recent Token Usage",
"description": "The latest assistant responses with recorded token usage.",
"loading": "Loading token usage history...",
"empty": "No token usage history yet",
"groupByModel": "By model",
"groupByTime": "By time",
"last7Days": "7 days",
"last30Days": "30 days",
"allTime": "All",
"showingLast": "Showing the latest {{count}} records",
"totalTokens": "total tokens",
"inputShort": "Input",
"outputShort": "Output",
"cacheShort": "Cache",
"page": "Page {{current}} / {{total}}",
"prev": "Previous",
"next": "Next",
"unknownModel": "Unknown model",
"emptyForWindow": "No token usage history in this time range",
"input": "Input {{value}}",
"output": "Output {{value}}",
"cacheRead": "Cache read {{value}}",
"cacheWrite": "Cache write {{value}}",
"cost": "Cost ${{amount}}"
}
}

View File

@@ -24,5 +24,31 @@
"activeSkills": "アクティブなスキル",
"noSkills": "有効なスキルがありません",
"enableSome": "スキルを有効にする",
"more": "+{{count}} 件"
}
"more": "+{{count}} 件",
"recentTokenHistory": {
"title": "最近のトークン使用量",
"description": "トークン使用量が記録された最新のアシスタント応答を表示します。",
"loading": "トークン使用履歴を読み込み中...",
"empty": "トークン使用履歴はまだありません",
"groupByModel": "モデル別",
"groupByTime": "時間別",
"last7Days": "7日",
"last30Days": "30日",
"allTime": "すべて",
"showingLast": "最新 {{count}} 件を表示",
"totalTokens": "合計トークン",
"inputShort": "入力",
"outputShort": "出力",
"cacheShort": "キャッシュ",
"page": "{{current}} / {{total}} ページ",
"prev": "前へ",
"next": "次へ",
"unknownModel": "不明なモデル",
"emptyForWindow": "この期間のトークン使用履歴はありません",
"input": "入力 {{value}}",
"output": "出力 {{value}}",
"cacheRead": "キャッシュ読取 {{value}}",
"cacheWrite": "キャッシュ書込 {{value}}",
"cost": "コスト ${{amount}}"
}
}

View File

@@ -24,5 +24,31 @@
"activeSkills": "已启用技能",
"noSkills": "未启用技能",
"enableSome": "启用一些技能",
"more": "+{{count}} 更多"
}
"more": "+{{count}} 更多",
"recentTokenHistory": {
"title": "最近 Token 消耗",
"description": "展示最近带有 token 用量记录的助手回复。",
"loading": "正在加载 token 消耗历史...",
"empty": "还没有 token 消耗历史",
"groupByModel": "按模型",
"groupByTime": "按时间",
"last7Days": "7 天",
"last30Days": "30 天",
"allTime": "全部",
"showingLast": "显示最近 {{count}} 条记录",
"totalTokens": "总 token",
"inputShort": "输入",
"outputShort": "输出",
"cacheShort": "缓存",
"page": "第 {{current}} / {{total}} 页",
"prev": "上一页",
"next": "下一页",
"unknownModel": "未知模型",
"emptyForWindow": "当前时间范围内没有 token 消耗历史",
"input": "输入 {{value}}",
"output": "输出 {{value}}",
"cacheRead": "缓存读取 {{value}}",
"cacheWrite": "缓存写入 {{value}}",
"cost": "费用 ${{amount}}"
}
}