TradingAgents/tradingagents/agents
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
..
analysts minor fix 2025-09-27 00:04:59 +08:00
managers chore(release): v0.1.0 – initial public release of TradingAgents 2025-06-05 04:27:57 -07:00
researchers chore(release): v0.1.0 – initial public release of TradingAgents 2025-06-05 04:27:57 -07:00
risk_mgmt chore(release): v0.1.0 – initial public release of TradingAgents 2025-06-05 04:27:57 -07:00
trader Fix: Prevent infinite loops, enable reflection, and improve logging 2025-07-03 17:43:40 +05:00
utils feat(llm): add OpenRouter API support with proper headers and API key handling 2025-12-25 15:51:25 +11:00
__init__.py WIP 2025-09-26 16:17:50 +08:00