Skip to content

v1.4.1 — hy3 真实窗口误声明导致压不到位

Choose a tag to compare

@github-actions github-actions released this 24 Sep 06:49
· 71 commits to main since this release

修复:hy3 超长对话仍弹 400

根因:catalog 里 hy3 的 contextWindow 填的是 200_000,而它真实上限远小于此。shim 压缩
时按「估算 token 数的一半」设预算(约 100K),DSH 的压力触发也按 200K 算——两侧都以为够用,
于是压缩到 100K 仍远超真实窗口,重试再次溢出。

修法:

  • catalog:hy3 窗口 200_000 → 32_000(maxOutputTokens 128K → 8K)
  • recoverFromContextOverrun 改用模型真实窗口算预算(realWindow * 0.8 - 2048),
    调用处把 catalog 的窗口传进去
  • 新增 context-budget-real-window.test.ts 钉住回归

测试:173 通过。