概览
dsh-billing
源码级技术说明DeepSeek Harness 计费插件:持久化账本精确计费(每次模型调用)、官方余额、预算、今日/本月/累计汇总、会话明细与历史记录、峰谷计价、官方价格同步,界面中英双语。Billing plugin for DeepSeek Harness: persistent ledger with exact per-call cost, official balance, budget, today/month/total summaries, per-session details and history, peak/off-peak pricing, official price sync — bilingual (zh/en).收起技术说明
DeepSeek Harness 计费插件:持久化账本精确计费(每次模型调用)、官方余额、预算、今日/本月/累计汇总、会话明细与历史记录、峰谷计价、官方价格同步,界面中英双语。Billing plugin for DeepSeek Harness: persistent ledger with exact per-call cost, official balance, budget, today/month/total summaries, per-session details and history, peak/off-peak pricing, official price sync — bilingual (zh/en).
README / ZH
插件文档
目录摘要
DeepSeek Harness 计费插件:持久化账本精确计费(每次模型调用)、官方余额、预算、今日/本月/累计汇总、会话明细与历史记录、峰谷计价、官方价格同步,界面中英双语。Billing plugin for DeepSeek Harness: persistent ledger with exact per-call cost, official balance, budget, today/month/total summaries, per-session details and history, peak/off-peak pricing, official price sync — bilingual (zh/en).
dsh.pub 核对固定版本的组合包契约、运行时事实与分发语义;完整 README 请查看源仓库。
在 GitHub 阅读完整 READMELIMITATIONS
已知限制
- 余额是账户级数据,按 `refreshMinutes` 缓存;手动刷新即时生效; - 会话统计行的本会话费用为当前档位估算值,精确费用以账本(今日/月度/累计)为准; - 官方页面解析依赖当前页面结构;改版后「同步官方价格」会报错,价格表暂沿用旧值,可稍后重试或手动编辑 `ledger.json` 兜底; - 价格同步**以官方页面为准替换整个模型集**:官方页面不存在的 legacy/自定义模型会被移除; - 余额查询需要可访问 api.deepseek.com 的网络与有效 API Key;**API Key 只会发往官方域名**(baseURL 指向非官方域名时余额查询拒绝请求,模型请求不受影响); - 安装/更新插件后需重启 `dsh web` 生效。
