From 333120fbb446125d6e6627969c0fb2adda6a5d6d Mon Sep 17 00:00:00 2001 From: rdyzakya Date: Fri, 26 Dec 2025 10:42:49 +0800 Subject: [PATCH] force whitepaper to search --- tradingagents/dataflows/openai.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tradingagents/dataflows/openai.py b/tradingagents/dataflows/openai.py index c75151e2..6ba69361 100644 --- a/tradingagents/dataflows/openai.py +++ b/tradingagents/dataflows/openai.py @@ -166,6 +166,7 @@ def get_whitepaper_openai(symbol): "search_context_size": "low", } ], + tool_choice={"type": "web_search_preview"}, temperature=1, max_output_tokens=4096, top_p=1,