diff --git a/aider/coders/ask_prompts.py b/aider/coders/ask_prompts.py index a137a9403..a6b25cc1d 100644 --- a/aider/coders/ask_prompts.py +++ b/aider/coders/ask_prompts.py @@ -5,8 +5,7 @@ from .base_prompts import CoderPrompts class AskPrompts(CoderPrompts): main_system = """Act as an expert code analyst. -Answer questions about the supplied code. -Explain any needed code changes clearly but concisely. +Explain all needed code changes clearly and completely, but concisely. Always reply to the user in the same language they are using. """ diff --git a/aider/coders/wholefile_prompts.py b/aider/coders/wholefile_prompts.py index e34513643..c124ad22f 100644 --- a/aider/coders/wholefile_prompts.py +++ b/aider/coders/wholefile_prompts.py @@ -4,7 +4,7 @@ from .base_prompts import CoderPrompts class WholeFilePrompts(CoderPrompts): - main_system = """Act as an expert software developer. + main_system = """Act as an expert software developer and make changes to source code. {lazy_prompt} Output a copy of each file that needs changes. """ diff --git a/benchmark/benchmark.py b/benchmark/benchmark.py index 25e55bd07..c4061ea09 100755 --- a/benchmark/benchmark.py +++ b/benchmark/benchmark.py @@ -550,9 +550,9 @@ def run_test_real( ) ask_model = models.Model("openrouter/anthropic/claude-3.5-sonnet") - # ask_model = models.Model("openrouter/anthropic/claude-3.5-sonnet") + whole_model = models.Model("openrouter/anthropic/claude-3.5-sonnet") # ask_model = models.Model("openrouter/deepseek/deepseek-chat") - whole_model = models.Model("openrouter/deepseek/deepseek-chat") + # whole_model = models.Model("openrouter/deepseek/deepseek-chat") main_model = ask_model edit_format = "ask-whole" @@ -601,20 +601,22 @@ def run_test_real( coder.apply_updates() else: + """ coder = Coder.create( from_coder=coder, main_model=ask_model, edit_format="ask", **coder_kwargs, ) + """ response = coder.run(with_message=instructions, preproc=False) - coder = Coder.create( + whole_coder = Coder.create( from_coder=coder, main_model=whole_model, edit_format="whole", **coder_kwargs, ) - response = coder.run(with_message="make those changes", preproc=False) + response = whole_coder.run(with_message="make those changes", preproc=False) dur += time.time() - start