Skip to content

Commit

Permalink
fix: include instructions for append in system prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Oct 31, 2023
1 parent 9ba41f5 commit 50b00a0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions gptme/tools/patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
The LLM agent can patch files, by using a adapted version git conflict markers.
This can be used to make changes to files we have written in the past, without having to rewrite the whole file.
We can also append to files by prefixing the filename with `append`.
## Example
Expand All @@ -34,6 +35,13 @@ def hello():
print(f"hello {name}")
>>>>>>> UPDATED
```
> User: run the function when the script is run
> Assistant:
```append hello.py
if __name__ == "__main__":
hello()
```
"""


Expand Down

0 comments on commit 50b00a0

Please sign in to comment.