debug-null/dsh-spend-pill ↗★ 0

dsh-spend-pill

在输入栏展示按API峰谷费率估算的会话费用。 适合需要根据官方价格、峰谷时段及节假日精确估算DeepSeek会话费用的用户。

套件
dsh-spend-pill
相容性
待驗證
版本
0.2.1
授權
MIT
最近更新
2026年10月17日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:debug-null/dsh-spend-pill

可选配置

在 profile 的 cordis.patch.yml 里覆盖价格、别名、回退模型或节假日表:

- id: cost-pill
  name: dsh-spend-pill
  config:
    prices:
      my-model:
        peak: { cacheHit: 0.04, cacheMiss: 2, output: 8 }
        offPeak: { cacheHit: 0.02, cacheMiss: 1, output: 4 }
    aliases:
      my-legacy-model: my-model
    fallbackModel: deepseek-flash
    # 整表替换内置日历,日期为北京时间(YYYY-MM-DD)
    holidays: ['2027-01-01', '2027-02-05', '2027-02-06']

prices 与 aliases 是在内置表上的增量覆盖;holidays 是整表替换。配置变化会改变投影的 stateVersion,已缓存的历史费用会按新配置重新计算。