Skip to content

dsh-plugin-usage v0.1.3

Choose a tag to compare

@GHJIVHIDD GHJIVHIDD released this 16 Aug 22:36
· 5 commits to main since this release

dsh-plugin-usage 0.1.3 (用量) — fix double counting

Cache hit / input / output now match the local DSH trajectory view.
修复重复计数:Cache hit 等数字现已与 DSH 本地(轨迹视图)一致。

Root cause

  • The llm/stream wrapper marked a live record done the moment the stream ended, but the assistant/message commit arrives after that, so the reconcile step never matched and every call was recorded twice (input/output/cache-hit all doubled).

Fix

  • Reconcile now matches any live record of the same model in the 15s window (status no longer required) and overwrites with exact usage
  • Verified with an event-order simulation: 1 record, correct totals

Install / upgrade

dsh plugin --profile web add github:GHJIVHIDD/dsh-plugin-usage
# or from this release tarball:
curl -L -o dsh-plugin-usage.tgz https://github.com/GHJIVHIDD/dsh-plugin-usage/releases/download/v0.1.3/deepseek-ai-dsh-plugin-usage-0.1.3.tgz
dsh plugin --profile web add ./dsh-plugin-usage.tgz

Docs: README.md (EN) / README.zh.md (中文) · MIT License