Repository navigation
Commit ada8a9a
fix(providers): give Claude 4.6/4.7 their 1M context windows
ANTHROPIC_MODEL_CONTEXT_WINDOWS omitted claude-opus-4-7, claude-opus-4-6, and
claude-sonnet-4-6 even though all three ship in ANTHROPIC_MODELS. Without a
window those models advertise max_input_tokens: null, shouldMarkOneMillion()
rejects them on its typeof guard, and buildAnthropicModelInfos never emits the
[1m] picker row — so Claude Code accounts them at its 200k default instead of
the 1M Anthropic documents for all three.
Also guard the whole roster: every model in the anthropic provider's list must
carry a context window, so the next model addition cannot repeat the omission.
The loop was driven red against the unfixed map before landing.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01MqLtuGeb1Mb2izcYRZXgT41 parent e1fc0f2 commit ada8a9a
2 files changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
217 | | - | |
| 217 | + | |
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
607 | 607 | | |
608 | 608 | | |
609 | 609 | | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
610 | 617 | | |
611 | 618 | | |
612 | 619 | | |
| |||
0 commit comments