68 lines
2.4 KiB
Markdown
68 lines
2.4 KiB
Markdown
# 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:
|
|
|
|
1. **Kimi K2.5 0127** (#1 ranked) - `moonshotai/kimi-k2.5-0127`
|
|
2. **Claude Opus 4.5** - `anthropic/claude-4.5-opus-20251124`
|
|
3. **Claude Sonnet 4.5** - `anthropic/claude-4.5-sonnet-20250929`
|
|
4. **Gemini 3 Flash Preview** - `google/gemini-3-flash-preview-20251217`
|
|
5. **Gemini 2.5 Flash** - `google/gemini-2.5-flash`
|
|
6. **Gemini 2.5 Flash Lite** - `google/gemini-2.5-flash-lite`
|
|
7. **Deepseek V3.2** - `deepseek/deepseek-v3.2-20251201`
|
|
8. **Grok 4.1 Fast** - `x-ai/grok-4.1-fast`
|
|
9. **Grok Code Fast 1** - `x-ai/grok-code-fast-1`
|
|
10. **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_OPTIONS` and `DEEP_AGENT_OPTIONS` from 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
|
|
1. Created branch: `feature/add-openrouter-top-models`
|
|
2. Committed changes: `f35feaf`
|
|
3. Pushed to fork: https://github.com/treasuraid/TradingAgents
|
|
4. 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
|