Skip to content

Release v1.0.3 · 峰谷时段修正

Latest

Choose a tag to compare

@AssassinVIX AssassinVIX released this 29 Oct 13:46
· 3 commits to main since this release

本次更新

Fairy 的用量气泡之前一直显示「峰」,晚上也显示「距换价 3 小时」。查下来不是算错,是规则过期:插件还用着 2025 年那套「每日 00:30–08:30 错峰」,而 DeepSeek 早在 2026-08-17 就换成了峰谷定价,旧规则已于 2025-09-05 取消。

修复

  • 峰谷时段按现行规则判定:北京时间周一至周五 09:00–12:00、14:00–18:00 为高峰;其余时段——包括周末与中国法定节假日全天——都是空闲时段,价格是高峰的一半。内置 2026 年法定节假日表(元旦 / 春节 / 清明 / 劳动节 / 端午 / 中秋 / 国庆),节假日整天不计高峰;跨周末、跨长假的下次换价时间也一起算准了。
  • 花费按每笔请求发生那一刻的价档结算:之前是拿「读取用量那一刻」的价档去套当天全部 token,导致白天高峰跑的用量被夜里的半价折算,今日花费偏低。现在按每条用量事件自己的时间戳取高峰/空闲价。
  • 换价瞬间自动刷新:气泡里的倒计时归零时自动重新拉一次数据,峰谷标签、倒计时和花费立刻翻面,不用手点。

升级

git pull
plugin_manager install_bundle target=<克隆目录>

或重新装一遍 npm 包;index.js 在宿主侧,换完要重载插件或重启 DSH,只刷新页面不生效。


English TL;DR — The usage bubble used the retired 2025 off-peak window (00:30–08:30) instead of the current peak/off-peak schedule. Peak is now Mon–Fri 09:00–12:00 and 14:00–18:00 Beijing time; weekends and Chinese public holidays are off-peak all day at half price. Spend is now priced per request by the tier in effect at that request's own timestamp, and the bubble re-fetches itself when its countdown hits zero.

Full changelog: v1.0.2...v1.0.3