fix: Rename JuniorWholeFileCoder and JuniorWholeFilePrompts classes

This commit is contained in:
Paul Gauthier 2024-09-25 14:25:16 -07:00 committed by Paul Gauthier (aider)
parent 3f682ed908
commit 25e833bbd4
4 changed files with 9 additions and 7 deletions

View file

@ -4,7 +4,7 @@ from .editblock_coder import EditBlockCoder
from .editblock_fenced_coder import EditBlockFencedCoder
from .help_coder import HelpCoder
from .junior_editblock_coder import JuniorEditBlockCoder
from .junior_wholefile_coder import JuniorWholeFileCoder
from .junior_whole_coder import JuniorWholeFileCoder
from .senior_coder import SeniorCoder
from .udiff_coder import UnifiedDiffCoder
from .wholefile_coder import WholeFileCoder

View file

@ -1,7 +1,7 @@
from .junior_whole_prompts import JuniorWholePrompts
from .whole_coder import WholeCoder
from .junior_whole_prompts import JuniorWholeFilePrompts
from .wholefile_coder import WholeFileCoder
class JuniorWholeCoder(WholeCoder):
class JuniorWholeFileCoder(WholeFileCoder):
edit_format = "junior-whole"
gpt_prompts = JuniorWholePrompts()
gpt_prompts = JuniorWholeFilePrompts()

View file

@ -3,7 +3,7 @@
from .wholefile_prompts import WholeFilePrompts
class WholeFilePrompts(WholeFilePrompts):
class JuniorWholeFilePrompts(WholeFilePrompts):
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.

View file

@ -469,7 +469,7 @@ MODEL_SETTINGS = [
"openai/o1-mini",
"whole",
weak_model_name="openai/gpt-4o-mini",
junior_model_name="gpt-4o",
junior_model_name="openai/gpt-4o",
junior_edit_format="junior-diff",
use_repo_map=True,
reminder="user",
@ -515,6 +515,8 @@ MODEL_SETTINGS = [
"openrouter/openai/o1-mini",
"whole",
weak_model_name="openrouter/openai/gpt-4o-mini",
junior_model_name="openrouter/openai/gpt-4o",
junior_edit_format="junior-diff",
use_repo_map=True,
reminder="user",
use_system_prompt=False,