yweilai77-dev/dsh-plugin-cost ↗★ 0
dsh-plugin-cost
Session cost estimate for the DSH Web UI: tokenUsage projection × configurable price table, with a one-click refresh of official DeepSeek prices 适合关心会话 token 花费、想按价格表估算成本的网页端用户。
같은 패키지 이름의 다른 저장소
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:yweilai77-dev/dsh-plugin-cost配置
插件行 cost 的 config 可覆盖默认价格表(每百万 tokens):
| 字段 | 默认 | 含义 |
|---|---|---|
prices.input | 1 | 输入(缓存未命中)CNY/百万 tokens |
prices.cacheRead | 0.02 | 输入(缓存命中)CNY/百万 tokens |
prices.cacheWrite | 1 | 缓存写入(按未命中输入计)CNY/百万 tokens |
prices.output | 2 | 输出 CNY/百万 tokens |
prices.currency | CNY | 币种(CNY → ¥,USD → $) |
fetchUrl | 官方中文价格页 | "刷新价格"拉取地址;可指向 JSON({input, cacheRead, cacheWrite, output, currency?}) |
在你的 profile 的 cordis.patch.yml 里按行 id 覆盖,例如:
- id: cost
name: dsh-plugin-cost
config:
prices:
input: 1.5
cacheRead: 0.05
cacheWrite: 1.5
output: 4.5
currency: CNY
fetchUrl: 'https://api-docs.deepseek.com/zh-cn/quick_start/pricing/'
注意:覆盖整行时需重述全部键(补丁替换整行 config,不做深合并)。