feat: 添加缓存 Token 独立展示(cache_creation / cache_read)
从 logs 表 other JSON 字段提取 cache_creation_tokens 和 cache_tokens, 在排名、日志、聚合、详情页分别展示,total_tokens 包含缓存部分。
This commit is contained in:
@@ -53,6 +53,8 @@ const translations = {
|
||||
"th.calls": "调用次数",
|
||||
"th.input": "输入",
|
||||
"th.output": "输出",
|
||||
"th.cacheCreation": "缓存创建",
|
||||
"th.cacheRead": "缓存读取",
|
||||
"th.totalToken": "总 Token",
|
||||
"th.time": "时间",
|
||||
"th.realModel": "真实模型",
|
||||
@@ -171,6 +173,8 @@ const translations = {
|
||||
"th.calls": "Calls",
|
||||
"th.input": "Input",
|
||||
"th.output": "Output",
|
||||
"th.cacheCreation": "Cache Write",
|
||||
"th.cacheRead": "Cache Read",
|
||||
"th.totalToken": "Total Token",
|
||||
"th.time": "Time",
|
||||
"th.realModel": "Real Model",
|
||||
|
||||
Reference in New Issue
Block a user