AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
fix(backend): default copilot sonnet to 4.6 (#12799)
Nicholas Tindlefffbe0aad822
diff --git a/autogpt_platform/backend/backend/copilot/baseline/transcript_integration_test.py b/autogpt_platform/backend/backend/copilot/baseline/transcript_integration_test.pyindex 624abb9acd..baeb3e3648 100644--- a/autogpt_platform/backend/backend/copilot/baseline/transcript_integration_test.py+++ b/autogpt_platform/backend/backend/copilot/baseline/transcript_integration_test.py@@ -68,7 +68,7 @@ class TestResolveBaselineModel:assert _resolve_baseline_model(None) == config.modeldef test_default_and_fast_models_same(self):- """SDK 0.1.58: both tiers now use the same model (anthropic/claude-sonnet-4)."""+ """SDK defaults currently keep standard and fast on Sonnet 4.6."""assert config.model == config.fast_modeldiff --git a/autogpt_platform/backend/backend/copilot/config.py b/autogpt_platform/backend/backend/copilot/config.pyindex d5418bf872..8792717cad 100644--- a/autogpt_platform/backend/backend/copilot/config.py+++ b/autogpt_platform/backend/backend/copilot/config.py@@ -29,13 +29,13 @@ class ChatConfig(BaseSettings):# OpenAI API Configurationmodel: str = Field(- default="anthropic/claude-sonnet-4",+ default="anthropic/claude-sonnet-4-6",description="Default model for extended thinking mode. "- "Changed from Opus ($15/$75 per M) to Sonnet ($3/$15 per M) — "- "5x cheaper. Override via CHAT_MODEL env var for Opus.",+ "Uses Sonnet 4.6 as the balanced default. "+ "Override via CHAT_MODEL env var if you want a different default.",)fast_model: str = Field(- default="anthropic/claude-sonnet-4",+ default="anthropic/claude-sonnet-4-6",description="Model for fast mode (baseline path). Should be faster/cheaper than the default model.",)title_model: str = Field(@@ -156,7 +156,7 @@ class ChatConfig(BaseSettings):"history compression. Falls back to compression when unavailable.",)claude_agent_fallback_model: str = Field(- default="claude-sonnet-4-20250514",+ default="claude-sonnet-4-6",description="Fallback model when the primary model is unavailable (e.g. 529 ""overloaded). The SDK automatically retries with this cheaper model.",)diff --git a/autogpt_platform/backend/backend/copilot/sdk/service_helpers_test.py b/autogpt_platform/backend/backend/copilot/sdk/service_helpers_test.pyindex 470858dc55..7c5e429697 100644--- a/autogpt_platform/backend/backend/copilot/sdk/service_helpers_test.py+++ b/autogpt_platform/backend/backend/copilot/sdk/service_helpers_test.py@@ -392,7 +392,9 @@ class TestNormalizeModelName:def test_sonnet_openrouter_model(self):"""Sonnet model as stored in config (OpenRouter-prefixed) strips cleanly."""- assert _normalize_model_name("anthropic/claude-sonnet-4") == "claude-sonnet-4"+ assert (+ _normalize_model_name("anthropic/claude-sonnet-4-6") == "claude-sonnet-4-6"+ )# ---------------------------------------------------------------------------