Skip to content

Commit 44177d0

Browse files
committed
Use sonnet 4.6 as default in anthropic
Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
1 parent 369503f commit 44177d0

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

pkg/config/auto.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func (e *AutoModelFallbackError) Error() string {
5454

5555
var DefaultModels = map[string]string{
5656
"openai": "gpt-5-mini",
57-
"anthropic": "claude-sonnet-4-5",
57+
"anthropic": "claude-sonnet-4-6",
5858
"google": "gemini-2.5-flash",
5959
"dmr": "ai/qwen3:latest",
6060
"mistral": "mistral-small-latest",

pkg/config/auto_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ func TestAutoModelConfig(t *testing.T) {
168168
"ANTHROPIC_API_KEY": "test-key",
169169
},
170170
expectedProvider: "anthropic",
171-
expectedModel: "claude-sonnet-4-5",
171+
expectedModel: "claude-sonnet-4-6",
172172
expectedMaxTokens: 32000,
173173
},
174174
{
@@ -210,7 +210,7 @@ func TestAutoModelConfig(t *testing.T) {
210210
envVars: map[string]string{},
211211
gateway: "gateway:8080",
212212
expectedProvider: "anthropic",
213-
expectedModel: "claude-sonnet-4-5",
213+
expectedModel: "claude-sonnet-4-6",
214214
expectedMaxTokens: 32000,
215215
},
216216
}
@@ -288,7 +288,7 @@ func TestDefaultModels(t *testing.T) {
288288

289289
// Test specific model values
290290
assert.Equal(t, "gpt-5-mini", DefaultModels["openai"])
291-
assert.Equal(t, "claude-sonnet-4-5", DefaultModels["anthropic"])
291+
assert.Equal(t, "claude-sonnet-4-6", DefaultModels["anthropic"])
292292
assert.Equal(t, "gemini-2.5-flash", DefaultModels["google"])
293293
assert.Equal(t, "ai/qwen3:latest", DefaultModels["dmr"])
294294
assert.Equal(t, "mistral-small-latest", DefaultModels["mistral"])

0 commit comments

Comments
 (0)