TradingAgents/tradingagents
Godnight1006 aafc3fbe31 Fix #275: Make openai dataflow compatible with Gemini and OpenRouter
- Replace OpenAI-specific responses.create() API with standard chat.completions.create()
- Update get_stock_news_openai, get_global_news_openai, and get_fundamentals_openai
- Add comprehensive tests for OpenAI, Gemini, and OpenRouter compatibility
- All functions now use standard OpenAI-compatible chat completion API
- Fixes RuntimeError: All vendor implementations failed for method 'get_global_news'
- Fixes RuntimeError: All vendor implementations failed for method 'get_indicators'

The issue was that the openai vendor functions used OpenAI-specific API features
(responses.create with web_search_preview tools) that are not supported by
Gemini or OpenRouter. By switching to the standard chat completions API,
these functions now work with any OpenAI-compatible provider.
2025-11-14 11:38:56 +08:00
..
agents minor fix 2025-09-27 00:04:59 +08:00
dataflows Fix #275: Make openai dataflow compatible with Gemini and OpenRouter 2025-11-14 11:38:56 +08:00
graph WIP 2025-09-26 16:17:50 +08:00
default_config.py Switch default data vendor 2025-09-30 12:43:27 +08:00