future007s/dsh-peak-indicator0

dsh-peak-indicator

DeepSeek API 高峰/闲时计价标记插件,在 DSH Web 会话头部实时显示当前是否处于半价闲时时段。

AI 分析

核心用途是帮助用户避开高峰期以节省 API 费用。适合关注 DeepSeek 官方峰谷计价、希望在闲时进行重度任务的用户。

包名
dsh-peak-indicator
版本
0.1.10
许可证
MIT
最近更新
2026年8月16日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:future007s/dsh-peak-indicator

配置(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()