Skip to content

Commit 9192f44

Browse files
recuu-pfegclaude
andcommitted
fix: add claude-code and legacy model names to ENGINE_MODEL_MAP
Setup stores provider ID (claude-code) as engine, not model name. Map claude-code, claude-api, and legacy names to current model IDs. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent bebe7d1 commit 9192f44

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/agent-engine.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,13 @@ const ENGINE_MODEL_MAP: Record<string, string> = {
6565
"claude-opus": "claude-opus-4-6",
6666
"claude-sonnet": "claude-sonnet-4-6",
6767
"claude-haiku": "claude-haiku-4-5-20251001",
68-
// Legacy names
68+
// Provider IDs (stored by Setup as engine type, not model)
69+
"claude-code": "claude-sonnet-4-6",
70+
"claude-api": "claude-sonnet-4-6",
71+
// Legacy model names
6972
"claude-opus-4-20250514": "claude-opus-4-6",
7073
"claude-sonnet-4-20250514": "claude-sonnet-4-6",
74+
"claude-sonnet-4-5-20250514": "claude-sonnet-4-6",
7175
};
7276

7377
const DEFAULT_MODEL = "claude-sonnet-4-6";

0 commit comments

Comments
 (0)