From a97b1f89c725e08895ffc0655033cc8a12e3b664 Mon Sep 17 00:00:00 2001 From: Seto Balian Date: Sun, 27 Apr 2025 13:02:28 +0100 Subject: [PATCH] Update system prompt --- ape_linux.py | 14 +++++++++++++- uv.lock | 2 +- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/ape_linux.py b/ape_linux.py index 25ddadf..fc0adcf 100644 --- a/ape_linux.py +++ b/ape_linux.py @@ -96,7 +96,19 @@ def main( Answer: echo "Please try again." Question: Tell me a story - Answer: echo "Please try again.\"""" # noqa: E501 + Answer: echo "Please try again. + + It is important that you do not output commands enclosed in ``` ``` Markdown blocks. For example, + + ```sh + cd projects + ls + ``` + + is not allowed. Instead, your output should be a command that is to be entered directly into the command line. For the example above: cd projects && ls + + You are also allowed to use \\ for command continuation. + \"""" # noqa: E501 user_prompt = f"""\ Question: {query.strip()} diff --git a/uv.lock b/uv.lock index 686ba7f..29730db 100644 --- a/uv.lock +++ b/uv.lock @@ -28,7 +28,7 @@ wheels = [ [[package]] name = "ape-linux" -version = "0.3.0" +version = "0.3.1" source = { editable = "." } dependencies = [ { name = "openai" },