mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 18:25:00 +00:00
refactor: improve model prompt selection logic in fmt_system_prompt
This commit is contained in:
parent
2540933921
commit
5b73938e29
1 changed files with 6 additions and 2 deletions
|
@ -1077,8 +1077,12 @@ class Coder:
|
||||||
return platform_text
|
return platform_text
|
||||||
|
|
||||||
def fmt_system_prompt(self, prompt):
|
def fmt_system_prompt(self, prompt):
|
||||||
# if model lazy: lazy_prompt elif model overager overeager_prompt else "" ai!
|
if self.main_model.lazy:
|
||||||
lazy_prompt = self.gpt_prompts.lazy_prompt if self.main_model.lazy else ""
|
lazy_prompt = self.gpt_prompts.lazy_prompt
|
||||||
|
elif hasattr(self.main_model, 'overager') and self.main_model.overager:
|
||||||
|
lazy_prompt = self.gpt_prompts.overeager_prompt
|
||||||
|
else:
|
||||||
|
lazy_prompt = ""
|
||||||
|
|
||||||
platform_text = self.get_platform_info()
|
platform_text = self.get_platform_info()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue