feat: Update Claude models to Opus 4.1 and Sonnet 4.1
This commit updates all references to Claude Opus 4 and Sonnet 4 to their newer 4.1 versions throughout the codebase. The changes include: - Updating model names in `conf/custom_models.json` and `providers/dial.py`. - Updating aliases and descriptions to match the new model versions. - Updating `.env.example` to reflect the new model names. - Updating all relevant test suites to use the new model names and ensure all tests pass.
This commit is contained in:
22
.env.example
22
.env.example
@@ -37,7 +37,7 @@ OPENROUTER_API_KEY=your_openrouter_api_key_here
|
||||
|
||||
# Optional: Default model to use
|
||||
# Options: 'auto' (Claude picks best model), 'pro', 'flash', 'o3', 'o3-mini', 'o4-mini', 'o4-mini-high',
|
||||
# 'gpt-5', 'gpt-5-mini', 'grok', 'opus-4', 'sonnet-4', or any DIAL model if DIAL is configured
|
||||
# 'gpt-5', 'gpt-5-mini', 'grok', 'opus-4.1', 'sonnet-4.1', or any DIAL model if DIAL is configured
|
||||
# When set to 'auto', Claude will select the best model for each task
|
||||
# Defaults to 'auto' if not specified
|
||||
DEFAULT_MODEL=auto
|
||||
@@ -87,14 +87,14 @@ DEFAULT_THINKING_MODE_THINKDEEP=high
|
||||
# - o4-mini-2025-04-16 (200K context, latest O4 mini)
|
||||
# - o3 (shorthand for o3-2025-04-16)
|
||||
# - o4-mini (shorthand for o4-mini-2025-04-16)
|
||||
# - anthropic.claude-sonnet-4-20250514-v1:0 (200K context, Claude 4 Sonnet)
|
||||
# - anthropic.claude-sonnet-4-20250514-v1:0-with-thinking (200K context, Claude 4 Sonnet with thinking mode)
|
||||
# - anthropic.claude-opus-4-20250514-v1:0 (200K context, Claude 4 Opus)
|
||||
# - anthropic.claude-opus-4-20250514-v1:0-with-thinking (200K context, Claude 4 Opus with thinking mode)
|
||||
# - sonnet-4 (shorthand for Claude 4 Sonnet)
|
||||
# - sonnet-4-thinking (shorthand for Claude 4 Sonnet with thinking)
|
||||
# - opus-4 (shorthand for Claude 4 Opus)
|
||||
# - opus-4-thinking (shorthand for Claude 4 Opus with thinking)
|
||||
# - anthropic.claude-sonnet-4.1-20250805-v1:0 (200K context, Claude 4.1 Sonnet)
|
||||
# - anthropic.claude-sonnet-4.1-20250805-v1:0-with-thinking (200K context, Claude 4.1 Sonnet with thinking mode)
|
||||
# - anthropic.claude-opus-4.1-20250805-v1:0 (200K context, Claude 4.1 Opus)
|
||||
# - anthropic.claude-opus-4.1-20250805-v1:0-with-thinking (200K context, Claude 4.1 Opus with thinking mode)
|
||||
# - sonnet-4.1 (shorthand for Claude 4.1 Sonnet)
|
||||
# - sonnet-4.1-thinking (shorthand for Claude 4.1 Sonnet with thinking)
|
||||
# - opus-4.1 (shorthand for Claude 4.1 Opus)
|
||||
# - opus-4.1-thinking (shorthand for Claude 4.1 Opus with thinking)
|
||||
# - gemini-2.5-pro-preview-03-25-google-search (1M context, with Google Search)
|
||||
# - gemini-2.5-pro-preview-05-06 (1M context, latest preview)
|
||||
# - gemini-2.5-flash-preview-05-20 (1M context, latest flash preview)
|
||||
@@ -110,8 +110,8 @@ DEFAULT_THINKING_MODE_THINKDEEP=high
|
||||
# GOOGLE_ALLOWED_MODELS=flash,pro # Allow both Gemini models
|
||||
# XAI_ALLOWED_MODELS=grok,grok-3-fast # Allow both GROK variants
|
||||
# DIAL_ALLOWED_MODELS=o3,o4-mini # Only allow O3/O4 models via DIAL
|
||||
# DIAL_ALLOWED_MODELS=opus-4,sonnet-4 # Only Claude 4 models (without thinking)
|
||||
# DIAL_ALLOWED_MODELS=opus-4-thinking,sonnet-4-thinking # Only Claude 4 with thinking mode
|
||||
# DIAL_ALLOWED_MODELS=opus-4.1,sonnet-4.1 # Only Claude 4.1 models (without thinking)
|
||||
# DIAL_ALLOWED_MODELS=opus-4.1-thinking,sonnet-4.1-thinking # Only Claude 4.1 with thinking mode
|
||||
# DIAL_ALLOWED_MODELS=gemini-2.5-pro,gemini-2.5-flash # Only Gemini 2.5 models via DIAL
|
||||
#
|
||||
# Note: These restrictions apply even in 'auto' mode - Claude will only pick from allowed models
|
||||
|
||||
Reference in New Issue
Block a user