TradingAgents/tests
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 Fix #275: Make openai dataflow compatible with Gemini and OpenRouter 2025-11-14 11:38:56 +08:00
test_openai_dataflow.py Fix #275: Make openai dataflow compatible with Gemini and OpenRouter 2025-11-14 11:38:56 +08:00