From 9e00c8117f3d20616c60e050a68aff85e72fb480 Mon Sep 17 00:00:00 2001 From: Yijia-Xiao Date: Mon, 11 May 2026 02:56:59 +0000 Subject: [PATCH] feat(llm): bump Anthropic catalog to Claude Opus 4.7 frontier Opus 4.7 is the current frontier per platform.claude.com (frontier category, listed first). Demote Opus 4.6 to second deep-tier slot. Polish quick-tier labels to match official wording; effort docstring includes 4.7. --- cli/utils.py | 4 +++- tradingagents/llm_clients/model_catalog.py | 8 ++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/cli/utils.py b/cli/utils.py index bd2d488fa..1fda29203 100644 --- a/cli/utils.py +++ b/cli/utils.py @@ -291,7 +291,9 @@ def ask_openai_reasoning_effort() -> str: def ask_anthropic_effort() -> str | None: """Ask for Anthropic effort level. - Controls token usage and response thoroughness on Claude 4.5+ and 4.6 models. + Controls token usage and response thoroughness on Claude 4.5 / 4.6 / 4.7 + models. The API also accepts "max"; we expose low/medium/high as the + common selection range. """ return questionary.select( "Select Effort Level:", diff --git a/tradingagents/llm_clients/model_catalog.py b/tradingagents/llm_clients/model_catalog.py index 47f9b5e16..b94758f15 100644 --- a/tradingagents/llm_clients/model_catalog.py +++ b/tradingagents/llm_clients/model_catalog.py @@ -47,14 +47,14 @@ MODEL_OPTIONS: ProviderModeOptions = { "anthropic": { "quick": [ ("Claude Sonnet 4.6 - Best speed and intelligence balance", "claude-sonnet-4-6"), - ("Claude Haiku 4.5 - Fast, near-instant responses", "claude-haiku-4-5"), - ("Claude Sonnet 4.5 - Agents and coding", "claude-sonnet-4-5"), + ("Claude Haiku 4.5 - Fastest with near-frontier intelligence", "claude-haiku-4-5"), + ("Claude Sonnet 4.5 - High-performance for agents and coding", "claude-sonnet-4-5"), ], "deep": [ - ("Claude Opus 4.6 - Most intelligent, agents and coding", "claude-opus-4-6"), + ("Claude Opus 4.7 - Latest frontier, long-running agents and coding", "claude-opus-4-7"), + ("Claude Opus 4.6 - Frontier intelligence, agents and coding", "claude-opus-4-6"), ("Claude Opus 4.5 - Premium, max intelligence", "claude-opus-4-5"), ("Claude Sonnet 4.6 - Best speed and intelligence balance", "claude-sonnet-4-6"), - ("Claude Sonnet 4.5 - Agents and coding", "claude-sonnet-4-5"), ], }, "google": {