mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-04 03:35:00 +00:00
feat: Add overeager model setting and prompt for precise request handling
This commit is contained in:
parent
0fd08fe667
commit
51fa2eb103
3 changed files with 4 additions and 1 deletions
|
@ -1079,7 +1079,7 @@ class Coder:
|
||||||
def fmt_system_prompt(self, prompt):
|
def fmt_system_prompt(self, prompt):
|
||||||
if self.main_model.lazy:
|
if self.main_model.lazy:
|
||||||
lazy_prompt = self.gpt_prompts.lazy_prompt
|
lazy_prompt = self.gpt_prompts.lazy_prompt
|
||||||
elif hasattr(self.main_model, "overager") and self.main_model.overager:
|
elif self.main_model.overeager:
|
||||||
lazy_prompt = self.gpt_prompts.overeager_prompt
|
lazy_prompt = self.gpt_prompts.overeager_prompt
|
||||||
else:
|
else:
|
||||||
lazy_prompt = ""
|
lazy_prompt = ""
|
||||||
|
|
|
@ -14,6 +14,8 @@ You NEVER leave comments describing code without implementing it!
|
||||||
You always COMPLETELY IMPLEMENT the needed code!
|
You always COMPLETELY IMPLEMENT the needed code!
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
overeager_prompt = """Pay careful attention to the scope of the user's request. Do what they ask, but no more."""
|
||||||
|
|
||||||
example_messages = []
|
example_messages = []
|
||||||
|
|
||||||
files_content_prefix = """I have *added these files to the chat* so you can go ahead and edit them.
|
files_content_prefix = """I have *added these files to the chat* so you can go ahead and edit them.
|
||||||
|
|
|
@ -103,6 +103,7 @@ class ModelSettings:
|
||||||
use_repo_map: bool = False
|
use_repo_map: bool = False
|
||||||
send_undo_reply: bool = False
|
send_undo_reply: bool = False
|
||||||
lazy: bool = False
|
lazy: bool = False
|
||||||
|
overeager: bool = False
|
||||||
reminder: str = "user"
|
reminder: str = "user"
|
||||||
examples_as_sys_msg: bool = False
|
examples_as_sys_msg: bool = False
|
||||||
extra_params: Optional[dict] = None
|
extra_params: Optional[dict] = None
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue