API $$ v0.3.0
API $$ v0.3.0
在余额面板中新增本机 DSH Token 用量统计:今日、本周、本月、累计、今日缓存命中率,以及可切换月份的每日柱状图。
Adds retained-local-session Token analytics beside the DeepSeek balance: Today, This week, This month, All time, today's cache-hit rate, and a month-switchable daily bar chart.
主要变化 / Highlights
- 今日 / 本周 / 本月 / 累计四档统计;每周从周一开始
- 按浏览器时区归日,支持月度每日柱状图与月份切换
- 自动回溯本机仍保留的 DSH 会话
- 排除分叉会话复制的历史前缀,最终用量替换临时 chunk,避免重复累计
- 中文、英文、桌面与 390 px 移动端布局
- Windows PowerShell 5.1 的
-WhatIfSHA-256 预检修复 - Today / This week / This month / All time totals; Monday-based weeks
- Browser-timezone grouping and month-switchable daily chart
- Backfill from retained local DSH sessions
- Fork-history and provisional-chunk deduplication
- Chinese, English, desktop, and 390 px mobile layouts
- Windows PowerShell 5.1
-WhatIfhashing fix
统计边界 / Scope
Note
用量来自本机仍保留的 DSH 会话,不是 DeepSeek 官方全账户账单。已删除日志、其他电脑、其他客户端或直接 API 调用不会计入。
Usage comes from retained local DSH sessions, not the official account-wide billing ledger. Deleted logs and calls from other machines or clients are excluded.
/api/llm.usage 不需要 API Key、不访问外部服务,也不返回提示词或回复正文。
/api/llm.usage needs no API key, makes no external request, and returns no prompts or response text.
兼容性 / Compatibility
Important
仅支持 @deepseek-ai/dsh@0.1.0-rc.6。这是非官方、版本锁定的补丁包,不是原生 Cordis 插件。
Supports @deepseek-ai/dsh@0.1.0-rc.6 only. This is an unofficial, version-locked patch package, not a native Cordis plugin.
- Windows 10 / 11
- macOS with Bash 3.2 or newer
安装与升级 / Install and upgrade
Read the Chinese install guide or English install guide.
从 v0.2.0 升级时,优先复用原安装目录及其校验备份;若使用新目录,先用旧目录卸载恢复官方文件。
完整变化见 CHANGELOG.md。