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(copilot): repoint stale advanced-tier Opus defaults to claude-opus-5 (#14819)
Nicholas Tindle57b1d176233d
diff --git a/autogpt_platform/backend/backend/copilot/baseline/transcript_integration_test.py b/autogpt_platform/backend/backend/copilot/baseline/transcript_integration_test.pyindex ce174f7a51..f8770107ef 100644--- a/autogpt_platform/backend/backend/copilot/baseline/transcript_integration_test.py+++ b/autogpt_platform/backend/backend/copilot/baseline/transcript_integration_test.py@@ -119,7 +119,7 @@ class TestResolveBaselineModel:assert (ChatConfig.model_fields["fast_advanced_model"].default- == "anthropic/claude-opus-4-8"+ == "anthropic/claude-opus-5")def test_standard_and_advanced_cells_differ_on_fast(self):diff --git a/autogpt_platform/backend/backend/copilot/config.py b/autogpt_platform/backend/backend/copilot/config.pyindex 65ca85276b..dadfd904b5 100644--- a/autogpt_platform/backend/backend/copilot/config.py+++ b/autogpt_platform/backend/backend/copilot/config.py@@ -53,7 +53,7 @@ _DEFAULT_SIMULATION_MODEL = "google/gemini-2.5-flash-lite"# at the cloud default" so it can rewrite to ``fast_standard_model`` under# local transport (otherwise an "advanced" tier request 404s against# Ollama's OpenAI shim — no ``anthropic/`` slugs there).-_DEFAULT_FAST_ADVANCED_MODEL = "anthropic/claude-opus-4-8"+_DEFAULT_FAST_ADVANCED_MODEL = "anthropic/claude-opus-5"TransportName = Literal["subscription", "openrouter", "direct_anthropic", "local"]CopilotLlmAuthProvider = Literal["platform", "codex", "microsoft_365_copilot"]@@ -1130,7 +1130,7 @@ class ChatConfig(BaseSettings):when the transport asks for it.The cloud defaults are ``openai/gpt-4o-mini`` / ``google/gemini-...``- / ``anthropic/claude-opus-4-8`` — fine on OpenRouter, instant 404+ / ``anthropic/claude-opus-5`` — fine on OpenRouter, instant 404on a local backend (no provider slugs there). Operators on thelocal transport otherwise have to repeat the same Ollama slugacross half a dozen ``CHAT_*_MODEL`` envs. Only fires when the@@ -1139,7 +1139,7 @@ class ChatConfig(BaseSettings):Covers ``title_model`` + ``simulation_model`` (aux call sites)AND ``fast_advanced_model`` (the "advanced" baseline tier);without the advanced derivation, a user clicking the advanced- toggle in the UI sends ``anthropic/claude-opus-4-8`` to Ollama+ toggle in the UI sends ``anthropic/claude-opus-5`` to Ollamaand gets a model-not-found 404. The boot-time vendor validatoris skipped under local transport so this misconfig wouldn'tsurface until the first advanced-tier turn.diff --git a/autogpt_platform/backend/backend/copilot/config_test.py b/autogpt_platform/backend/backend/copilot/config_test.pyindex 576f4cf33a..f1d8e55fc7 100644--- a/autogpt_platform/backend/backend/copilot/config_test.py+++ b/autogpt_platform/backend/backend/copilot/config_test.py@@ -601,7 +601,7 @@ class TestLocalAuxModels:)assert cfg.title_model == "anthropic/claude-haiku-4-5"assert cfg.simulation_model == "google/gemini-2.5-flash-lite"- assert cfg.fast_advanced_model == "anthropic/claude-opus-4-8"+ assert cfg.fast_advanced_model == "anthropic/claude-opus-5"class TestLocalRequirementsValidator:diff --git a/autogpt_platform/backend/backend/copilot/opus_5_test.py b/autogpt_platform/backend/backend/copilot/opus_5_test.pyindex c60c65921e..9692113af6 100644--- a/autogpt_platform/backend/backend/copilot/opus_5_test.py+++ b/autogpt_platform/backend/backend/copilot/opus_5_test.py@@ -40,7 +40,7 @@ async def test_thinking_advanced_routes_opus_5_without_catalog_refusal(assert "refused" not in caplog.textexpected = "anthropic/claude-opus-5" if use_openrouter else "claude-opus-5"assert normalize_model_for_transport(route.model, cfg) == expected- assert cfg.fast_advanced_model == "anthropic/claude-opus-4-8"+ assert cfg.fast_advanced_model == "anthropic/claude-opus-5"assert cfg.thinking_standard_model == "anthropic/claude-sonnet-5"diff --git a/autogpt_platform/backend/backend/copilot/tools/agent_generator/fixer.py b/autogpt_platform/backend/backend/copilot/tools/agent_generator/fixer.pyindex d84a426720..94caa4e444 100644--- a/autogpt_platform/backend/backend/copilot/tools/agent_generator/fixer.py+++ b/autogpt_platform/backend/backend/copilot/tools/agent_generator/fixer.py@@ -34,9 +34,9 @@ _GMAIL_SEND_BLOCK_ID = "6c27abc2-e51d-499e-a85f-5a0041ba94f0"_TEXT_REPLACE_BLOCK_ID = "7e7c87ab-3469-4bcc-9abe-67705091b713"# Default OrchestratorBlock model/mode — kept in sync with ChatConfig.model.-# ChatConfig uses the OpenRouter format ("anthropic/claude-opus-4.6");+# ChatConfig uses the OpenRouter format ("anthropic/claude-opus-5");# OrchestratorBlock uses the native Anthropic model name.-ORCHESTRATOR_DEFAULT_MODEL = "claude-opus-4-6"+ORCHESTRATOR_DEFAULT_MODEL = "claude-opus-5"ORCHESTRATOR_DEFAULT_EXECUTION_MODE = "extended_thinking"# Defaults applied to OrchestratorBlock nodes by the fixer.@@ -866,7 +866,7 @@ class AgentFixer:Returns:The fixed agent dictionary"""- generic_allowed_models = {"gpt-4o", "claude-opus-4-6"}+ generic_allowed_models = {"gpt-4o", "claude-opus-4-6", "claude-opus-5"}# Create a mapping of block_id to block for quick lookupblock_map = {block.get("id"): block for block in blocks}@@ -1665,7 +1665,7 @@ class AgentFixer:3. ``retry`` defaults to ``3``4. ``multiple_tool_calls`` defaults to ``False``5. ``execution_mode`` defaults to ``"extended_thinking"``- 6. ``model`` defaults to ``"claude-opus-4-6"``+ 6. ``model`` defaults to ``"claude-opus-5"``Args:agent: The agent dictionary to fix@@ -1765,7 +1765,7 @@ class AgentFixer:agent = self.fix_getcurrentdate_offset(agent)# Apply OrchestratorBlock defaults BEFORE fix_ai_model_parameter so that- # the orchestrator-specific model (claude-opus-4-6) is set first and+ # the orchestrator-specific model (claude-opus-5) is set first and# fix_ai_model_parameter sees it as a valid allowed model instead of# overwriting it with the generic default (gpt-4o).agent = self.fix_orchestrator_blocks(agent)diff --git a/autogpt_platform/backend/test/agent_generator/test_orchestrator.py b/autogpt_platform/backend/test/agent_generator/test_orchestrator.pyindex 0096b222ef..6f9bf8ae0c 100644--- a/autogpt_platform/backend/test/agent_generator/test_orchestrator.py+++ b/autogpt_platform/backend/test/agent_generator/test_orchestrator.py@@ -141,7 +141,7 @@ class TestFixOrchestratorBlocks:assert defaults["retry"] == 3assert defaults["multiple_tool_calls"] is Falseassert defaults["execution_mode"] == "extended_thinking"- assert defaults["model"] == "claude-opus-4-6"+ assert defaults["model"] == "claude-opus-5"assert len(fixer.fixes_applied) == 6def test_preserves_existing_values(self):@@ -196,7 +196,7 @@ class TestFixOrchestratorBlocks:assert defaults["retry"] == 3 # filledassert defaults["multiple_tool_calls"] is False # filledassert defaults["execution_mode"] == "extended_thinking" # filled- assert defaults["model"] == "claude-opus-4-6" # filled+ assert defaults["model"] == "claude-opus-5" # filledassert len(fixer.fixes_applied) == 5def test_skips_non_sdm_nodes(self):@@ -271,7 +271,7 @@ class TestFixOrchestratorBlocks:assert defaults["retry"] == 3 # keptassert defaults["multiple_tool_calls"] is False # keptassert defaults["execution_mode"] == "extended_thinking" # filled- assert defaults["model"] == "claude-opus-4-6" # filled+ assert defaults["model"] == "claude-opus-5" # filledassert len(fixer.fixes_applied) == 4def test_multiple_sdm_nodes(self):