TradingAgents/tradingagents
Surapong Kanoktipsatharporn d73397480e fix: Add proper API key validation for all LLM providers
- Add explicit API key retrieval and validation for OpenRouter, OpenAI, Anthropic, and Google providers
- Pass api_key parameter explicitly to ChatOpenAI, ChatAnthropic, and ChatGoogleGenerativeAI constructors
- Provide helpful error messages with instructions when API keys are missing
- Fixes 401 Authentication Error when using OpenRouter without OPENROUTER_API_KEY set

Previously, ChatOpenAI would default to looking for OPENAI_API_KEY even when using OpenRouter,
causing authentication failures. Now each provider correctly uses its own API key.

Resolves authentication issues across all supported LLM providers.
2025-10-20 16:10:21 +07:00
..
agents feat: Implement comprehensive logging system 2025-10-20 15:47:29 +07:00
dataflows optimized yfin fetching to be much faster 2025-10-06 19:58:01 -07:00
graph fix: Add proper API key validation for all LLM providers 2025-10-20 16:10:21 +07:00
utils feat: Implement comprehensive logging system 2025-10-20 15:47:29 +07:00
default_config.py feat: Implement comprehensive logging system 2025-10-20 15:47:29 +07:00