From e0965a66d66472e3ea796e7691b36c0c4c2a0d10 Mon Sep 17 00:00:00 2001 From: MarkLo127 Date: Mon, 9 Mar 2026 16:03:33 +0800 Subject: [PATCH] fix: Increase LLM max_tokens to 16384 to prevent report truncation. --- tradingagents/graph/trading_graph.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tradingagents/graph/trading_graph.py b/tradingagents/graph/trading_graph.py index fa0954eb..0dd4b3fa 100644 --- a/tradingagents/graph/trading_graph.py +++ b/tradingagents/graph/trading_graph.py @@ -101,7 +101,7 @@ class TradingAgentsXGraph: model=model, base_url=base_url, openai_api_key=api_key, - max_tokens= 8192 # Prevent report truncation + max_tokens= 16384 # Prevent report truncation ) # Initialize LLMs independently