feat: prioritize claude-opus-4-6 over claude-opus-4-5 in anthropic fallback chains

Add claude-opus-4-6 as the first anthropic provider entry before
claude-opus-4-5 across all agent and category fallback chains.
Also add high variant mapping for think-mode switcher.
This commit is contained in:
YeonGyu-Kim
2026-02-06 03:31:55 +09:00
parent 2224183b5c
commit 11d0005eb5
9 changed files with 117 additions and 79 deletions
+8
View File
@@ -141,6 +141,14 @@ describe("think-mode switcher", () => {
expect(variant).toBe("claude-opus-4-5-high")
})
it("should handle claude-opus-4-6 high variant", () => {
// given a Claude Opus 4.6 model ID
const variant = getHighVariant("claude-opus-4-6")
// then should return high variant
expect(variant).toBe("claude-opus-4-6-high")
})
it("should handle dots in GPT version numbers", () => {
// given a GPT model ID with dot format (gpt-5.2)
const variant = getHighVariant("gpt-5.2")
+1
View File
@@ -88,6 +88,7 @@ function resolveProvider(providerID: string, modelID: string): string {
const HIGH_VARIANT_MAP: Record<string, string> = {
// Claude
"claude-sonnet-4-5": "claude-sonnet-4-5-high",
"claude-opus-4-6": "claude-opus-4-6-high",
"claude-opus-4-5": "claude-opus-4-5-high",
// Gemini
"gemini-3-pro": "gemini-3-pro-high",