TradingAgents: Multi-Agents LLM Financial Trading Framework
chore: update model lists and defaults to GPT-5.4 family
Yijia-Xiaoe75d17bc5198
diff --git a/README.md b/README.mdindex 4c4856d1c..41a124c70 100644--- a/README.md+++ b/README.md@@ -189,8 +189,8 @@ from tradingagents.default_config import DEFAULT_CONFIGconfig = DEFAULT_CONFIG.copy()config["llm_provider"] = "openai" # openai, google, anthropic, xai, openrouter, ollama-config["deep_think_llm"] = "gpt-5.2" # Model for complex reasoning-config["quick_think_llm"] = "gpt-5-mini" # Model for quick tasks+config["deep_think_llm"] = "gpt-5.4" # Model for complex reasoning+config["quick_think_llm"] = "gpt-5.4-mini" # Model for quick tasksconfig["max_debate_rounds"] = 2ta = TradingAgentsGraph(debug=True, config=config)diff --git a/main.py b/main.pyindex 26cab658b..c94fde323 100644--- a/main.py+++ b/main.py@@ -8,8 +8,8 @@ load_dotenv()# Create a custom configconfig = DEFAULT_CONFIG.copy()-config["deep_think_llm"] = "gpt-5-mini" # Use a different model-config["quick_think_llm"] = "gpt-5-mini" # Use a different model+config["deep_think_llm"] = "gpt-5.4-mini" # Use a different model+config["quick_think_llm"] = "gpt-5.4-mini" # Use a different modelconfig["max_debate_rounds"] = 1 # Increase debate rounds# Configure data vendors (default uses yfinance, no extra API keys needed)diff --git a/tradingagents/default_config.py b/tradingagents/default_config.pyindex 31952c00d..26a4e4d28 100644--- a/tradingagents/default_config.py+++ b/tradingagents/default_config.py@@ -9,8 +9,8 @@ DEFAULT_CONFIG = {),# LLM settings"llm_provider": "openai",- "deep_think_llm": "gpt-5.2",- "quick_think_llm": "gpt-5-mini",+ "deep_think_llm": "gpt-5.4",+ "quick_think_llm": "gpt-5.4-mini","backend_url": "https://api.openai.com/v1",# Provider-specific thinking configuration"google_thinking_level": None, # "high", "minimal", etc.diff --git a/tradingagents/llm_clients/model_catalog.py b/tradingagents/llm_clients/model_catalog.pyindex f147c5e12..91e1659ce 100644--- a/tradingagents/llm_clients/model_catalog.py+++ b/tradingagents/llm_clients/model_catalog.py@@ -11,15 +11,15 @@ ProviderModeOptions = Dict[str, Dict[str, List[ModelOption]]]MODEL_OPTIONS: ProviderModeOptions = {"openai": {"quick": [- ("GPT-5 Mini - Balanced speed, cost, and capability", "gpt-5-mini"),- ("GPT-5 Nano - High-throughput, simple tasks", "gpt-5-nano"),+ ("GPT-5.4 Mini - Fast, strong coding and tool use", "gpt-5.4-mini"),+ ("GPT-5.4 Nano - Cheapest, high-volume tasks", "gpt-5.4-nano"),("GPT-5.4 - Latest frontier, 1M context", "gpt-5.4"),("GPT-4.1 - Smartest non-reasoning model", "gpt-4.1"),],"deep": [("GPT-5.4 - Latest frontier, 1M context", "gpt-5.4"),("GPT-5.2 - Strong reasoning, cost-effective", "gpt-5.2"),- ("GPT-5 Mini - Balanced speed, cost, and capability", "gpt-5-mini"),+ ("GPT-5.4 Mini - Fast, strong coding and tool use", "gpt-5.4-mini"),("GPT-5.4 Pro - Most capable, expensive ($30/$180 per 1M tokens)", "gpt-5.4-pro"),],},