From 4a3e6ef1e58b44e81f89d8ff469dae7adbb7bcc5 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Tue, 22 Oct 2024 12:53:26 -0700 Subject: [PATCH] update sonnet model names since they are in litellm json now --- aider/args.py | 2 +- aider/main.py | 2 +- aider/resources/model-metadata.json | 18 ------------------ 3 files changed, 2 insertions(+), 20 deletions(-) delete mode 100644 aider/resources/model-metadata.json diff --git a/aider/args.py b/aider/args.py index 9897baf33..ae626a036 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 = "anthropic/claude-3-5-sonnet-20241022" + sonnet_model = "claude-3-5-sonnet-20241022" group.add_argument( "--sonnet", action="store_const", diff --git a/aider/main.py b/aider/main.py index ddf13ca95..39022e43a 100644 --- a/aider/main.py +++ b/aider/main.py @@ -580,7 +580,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 = "anthropic/claude-3-5-sonnet-20241022" + args.model = "claude-3-5-sonnet-20241022" main_model = models.Model( args.model, diff --git a/aider/resources/model-metadata.json b/aider/resources/model-metadata.json deleted file mode 100644 index 8409428d8..000000000 --- a/aider/resources/model-metadata.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "anthropic/claude-3-5-sonnet-20241022": { - "max_tokens": 8192, - "max_input_tokens": 200000, - "max_output_tokens": 8192, - "input_cost_per_token": 0.000003, - "output_cost_per_token": 0.000015, - "cache_creation_input_token_cost": 0.00000375, - "cache_read_input_token_cost": 0.0000003, - "litellm_provider": "anthropic", - "mode": "chat", - "supports_function_calling": true, - "supports_vision": true, - "tool_use_system_prompt_tokens": 159, - "supports_assistant_prefill": true, - "supports_prompt_caching": true - } -}