GuoFengyu110429/dsh-high-fee-alert ↗★ 0
dsh-high-fee-alert
DeepSeek Harness 高峰资费提醒插件,启动时自动抓取最新定价并获取北京时间,在高峰时段弹出居中提醒窗口。
AI 分析
核心用途是避免在 API 资费高峰期产生高额开销。适合对 API 消耗成本敏感、需要合理规划调用时间的 DSH 用户。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:GuoFengyu110429/dsh-high-fee-alert说明文档
阅读完整 README ↗配置
全部配置项均可在 profile 的 cordis.patch.yml 中按行 id 覆盖
(dsh-high-fee-alert),均有内置默认值:
| 配置项 | 默认值 | 说明 |
|---|---|---|
pricingUrl | https://api-docs.deepseek.com/quick_start/pricing | 定价文档地址 |
ntpHost | ntp.ntsc.ac.cn | NTP 服务器 |
ntpPort | 123 | NTP 端口 |
ntpTimeoutMs | 2500 | NTP 超时 |
fetchTimeoutMs | 8000 | 定价文档抓取超时 |
pricingRefetchMs | 21600000 | 定价刷新间隔(6h) |
exitCode | 0 | 「好的」退出码 |
peakWindows | [] | 显式高峰窗口(北京时间 HH:mm-HH:mm 数组,覆盖文档解析) |
weekdaysOnly | null | 高峰是否仅限周一至周五(布尔;缺省跟随文档/回退) |
offPeakStart | '' | 旧语义:每日低谷开始(北京时间 HH:mm,反推高峰) |
offPeakEnd | '' | 旧语义:每日低谷结束(北京时间 HH:mm) |
示例(固定工作日 09:00–18:00 为高峰):
- id: dsh-high-fee-alert
config:
peakWindows:
- '09:00-12:00'
- '14:00-18:00'
weekdaysOnly: true