feat(usage): 统计表格新增输入/输出与缓存创建token细分展示

- 后端接口(admin/user_me/query)新增 output_tokens、cache_creation_tokens、total_input_context 字段返回
- 前端统计表格(模型/提供商/API格式)合并 Tokens 列为"输入/输出"+"缓存读取/创建"两行紧凑布局
- 合并"缓存Token"和"缓存命中率"为单一"命中率"列,减少表格宽度
- 修正 UsageRecordsTable 缩进及模板格式
This commit is contained in:
fawney19
2026-03-14 16:11:56 +08:00
parent aafd332198
commit 751a4d9111
11 changed files with 268 additions and 186 deletions

View File

@@ -1,7 +1,10 @@
<template>
<div class="space-y-6 pb-8">
<!-- 面包屑旁的折叠按钮 -->
<Teleport to="#header-actions-right" defer>
<Teleport
to="#header-actions-right"
defer
>
<button
class="flex h-9 w-9 items-center justify-center rounded-lg text-muted-foreground hover:text-foreground hover:bg-muted/50 transition"
:title="statsExpanded ? '收起用量分析' : '展开用量分析'"