dsh-tide-badge

DSH 输入框下方的峰谷计费与余额药丸,基于 xiangrikuibaize/dsh-tide-badge 修改。与原版不同的是:本次对话花费按本会话的 token 用量(未命中 / 缓存命中 / 缓存写入 / 输出)乘官方价目表计算,而不是余额差值,因此同账号的其他对话与 API Key 消耗不会被算进来。它与上游同包名,装上会替换 npm 上的上游版本,两者不能同时安装。

模型与费用NOASSERTION☆ 0

插件介绍

DSH 输入框下方的峰谷计费与余额药丸,基于 xiangrikuibaize/dsh-tide-badge 修改。与原版不同的是:本次对话花费按本会话的 token 用量(未命中 / 缓存命中 / 缓存写入 / 输出)乘官方价目表计算,而不是余额差值,因此同账号的其他对话与 API Key 消耗不会被算进来。它与上游同包名,装上会替换 npm 上的上游版本,两者不能同时安装。

安装方式

从 GitHub 安装

dsh plugin --profile web add github:errolleefin/dsh-tide-badge

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

版本兼容情况

兼容性待确认。可前往项目文档查看支持版本。

安装提示

  • 可能调用终端命令