* feat: Update Claude model references from v3 to v4 - Update model configurations from claude-3-opus to claude-4-opus - Update model configurations from claude-3-sonnet to claude-4-sonnet - Maintain backward compatibility through existing aliases (opus, sonnet, claude) - Update provider registry preferred models list - Update all test cases and assertions to reflect new model names - Update documentation and examples consistently across all files - Add Claude 4 model support while preserving existing functionality Files modified: 15 (config, docs, providers, tests, tools) Pattern: Systematic claude-3-* → claude-4-* model reference migration 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * PR feedback: changed anthropic/claude-4-opus -> anthropic/claude-opus-4 and anthropic/claude-4-haiku -> anthropic/claude-3.5-haiku * changed anthropic/claude-4-sonnet -> anthropic/claude-sonnet-4 * PR feedback removed specific model from test mock * PR feedback removed base.py --------- Co-authored-by: Omry Nachman <omry@wix.com> Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -41,9 +41,9 @@ The server uses `conf/custom_models.json` to map convenient aliases to both Open
|
||||
|
||||
| Alias | Maps to OpenRouter Model |
|
||||
|-------|-------------------------|
|
||||
| `opus` | `anthropic/claude-3-opus` |
|
||||
| `sonnet`, `claude` | `anthropic/claude-3-sonnet` |
|
||||
| `haiku` | `anthropic/claude-3-haiku` |
|
||||
| `opus` | `anthropic/claude-opus-4` |
|
||||
| `sonnet`, `claude` | `anthropic/claude-sonnet-4` |
|
||||
| `haiku` | `anthropic/claude-3.5-haiku` |
|
||||
| `gpt4o`, `4o` | `openai/gpt-4o` |
|
||||
| `gpt4o-mini`, `4o-mini` | `openai/gpt-4o-mini` |
|
||||
| `pro`, `gemini` | `google/gemini-2.5-pro` |
|
||||
@@ -151,8 +151,8 @@ CUSTOM_MODEL_NAME=your-loaded-model
|
||||
**Using model aliases (from conf/custom_models.json):**
|
||||
```
|
||||
# OpenRouter models:
|
||||
"Use opus for deep analysis" # → anthropic/claude-3-opus
|
||||
"Use sonnet to review this code" # → anthropic/claude-3-sonnet
|
||||
"Use opus for deep analysis" # → anthropic/claude-opus-4
|
||||
"Use sonnet to review this code" # → anthropic/claude-sonnet-4
|
||||
"Use pro via zen to analyze this" # → google/gemini-2.5-pro
|
||||
"Use gpt4o via zen to analyze this" # → openai/gpt-4o
|
||||
"Use mistral via zen to optimize" # → mistral/mistral-large
|
||||
@@ -165,7 +165,7 @@ CUSTOM_MODEL_NAME=your-loaded-model
|
||||
**Using full model names:**
|
||||
```
|
||||
# OpenRouter models:
|
||||
"Use anthropic/claude-3-opus via zen for deep analysis"
|
||||
"Use anthropic/claude-opus-4 via zen for deep analysis"
|
||||
"Use openai/gpt-4o via zen to debug this"
|
||||
"Use deepseek/deepseek-coder via zen to generate code"
|
||||
|
||||
@@ -249,7 +249,7 @@ Edit `conf/custom_models.json` to add new models. The configuration supports bot
|
||||
|
||||
Popular models available through OpenRouter:
|
||||
- **GPT-4** - OpenAI's most capable model
|
||||
- **Claude 3** - Anthropic's models (Opus, Sonnet, Haiku)
|
||||
- **Claude 4** - Anthropic's models (Opus, Sonnet, Haiku)
|
||||
- **Mistral** - Including Mistral Large
|
||||
- **Llama 3** - Meta's open models
|
||||
- Many more at [openrouter.ai/models](https://openrouter.ai/models)
|
||||
@@ -258,4 +258,4 @@ Popular models available through OpenRouter:
|
||||
|
||||
- **"Model not found"**: Check exact model name at openrouter.ai/models
|
||||
- **"Insufficient credits"**: Add credits to your OpenRouter account
|
||||
- **"Model not available"**: Check your OpenRouter dashboard for model access permissions
|
||||
- **"Model not available"**: Check your OpenRouter dashboard for model access permissions
|
||||
|
||||
Reference in New Issue
Block a user