From f588881779bda4aa5ff0af135bf453fec951d089 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Mon, 10 Apr 2023 14:35:58 -0700 Subject: [PATCH] move reminder into prompts --- coder.py | 2 +- prompts.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/coder.py b/coder.py index 21d04df03..7b478fd11 100755 --- a/coder.py +++ b/coder.py @@ -110,7 +110,7 @@ class Coder: dict(role = 'user', content = files_content), dict(role = 'assistant', content = "Ok."), dict(role = 'user', content = inp), - dict(role = 'system', content = 'REMEMBER, ONLY RETURN CODE USING THE ORIGINAL/UPDATED FORMAT!'), + #dict(role = 'system', content = prompts.system_reminder), ] content = self.send(messages) diff --git a/prompts.py b/prompts.py index 5472d707d..883a4738d 100644 --- a/prompts.py +++ b/prompts.py @@ -92,6 +92,8 @@ if __name__ == '__main__': >>>>>>> UPDATED ''' +system_reminder = 'REMEMBER, ONLY RETURN CODE USING THE ORIGINAL/UPDATED FORMAT!' + ### FILES files_content_prefix_edited = 'I made your suggested changes, here are the updated files:\n\n'