mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 06:15:00 +00:00
WIP: Changed prefix text and added new line to all_content.
This commit is contained in:
parent
ceeb1d8610
commit
60879d3168
2 changed files with 8 additions and 4 deletions
|
@ -138,7 +138,7 @@ class Coder:
|
||||||
repo_content = prompts.repo_content_prefix
|
repo_content = prompts.repo_content_prefix
|
||||||
repo_content += files_listing
|
repo_content += files_listing
|
||||||
|
|
||||||
all_content = repo_content + '\n' + files_content
|
all_content = repo_content + '\n\n' + files_content
|
||||||
|
|
||||||
|
|
||||||
files_messages = [
|
files_messages = [
|
||||||
|
@ -201,7 +201,7 @@ class Coder:
|
||||||
messages += self.get_files_messages()
|
messages += self.get_files_messages()
|
||||||
messages += self.cur_messages
|
messages += self.cur_messages
|
||||||
|
|
||||||
# self.show_messages(messages, "all")
|
#self.show_messages(messages, "all")
|
||||||
|
|
||||||
content, interrupted = self.send(messages)
|
content, interrupted = self.send(messages)
|
||||||
if interrupted:
|
if interrupted:
|
||||||
|
|
|
@ -21,7 +21,9 @@ class Foo:
|
||||||
Take requests from the user for new features, improvements, bug fixes and other changes to the supplied code.
|
Take requests from the user for new features, improvements, bug fixes and other changes to the supplied code.
|
||||||
If the user's request is ambiguous, ask questions to fully understand.
|
If the user's request is ambiguous, ask questions to fully understand.
|
||||||
|
|
||||||
Once you understand the user's request, your responses MUST be:
|
IF THE FILES DON'T CONTAIN THE RELEVANT CODE, SAY SO!
|
||||||
|
|
||||||
|
Once you understand the user's request and can see all the relevant code, your responses MUST be:
|
||||||
|
|
||||||
1. Briefly explain the needed changes.
|
1. Briefly explain the needed changes.
|
||||||
2. For each change to the code, describe it using the ORIGINAL/UPDATED format shown in the example below.
|
2. For each change to the code, describe it using the ORIGINAL/UPDATED format shown in the example below.
|
||||||
|
@ -81,7 +83,9 @@ files_content_gpt_no_edits = (
|
||||||
|
|
||||||
files_content_local_edits = "I made some changes to the files myself."
|
files_content_local_edits = "I made some changes to the files myself."
|
||||||
|
|
||||||
files_content_prefix = "Here is the current content of the files:\n\n"
|
repo_content_prefix = "These are the files in the git repo:\n\n"
|
||||||
|
|
||||||
|
files_content_prefix = "Here is the current content of the files we have opened:\n\n"
|
||||||
|
|
||||||
files_content_suffix = """Base any edits on the current contents of the files as shown in the user's last message."""
|
files_content_suffix = """Base any edits on the current contents of the files as shown in the user's last message."""
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue