2.4 KiB
2.4 KiB
Work Log - OpenRouter Model Addition
Date
2026-02-08
Task
Add top 10 OpenRouter models to TradingAgents CLI model selection
Changes Made
1. Modified Files
- cli/utils.py: Added OpenRouter top 10 models to both shallow and deep thinking agent options
- tests/test_cli_utils.py: Created comprehensive test suite for CLI utilities
2. New Files
- tests/init.py: Package initialization
- tests/test_cli_utils.py: Test coverage for OpenRouter model configuration
3. Model Additions (Top 10 from OpenRouter.ai Rankings)
Added the following models to both SHALLOW_AGENT_OPTIONS and DEEP_AGENT_OPTIONS:
- Kimi K2.5 0127 (#1 ranked) -
moonshotai/kimi-k2.5-0127 - Claude Opus 4.5 -
anthropic/claude-4.5-opus-20251124 - Claude Sonnet 4.5 -
anthropic/claude-4.5-sonnet-20250929 - Gemini 3 Flash Preview -
google/gemini-3-flash-preview-20251217 - Gemini 2.5 Flash -
google/gemini-2.5-flash - Gemini 2.5 Flash Lite -
google/gemini-2.5-flash-lite - Deepseek V3.2 -
deepseek/deepseek-v3.2-20251201 - Grok 4.1 Fast -
x-ai/grok-4.1-fast - Grok Code Fast 1 -
x-ai/grok-code-fast-1 - Minimax M2.1 -
minimax/minimax-m2.1
Plus preserved existing free models:
- NVIDIA Nemotron 3 Nano 30B (free) -
nvidia/nemotron-3-nano-30b-a3b:free - Z.AI GLM 4.5 Air (free) -
z-ai/glm-4.5-air:free
4. Refactoring
- Moved
SHALLOW_AGENT_OPTIONSandDEEP_AGENT_OPTIONSfrom function-local scope to module-level constants - This enables better testability and reusability
5. Test Coverage
Created comprehensive tests covering:
- Model count verification (12+ models)
- Model format validation (provider/model structure)
- Top models inclusion check
- Free model preservation
- Duplicate detection
- Cross-list consistency
- All providers have model entries
Git Workflow
- Created branch:
feature/add-openrouter-top-models - Committed changes:
f35feaf - Pushed to fork: https://github.com/treasuraid/TradingAgents
- Created PR: https://github.com/TauricResearch/TradingAgents/pull/340
PR Details
- Title: feat: Add top 10 OpenRouter models to CLI model selection
- Branch: feature/add-openrouter-top-models
- Target: TauricResearch/TradingAgents main
Notes
- Total files changed: 3
- Insertions: +285 lines
- Deletions: -90 lines
- Backward compatible: Yes
- All existing free models preserved