From 5344052aeb593285fefc984686add2ed32e978ee Mon Sep 17 00:00:00 2001 From: "Jay Alammar (aider)" Date: Fri, 6 Sep 2024 17:06:11 -0400 Subject: [PATCH 1/7] feat: add support for new Cohere models command-r-08-2024 and command-r-plus-08-2024 --- aider/models.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/aider/models.py b/aider/models.py index 5fc20df95..c213273e7 100644 --- a/aider/models.py +++ b/aider/models.py @@ -91,6 +91,19 @@ MODEL_SETTINGS = [ weak_model_name="gpt-4o-mini", reminder="sys", ), + # New Cohere models + ModelSettings( + "command-r-08-2024", + "whole", + weak_model_name="command-r-08-2024", + use_repo_map=True, + ), + ModelSettings( + "command-r-plus-08-2024", + "whole", + weak_model_name="command-r-plus-08-2024", + use_repo_map=True, + ), ModelSettings( "gpt-3.5-turbo-0125", "whole", From 68bd2b75c6ce63d7e38d6e04267490eddc711969 Mon Sep 17 00:00:00 2001 From: "Jay Alammar (aider)" Date: Fri, 6 Sep 2024 17:06:51 -0400 Subject: [PATCH 2/7] refactor: group Cohere models together in the model settings list --- aider/models.py | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/aider/models.py b/aider/models.py index c213273e7..50d5ffe0e 100644 --- a/aider/models.py +++ b/aider/models.py @@ -91,25 +91,13 @@ MODEL_SETTINGS = [ weak_model_name="gpt-4o-mini", reminder="sys", ), - # New Cohere models - ModelSettings( - "command-r-08-2024", - "whole", - weak_model_name="command-r-08-2024", - use_repo_map=True, - ), - ModelSettings( - "command-r-plus-08-2024", - "whole", - weak_model_name="command-r-plus-08-2024", - use_repo_map=True, - ), ModelSettings( "gpt-3.5-turbo-0125", "whole", weak_model_name="gpt-4o-mini", reminder="sys", ), + ), ModelSettings( "gpt-3.5-turbo-1106", "whole", @@ -352,6 +340,19 @@ MODEL_SETTINGS = [ weak_model_name="command-r-plus", use_repo_map=True, ), + # New Cohere models + ModelSettings( + "command-r-08-2024", + "whole", + weak_model_name="command-r-08-2024", + use_repo_map=True, + ), + ModelSettings( + "command-r-plus-08-2024", + "whole", + weak_model_name="command-r-plus-08-2024", + use_repo_map=True, + ), # Groq llama3 ModelSettings( "groq/llama3-70b-8192", From 74f1ceff9308e7472cf706c68071d9d3f5a0bb14 Mon Sep 17 00:00:00 2001 From: "Jay Alammar (aider)" Date: Fri, 6 Sep 2024 17:07:16 -0400 Subject: [PATCH 3/7] fix: resolve syntax error by removing extra closing parenthesis in model settings list --- aider/models.py | 1 - 1 file changed, 1 deletion(-) diff --git a/aider/models.py b/aider/models.py index 50d5ffe0e..d8cba5d32 100644 --- a/aider/models.py +++ b/aider/models.py @@ -90,7 +90,6 @@ MODEL_SETTINGS = [ "whole", weak_model_name="gpt-4o-mini", reminder="sys", - ), ModelSettings( "gpt-3.5-turbo-0125", "whole", From d85979e1fbf5deee8020c0702fb596ce8e762cc9 Mon Sep 17 00:00:00 2001 From: "Jay Alammar (aider)" Date: Fri, 6 Sep 2024 17:07:23 -0400 Subject: [PATCH 4/7] fix: correct syntax error by fixing misplaced parenthesis in ModelSettings entries --- aider/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/aider/models.py b/aider/models.py index d8cba5d32..50d5ffe0e 100644 --- a/aider/models.py +++ b/aider/models.py @@ -90,6 +90,7 @@ MODEL_SETTINGS = [ "whole", weak_model_name="gpt-4o-mini", reminder="sys", + ), ModelSettings( "gpt-3.5-turbo-0125", "whole", From df33498cad037fb3002c55a25852f93c74f7e0df Mon Sep 17 00:00:00 2001 From: "Jay Alammar (aider)" Date: Fri, 6 Sep 2024 17:07:32 -0400 Subject: [PATCH 5/7] fix: correct syntax error by removing extra closing parenthesis in ModelSettings definition --- aider/models.py | 1 - 1 file changed, 1 deletion(-) diff --git a/aider/models.py b/aider/models.py index 50d5ffe0e..d8cba5d32 100644 --- a/aider/models.py +++ b/aider/models.py @@ -90,7 +90,6 @@ MODEL_SETTINGS = [ "whole", weak_model_name="gpt-4o-mini", reminder="sys", - ), ModelSettings( "gpt-3.5-turbo-0125", "whole", From 7315624b980b7cecc3d99f3dd547489c016f505d Mon Sep 17 00:00:00 2001 From: Jay Alammar Date: Wed, 11 Sep 2024 10:55:45 -0400 Subject: [PATCH 6/7] bugfix --- aider/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aider/models.py b/aider/models.py index d8cba5d32..d513e9ecf 100644 --- a/aider/models.py +++ b/aider/models.py @@ -90,13 +90,13 @@ MODEL_SETTINGS = [ "whole", weak_model_name="gpt-4o-mini", reminder="sys", + ), ModelSettings( "gpt-3.5-turbo-0125", "whole", weak_model_name="gpt-4o-mini", reminder="sys", ), - ), ModelSettings( "gpt-3.5-turbo-1106", "whole", From 5cdcbb1a262128c4f03101ad5f9b966083347ea5 Mon Sep 17 00:00:00 2001 From: Jay Alammar Date: Wed, 11 Sep 2024 11:04:38 -0400 Subject: [PATCH 7/7] Add to docs --- aider/website/docs/llms/cohere.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aider/website/docs/llms/cohere.md b/aider/website/docs/llms/cohere.md index d72297c36..99eea15b9 100644 --- a/aider/website/docs/llms/cohere.md +++ b/aider/website/docs/llms/cohere.md @@ -18,7 +18,7 @@ python -m pip install aider-chat export COHERE_API_KEY= # Mac/Linux setx COHERE_API_KEY # Windows, restart shell after setx -aider --model command-r-plus +aider --model command-r-plus-08-2024 # List models available from Cohere aider --list-models cohere_chat/