mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-03 19:24:59 +00:00
Roughed in updated sys msg for whole format
This commit is contained in:
parent
976f84bac5
commit
f005404ec0
3 changed files with 29 additions and 10 deletions
|
@ -6,7 +6,7 @@ from .dump import dump # noqa: F401
|
|||
def quoted_file(fname, display_fname, number=False):
|
||||
prompt = "\n"
|
||||
prompt += display_fname
|
||||
prompt += "\n```\n"
|
||||
prompt += "\n````\n"
|
||||
file_content = Path(fname).read_text()
|
||||
lines = file_content.splitlines()
|
||||
for i, line in enumerate(lines, start=1):
|
||||
|
@ -14,7 +14,7 @@ def quoted_file(fname, display_fname, number=False):
|
|||
prompt += f"{i:4d} "
|
||||
prompt += line + "\n"
|
||||
|
||||
prompt += "```\n"
|
||||
prompt += "````\n"
|
||||
return prompt
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue