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)