From c156b2f817172c73bdea0145a7f379de95a483ab Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Mon, 24 Feb 2025 12:11:49 -0800 Subject: [PATCH] feat: Update Claude Sonnet model to latest version --- aider/args.py | 2 +- aider/models.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/aider/args.py b/aider/args.py index 554931fa8..2a55b4d28 100644 --- a/aider/args.py +++ b/aider/args.py @@ -46,7 +46,7 @@ def get_parser(default_config_files, git_root): const=opus_model, help=f"Use {opus_model} model for the main chat", ) - sonnet_model = "claude-3-5-sonnet-20241022" + sonnet_model = "anthropic/claude-3-7-sonnet-20250219" group.add_argument( "--sonnet", action="store_const", diff --git a/aider/models.py b/aider/models.py index 4f4ed499b..870b6777b 100644 --- a/aider/models.py +++ b/aider/models.py @@ -76,7 +76,7 @@ ANTHROPIC_MODELS = [ln.strip() for ln in ANTHROPIC_MODELS.splitlines() if ln.str # Mapping of model aliases to their canonical names MODEL_ALIASES = { # Claude models - "sonnet": "claude-3-5-sonnet-20241022", + "sonnet": "anthropic/claude-3-7-sonnet-20250219", "haiku": "claude-3-5-haiku-20241022", "opus": "claude-3-opus-20240229", # GPT models