Skip to content

Commit

Permalink
fix: mention paths being relative to working dir in prompt for save tool
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Nov 15, 2024
1 parent faaec3a commit 41594c5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gptme/tools/save.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
# FIXME: this is markdown-specific instructions, thus will confuse the XML mode
instructions = """
To write to a file, use a code block with the language tag: `save <path>`
The path can be relative to the current directory, or absolute.
If the current directory changes, the path will be relative to the new directory.
""".strip()

instructions_append = """
Expand Down

0 comments on commit 41594c5

Please # to comment.