Skip to content

v0.7.2 — canonical model context-window lookup

Choose a tag to compare

@michalekz michalekz released this 30 Jun 13:18
· 100 commits to main since this release

[0.7.2] — 2026-06-29

Patch: replace empirical heuristic with canonical model → context-window lookup.

Fixed

Model Context window
Opus 4.6 / 4.7 / 4.8 1M
Sonnet 4.6 1M
Fable 5 / Mythos 5 / Mythos Preview 1M
Haiku 4.5 200k
Legacy: Opus 4.1 / 4.5, Sonnet 4.5 200k

Previous v0.7.1 used the heuristic "tokensUsed > 200k → assume 1M". That worked but was hacky. v0.7.2 uses official model metadata; heuristic remains as defensive fallback for unknown/future model ids.

  • Date suffix on model ids (claude-haiku-4-5-20251001) is stripped before lookup.
  • Explicit [1m] tag still wins (overrides lookup for legacy models).

Tests

  • 244 → 248 (+4 covering canonical lookup, all generations, date-suffix normalization).