future007s/dsh-peak-indicator ↗★ 0
dsh-peak-indicator
DeepSeek API 高峰/闲时(峰谷)计价标记 for DSH Web: 会话头部显示当前处于高峰还是闲时(半价)时段
AI 分析
核心用途是帮助用户避开高峰期以节省 API 费用。适合关注 DeepSeek 官方峰谷计价、希望在闲时进行重度任务的用户。
インストール
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:future007s/dsh-peak-indicatorドキュメント
README 全文を読む ↗配置(host 侧,可选)
默认无需任何配置。如需调整时段(政策变更时),可在 patch 条目中传:
- id: peak-indicator
name: 'dsh-peak-indicator'
config:
peakWindows: [[9, 12], [14, 18]]
beijingOffsetMinutes: 480
offPeakDiscount: 0.5
policyEffectiveDate: '2026-08-17T00:00:00+08:00'
注意:浏览器端的徽标计算使用与官方公告一致的内置时段(北京 09:00–12:00、14:00–18:00),
host 配置主要用于程序化调用 ctx.peakIndicator.current()。