Releases: bpc-oss/dsh-web-billing
Releases · bpc-oss/dsh-web-billing
Release list
v1.1.0 — Self-hosted savings / 本地模型节省统计
English
dsh-web-billing v1.1.0 — self-hosted savings tracking.
- Local model savings: configure
localProviders(e.g.dgx-spark-vllm), and calls from self-hosted providers are valued at the official rate ("nominal value") while the actual cost islocalCostPerM(default 0 = free). The difference is tracked as savings in CNY and USD. - UI: local message chips now show a "saved" badge (
省¥X), and the session panel adds a savings row (tooltip shows the cumulative total saved). - Ledger: per-message records and all aggregates (totals / today / month / per-session) carry
costNominal/savingsalongside the actual cost; reprice-on-restart covers the new fields. - Fix:
priceAtno longer crashes for models not named by any official policy when the user table has no*fallback. - Fully backward compatible: without
localProviderseverything behaves exactly as v1.0.0.
Install: dsh plugin --profile web add github:bpc-oss/dsh-web-billing
Docs: README.md (中文) / README.en.md (English)
中文
dsh-web-billing v1.1.0 —— 新增本地模型节省统计。
- 本地模型节省:配置
localProviders(例如dgx-spark-vllm)后,本地(自托管)模型的调用按官方价格计算「名义价值」,实际成本按localCostPerM(默认 0 = 免费),差值以人民币/美元双币种计入「已节省」。 - 界面:本地模型的消息角标显示「省¥X」;会话面板新增「已节省」行(悬停显示累计节省总额)。
- 账本:逐条记录与全部聚合(累计 / 今日 / 本月 / 按会话)在原有实际成本之外新增
costNominal/savings字段;重启重估自动覆盖新字段。 - 修复:官方政策表未点名的模型在用户表无
*兜底时不再崩溃。 - 完全向后兼容:不配置
localProviders时行为与 v1.0.0 完全一致。
安装:dsh plugin --profile web add github:bpc-oss/dsh-web-billing
文档:README.md(中文)/ README.en.md(English)
v1.0.0 — RMB/USD token billing for DSH web / DSH web 人民币/美元 token 计费
English
dsh-web-billing v1.0.0 — RMB/USD token-billing plugin for DeepSeek Harness (dsh web).
- Official-policy auto pricing: curated policy schedule in
lib/pricing.js, incl. the 2026-08-17 peak/off-peak rates (peak 09:00-12:00 / 14:00-18:00 Beijing, off-peak at half price). Policy changes apply automatically and the ledger re-prices itself on restart. - Per-message cost ledger: every assistant message with usage is priced by its own timestamp and persisted (
$DSH_HOME/storages/web-billing.json); idempotent against event replays. - Account balance: live DeepSeek balance via the official
/user/balanceAPI (CNY and USD). - Locale-driven currency: ¥ in the Chinese UI, $ in the English UI (
displayCurrencyto force one). - Extensible:
policyOverridesconfig, per-model price overrides, USD price overrides.
Install: dsh plugin --profile web add github:bpc-oss/dsh-web-billing
Docs: README.md (中文) / README.en.md (English)
中文
dsh-web-billing v1.0.0 —— DeepSeek Harness(dsh web)的人民币/美元 token 计费插件。
- 官方政策自动计价:
lib/pricing.js内置官方价格时间表,含 2026-08-17 起的峰谷定价(高峰 09:00-12:00 / 14:00-18:00 北京时间,空闲半价)。政策变化自动生效,重启后账本自动按新规则重估全部历史记录。 - 逐条消息记账:每条带 usage 的 assistant 消息按完成时刻计价并持久化(
$DSH_HOME/storages/web-billing.json),事件重放幂等、绝不重复累计。 - 账号余额:通过官方
/user/balance接口实时显示余额(CNY/USD 双币种)。 - 界面语言切换币种:中文界面显示 ¥、英文界面显示 $(可用
displayCurrency强制指定)。 - 可扩展:
policyOverrides配置可追加官方政策、支持按模型价格覆盖与美元价覆盖。
安装:dsh plugin --profile web add github:bpc-oss/dsh-web-billing
文档:README.md(中文)/ README.en.md(English)