From 8d151a35737691e2eccc355f00621a2801f19554 Mon Sep 17 00:00:00 2001 From: Jun Siang Cheah Date: Thu, 5 Sep 2024 23:04:54 +0100 Subject: [PATCH 1/2] docs: clean up yi-coder model names --- aider/website/_data/edit_leaderboard.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aider/website/_data/edit_leaderboard.yml b/aider/website/_data/edit_leaderboard.yml index 7c3c5d484..752397c7e 100644 --- a/aider/website/_data/edit_leaderboard.yml +++ b/aider/website/_data/edit_leaderboard.yml @@ -950,7 +950,7 @@ - dirname: 2024-09-04-16-08-09--yi-coder-9b-whole test_cases: 133 - model: openai/hf:01-ai/Yi-Coder-9B-Chat + model: Yi Coder 9B Chat edit_format: whole commit_hash: c4e4967 pass_rate_1: 46.6 @@ -974,7 +974,7 @@ - dirname: 2024-09-04-16-17-33--yi-coder-9b-chat-q4_0-whole test_cases: 133 - model: ollama/yi-coder:9b-chat-q4_0 + model: yi-coder:9b-chat-q4_0 edit_format: whole commit_hash: c4e4967 pass_rate_1: 41.4 From 795810ffb8e94536830aed698ef3639be0aafa38 Mon Sep 17 00:00:00 2001 From: fry69 <142489379+fry69@users.noreply.github.com> Date: Fri, 6 Sep 2024 13:44:42 +0200 Subject: [PATCH 2/2] fix: update model configurations --- aider/models.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/aider/models.py b/aider/models.py index 41b3eba93..5fc20df95 100644 --- a/aider/models.py +++ b/aider/models.py @@ -18,7 +18,7 @@ from aider.dump import dump # noqa: F401 from aider.llm import litellm DEFAULT_MODEL_NAME = "gpt-4o" -ANTHROPIC_BETA_HEADER = "max-tokens-3-5-sonnet-2024-07-15,prompt-caching-2024-07-31" +ANTHROPIC_BETA_HEADER = "prompt-caching-2024-07-31" OPENAI_MODELS = """ gpt-4 @@ -306,10 +306,8 @@ MODEL_SETTINGS = [ examples_as_sys_msg=True, accepts_images=True, max_tokens=8192, - extra_headers={ - "anthropic-beta": "max-tokens-3-5-sonnet-2024-07-15", - }, reminder="user", + cache_control=True, ), # Vertex AI Claude models # Does not yet support 8k token @@ -320,6 +318,7 @@ MODEL_SETTINGS = [ use_repo_map=True, examples_as_sys_msg=True, accepts_images=True, + max_tokens=8192, reminder="user", ), ModelSettings(