TradingAgents/tradingagents/graph
Charlie Tonneslan a1ee0bd824 Only apply reasoning_effort for o-series OpenAI models
reasoning_effort is only supported by o-series models (o1, o3,
o3-mini, o4-mini). Passing it to gpt-* models causes a 400 error
because those models don't support it on the chat completions
endpoint.

Now we check if the model name starts with 'o' before including
the parameter.

Fixes #403
2026-03-22 12:35:32 -04:00
..
__init__.py chore(release): v0.1.0 – initial public release of TradingAgents 2025-06-05 04:27:57 -07:00
conditional_logic.py refactor: rename risky/safe agents to aggressive/conservative 2026-02-03 22:27:20 +00:00
propagation.py fix: initialize all debate state fields in propagation.py 2026-03-15 17:54:32 +00:00
reflection.py chore(release): v0.1.0 – initial public release of TradingAgents 2025-06-05 04:27:57 -07:00
setup.py refactor: rename risky/safe agents to aggressive/conservative 2026-02-03 22:27:20 +00:00
signal_processing.py chore(release): v0.1.0 – initial public release of TradingAgents 2025-06-05 04:27:57 -07:00
trading_graph.py Only apply reasoning_effort for o-series OpenAI models 2026-03-22 12:35:32 -04:00