From 3c4dad7eb4690078ec1eadbebe4065de01d06330 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Tue, 22 Oct 2024 10:09:35 -0700 Subject: [PATCH] use sonnet 1022 by default --- aider/args.py | 2 +- aider/main.py | 2 +- aider/models.py | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/aider/args.py b/aider/args.py index 6ac071491..9897baf33 100644 --- a/aider/args.py +++ b/aider/args.py @@ -58,7 +58,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-20240620" + sonnet_model = "anthropic/claude-3-5-sonnet-20241022" group.add_argument( "--sonnet", action="store_const", diff --git a/aider/main.py b/aider/main.py index 331886bd6..01b4f036a 100644 --- a/aider/main.py +++ b/aider/main.py @@ -575,7 +575,7 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F if not args.model: args.model = "gpt-4o-2024-08-06" if os.environ.get("ANTHROPIC_API_KEY"): - args.model = "claude-3-5-sonnet-20240620" + args.model = "anthropic/claude-3-5-sonnet-20241022" main_model = models.Model( args.model, diff --git a/aider/models.py b/aider/models.py index 1377f6892..3bbe85444 100644 --- a/aider/models.py +++ b/aider/models.py @@ -56,6 +56,7 @@ claude-3-haiku-20240307 claude-3-opus-20240229 claude-3-sonnet-20240229 claude-3-5-sonnet-20240620 +claude-3-5-sonnet-20241022 """ ANTHROPIC_MODELS = [ln.strip() for ln in ANTHROPIC_MODELS.splitlines() if ln.strip()]