TradingAgents/tradingagents/dataflows
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
..
__init__.py WIP 2025-09-26 16:17:50 +08:00
alpha_vantage.py Add Alpha Vantage API integration as primary data provider 2025-09-26 22:57:50 +08:00
alpha_vantage_common.py added fallbacks for tools 2025-10-03 22:40:09 -07:00
alpha_vantage_fundamentals.py Add Alpha Vantage API integration as primary data provider 2025-09-26 22:57:50 +08:00
alpha_vantage_indicator.py Improve Alpha Vantage indicator column parsing with robust mapping 2025-09-26 23:36:36 +08:00
alpha_vantage_news.py Add Alpha Vantage API integration as primary data provider 2025-09-26 22:57:50 +08:00
alpha_vantage_stock.py Add Alpha Vantage API integration as primary data provider 2025-09-26 22:57:50 +08:00
config.py chore(release): v0.1.0 – initial public release of TradingAgents 2025-06-05 04:27:57 -07:00
google.py WIP 2025-09-26 16:17:50 +08:00
googlenews_utils.py chore(release): v0.1.0 – initial public release of TradingAgents 2025-06-05 04:27:57 -07:00
interface.py added fallbacks for tools 2025-10-03 22:40:09 -07:00
local.py WIP 2025-09-26 16:17:50 +08:00
openai.py Fix #275: Make openai dataflow compatible with Gemini and OpenRouter 2025-11-14 11:38:56 +08:00
reddit_utils.py chore(release): v0.1.0 – initial public release of TradingAgents 2025-06-05 04:27:57 -07:00
stockstats_utils.py Add Alpha Vantage API integration as primary data provider 2025-09-26 22:57:50 +08:00
utils.py chore(release): v0.1.0 – initial public release of TradingAgents 2025-06-05 04:27:57 -07:00
y_finance.py optimized yfin fetching to be much faster 2025-10-06 19:58:01 -07:00
yfin_utils.py chore(release): v0.1.0 – initial public release of TradingAgents 2025-06-05 04:27:57 -07:00