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