dsh-cny-cost
DSH Web plugin that shows the theoretical CNY cost of DeepSeek official model usage under the composer and at the end of every turn, and watches the official pricing page for changes with a one-click rule-update session.
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:FeiYuSS/dsh-cny-cost配置
在配置档的 patch 中覆盖本插件的 config(整段替换;未写字段取默认值):
- id: cny-cost
name: dsh-cny-cost
config:
rateDate: '2026-11-10'
models:
deepseek-flash: flash
deepseek-v4-flash: flash
deepseek-v4-flash-vision-exp: flash
deepseek-v4-pro: pro
families:
flash:
peak: { hit: 0.04, miss: 2, out: 8 }
idle: { hit: 0.02, miss: 1, out: 4 }
pro:
peak: { hit: 0.30, miss: 9, out: 27 }
idle: { hit: 0.15, miss: 4.5, out: 13.5 }
writePrice: 0
periodMode: auto # auto | peak | idle(后两者用于自测或保守估计)
# holidays 是整段替换:不写则使用内置 2026 年表;一旦提供就完全覆盖内置表,
# 所以自定义时要写完整的法定节假日列表,否则会漏掉其余假期、把高价时段算多。
# holidays:
# - '2026-01-01'
# - '2026-10-01'
配置改动后插件会重启并重新折叠日志,历史会话费用随之更新。配置字段有拼写错误时插件会拒绝激活并 在日志中给出明确原因。