mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 09:44:59 +00:00
sonnet-sonnet gets 60.2/84.2
This commit is contained in:
parent
05dcbeecac
commit
5b584db90c
3 changed files with 8 additions and 7 deletions
|
@ -5,8 +5,7 @@ from .base_prompts import CoderPrompts
|
||||||
|
|
||||||
class AskPrompts(CoderPrompts):
|
class AskPrompts(CoderPrompts):
|
||||||
main_system = """Act as an expert code analyst.
|
main_system = """Act as an expert code analyst.
|
||||||
Answer questions about the supplied code.
|
Explain all needed code changes clearly and completely, but concisely.
|
||||||
Explain any needed code changes clearly but concisely.
|
|
||||||
|
|
||||||
Always reply to the user in the same language they are using.
|
Always reply to the user in the same language they are using.
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -4,7 +4,7 @@ from .base_prompts import CoderPrompts
|
||||||
|
|
||||||
|
|
||||||
class WholeFilePrompts(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}
|
{lazy_prompt}
|
||||||
Output a copy of each file that needs changes.
|
Output a copy of each file that needs changes.
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -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")
|
||||||
# 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")
|
# 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
|
main_model = ask_model
|
||||||
edit_format = "ask-whole"
|
edit_format = "ask-whole"
|
||||||
|
@ -601,20 +601,22 @@ def run_test_real(
|
||||||
|
|
||||||
coder.apply_updates()
|
coder.apply_updates()
|
||||||
else:
|
else:
|
||||||
|
"""
|
||||||
coder = Coder.create(
|
coder = Coder.create(
|
||||||
from_coder=coder,
|
from_coder=coder,
|
||||||
main_model=ask_model,
|
main_model=ask_model,
|
||||||
edit_format="ask",
|
edit_format="ask",
|
||||||
**coder_kwargs,
|
**coder_kwargs,
|
||||||
)
|
)
|
||||||
|
"""
|
||||||
response = coder.run(with_message=instructions, preproc=False)
|
response = coder.run(with_message=instructions, preproc=False)
|
||||||
coder = Coder.create(
|
whole_coder = Coder.create(
|
||||||
from_coder=coder,
|
from_coder=coder,
|
||||||
main_model=whole_model,
|
main_model=whole_model,
|
||||||
edit_format="whole",
|
edit_format="whole",
|
||||||
**coder_kwargs,
|
**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
|
dur += time.time() - start
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue