fix(router): haiku maps to claude-haiku-5-5, not Haiku 4.5

The native haiku alias moved to claude-haiku-5-5, so haiku sessions were unknown to the table and never routed. The 200K window entry was Haiku 4.5's; 5.5 is 1M like the rest.
This commit is contained in:
bchanot committed 2026-10-25 18:35:18 +01:00
1 parent 20c66238fc
commit 2c39524473
3 files changed
+54 -4

No files matched your search

+2 -2
View File
@@ -266,12 +266,12 @@ const TIMEOUT: unique symbol = Symbol('timeout')
const DEFAULT_CONFIG: Config = {
models: {
haiku: 'claude-haiku-4-5-20251001',
haiku: 'claude-haiku-5-5',
sonnet: 'claude-sonnet-5-5',
opus: 'claude-opus-5-5',
fable: 'claude-fable-5-1',
},
windows: { 'claude-haiku-4-5-20251001': 200000 },
windows: {},
// A tier is an ordered alias list: the first one not down is used.
tiers: {
best: ['fable', 'opus', 'sonnet'],