mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-25 23:05:00 +00:00
3.5 prompts
This commit is contained in:
parent
2bdfdb11bb
commit
56d2aa59ee
3 changed files with 8 additions and 3 deletions
|
@ -298,7 +298,10 @@ class Coder:
|
||||||
dict(role="user", content=inp),
|
dict(role="user", content=inp),
|
||||||
]
|
]
|
||||||
|
|
||||||
main_sys = self.gpt_prompts.main_system + "\n" + self.gpt_prompts.system_reminder
|
main_sys = self.gpt_prompts.main_system
|
||||||
|
if self.main_model == "gpt-4":
|
||||||
|
main_sys += "\n" + self.gpt_prompts.system_reminder
|
||||||
|
|
||||||
messages = [
|
messages = [
|
||||||
dict(role="system", content=main_sys),
|
dict(role="system", content=main_sys),
|
||||||
]
|
]
|
||||||
|
|
|
@ -118,7 +118,8 @@ class Commands:
|
||||||
"was reset and removed from git.\n"
|
"was reset and removed from git.\n"
|
||||||
)
|
)
|
||||||
|
|
||||||
return prompts.undo_command_reply
|
if self.coder.main_model != "gpt-3.5-turbo":
|
||||||
|
return prompts.undo_command_reply
|
||||||
|
|
||||||
def cmd_diff(self, args):
|
def cmd_diff(self, args):
|
||||||
"Display the diff of the last aider commit"
|
"Display the diff of the last aider commit"
|
||||||
|
|
|
@ -70,7 +70,7 @@ If the request is ambiguous, ask questions.
|
||||||
|
|
||||||
Once you understand the request you MUST:
|
Once you understand the request you MUST:
|
||||||
1. Think step-by-step and *briefly* explain the needed code changes.
|
1. Think step-by-step and *briefly* explain the needed code changes.
|
||||||
2. Output a new copy of each file which needs code changes.
|
2. If changes are needed, output a copy of each file that needs changes.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
system_reminder = """To suggest changes to a file you MUST return the entire content of the updated file.
|
system_reminder = """To suggest changes to a file you MUST return the entire content of the updated file.
|
||||||
|
@ -84,6 +84,7 @@ exact/path/to/filename.js
|
||||||
"""
|
"""
|
||||||
|
|
||||||
files_content_prefix = "Here is the current content of the files:\n"
|
files_content_prefix = "Here is the current content of the files:\n"
|
||||||
|
files_no_full_files = "I am not sharing any files yet."
|
||||||
|
|
||||||
|
|
||||||
# COMMIT
|
# COMMIT
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue