feat: header 增加当前会话总 token 消耗统计
- 新增 totalTokens 元素(帮助按钮右侧,🪙 图标 + 数字)
- chat-area.ts 新增 updateTotalTokens() 函数
- 四个触发点:新消息完成、新建会话、加载历史、应用初始化
- 数字自动格式化(toLocaleString)
This commit is contained in:
@@ -369,6 +369,20 @@ html, body {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.total-tokens {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
margin-left: 8px;
|
||||
padding: 2px 8px;
|
||||
font-size: 11px;
|
||||
color: var(--text-secondary);
|
||||
background: var(--bg-subtle, rgba(255,255,255,0.04));
|
||||
border-radius: 10px;
|
||||
white-space: nowrap;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
/* ═══ 模型选择栏 ═══ */
|
||||
.model-bar {
|
||||
display: flex;
|
||||
|
||||
Reference in New Issue
Block a user