From 9b092702d8394e477423e520750205c9d0ef95d7 Mon Sep 17 00:00:00 2001 From: ktunprasert Date: Fri, 9 Jun 2023 21:34:21 +0100 Subject: [PATCH] Filepaths: Added further system prompt to prevent "instruction" --- main.py | 2 ++ main_no_modal.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/main.py b/main.py index 9d7ecd5db..a5bdca0cc 100644 --- a/main.py +++ b/main.py @@ -119,6 +119,8 @@ def main(prompt, directory=DEFAULT_DIR, model=DEFAULT_MODEL, file=None): only list the filepaths you would write, and return them as a python list of strings. do not add any other explanation, only return a python list of strings. + + Don't respond with description messages or helper messages. If you're going to list the file don't offer "here's a list" only list the filepaths """, prompt, ) diff --git a/main_no_modal.py b/main_no_modal.py index b3edba516..fe45cf1c8 100644 --- a/main_no_modal.py +++ b/main_no_modal.py @@ -125,6 +125,8 @@ def main(prompt, directory=DEFAULT_DIR, file=None): only list the filepaths you would write, and return them as a python list of strings. do not add any other explanation, only return a python list of strings. + + Don't respond with description messages or helper messages. If you're going to list the file don't offer "here's a list" only list the filepaths """, prompt, )