feat(ui): 添加 Token 消耗统计显示
- 状态栏显示当前会话 Token 消耗总量,悬停显示详情 - AI 消息底部显示本次响应的输入/输出 Token - 会话列表顶部显示项目 Token 消耗总量 - 会话列表每项显示该会话的 Token 消耗 - 新增 Token 统计 API 客户端函数 - Server done 事件携带 usage 信息
This commit is contained in:
@@ -222,7 +222,10 @@ export function App() {
|
||||
</div>
|
||||
|
||||
{/* 底部状态栏 */}
|
||||
<StatusBar onDiagnosticsClick={() => setShowDiagnostics(true)} />
|
||||
<StatusBar
|
||||
sessionId={currentSessionId}
|
||||
onDiagnosticsClick={() => setShowDiagnostics(true)}
|
||||
/>
|
||||
|
||||
{/* 命令面板 */}
|
||||
{showCommands && <CommandPanel onClose={() => setShowCommands(false)} responsive />}
|
||||
|
||||
Reference in New Issue
Block a user