feat: 实现关键帧检测与成本控制

- EdgeProcessor:sampleFrame 降采样 160x120 + compareFrames 像素差异对比
- 重复画面跳过:similarity > 0.9 时不发送 query
- 混合采样策略:静默 5s / 用户说话 1s(docs/08-成本控制.md)
- 请求统计:queryCount + totalTokens 实时显示
- App 状态栏显示成本统计

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2026-06-13 14:38:15 +08:00
parent 8dc59d2c09
commit 2c6489b9a6
5 changed files with 157 additions and 14 deletions

View File

@@ -237,6 +237,16 @@ body {
border-top: 1px solid var(--color-border);
}
/* ---- Stats Bar ---- */
.stats-bar {
text-align: center;
padding: 4px 0;
font-size: 0.75rem;
color: var(--color-text-muted);
border-top: 1px solid var(--color-border);
}
/* ---- Buttons ---- */
.btn {