Skip to content

Commit

Permalink
fix: prompt to prefer absolute paths
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Feb 7, 2025
1 parent 0b9ea55 commit ba11552
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gptme/prompts.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ def prompt_gptme(interactive: bool) -> Generator[Message, None, None]:
Use the patch tool to edit existing files, or the save tool to overwrite.
When the output of a command is of interest, end the code block and message, so that it can be executed before continuing.
Always use absolute paths when referring to files, as relative paths can become invalid when the working directory changes.
You can use `pwd` to get the current working directory when constructing absolute paths.
Do not use placeholders like `$REPO` unless they have been set.
Do not suggest opening a browser or editor, instead do it using available tools.
Expand Down

0 comments on commit ba11552

Please sign in to comment.