luern0313/DSH-Cache-Hit-Precision ↗★ 1
dsh-cache-hit-precision
A tiny dsh web plugin that shows the cache-hit rate with two decimal places in the chat stats line.
AI Analysis
用于精确监控 API 缓存效果。适合关注 Token 消耗和缓存优化、需要查看精确到小数点后两位的缓存命中率的用户。
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:luern0313/DSH-Cache-Hit-PrecisionREADME
Read the full README ↗手动安装(不使用 pnpm)
mkdir -p ~/.dsh/profiles/web/node_modules
ln -sfn /path/to/DSH-Cache-Hit-Precision ~/.dsh/profiles/web/node_modules/dsh-cache-hit-precision
然后在 ~/.dsh/profiles/web/cordis.patch.yml 末尾追加:
- insert:
- id: cache-hit-precision
name: dsh-cache-hit-precision
重启生效:
dsh web