TradingAgents/tradingagents
Andrew Kaszubski 5443aaa209 feat(llm): add OpenRouter API support with proper headers and API key handling
- Add explicit OPENROUTER_API_KEY environment variable handling
- Add HTTP-Referer and X-Title headers for OpenRouter attribution
- Fix case sensitivity for provider names (ollama now case-insensitive)
- Add embedding fallback to OpenAI when using OpenRouter (since OpenRouter lacks embedding API)
- Add comprehensive test suite (30 tests) for OpenRouter integration
- Update README.md and PROJECT.md with OpenRouter configuration docs
- Add CHANGELOG.md documenting the changes

Patterns borrowed from ~/.claude/lib/genai_validate.py for multi-provider support.

Closes #1

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-25 15:51:25 +11:00
..
agents feat(llm): add OpenRouter API support with proper headers and API key handling 2025-12-25 15:51:25 +11:00
dataflows feat: Add Anthropic LLM support and fix data vendor compatibility 2025-12-25 15:23:28 +11:00
graph feat(llm): add OpenRouter API support with proper headers and API key handling 2025-12-25 15:51:25 +11:00
default_config.py Switch default data vendor 2025-09-30 12:43:27 +08:00