121212165/dsh-plugin-price-aware ↗★ 0

dsh-plugin-price-aware

实时监控模型费用、额度并进行预算控制 适合需要精细化控制API调用成本、防止超支的开发者。

套件
dsh-plugin-price-aware
相容性
待驗證
Cordis 依賴範圍
>=4.0.0
版本
0.1.0
授權
MIT
最近更新
2026年9月21日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:121212165/dsh-plugin-price-aware

Configuration

price-aware:
  mode: normal            # economy ¥2 · normal ¥10 · max uncapped · custom below
  sessionCapMajor: 10     # whole currency units; only read when mode: custom
  warnPercent: 75         # this fraction of the cap triggers the ask
  taskAskMajor: 1.5       # one step above this gets an A/B/C quote first
  balanceFloorMajor: 3    # stop before draining the account below this
  holidays: ['2026-10-01'] # Beijing dates billed off-peak
  inputIncludesCache: false
  prices:
    - id: jiyuan/deepseek-v4-flash     # provider-scoped rows beat generic ones
      currency: CNY
      perMillion: { cacheRead: 0.5, uncachedInput: 3, output: 12 }

Relay and reseller endpoints are first-class: your provider's price is not DeepSeek's price, so a prices row is how you say so. Until you do, the plugin refuses to quote in currency.