From 5b13bbeb1263c3d06414f6042f7b9ee7e67e5ed2 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Sat, 8 Apr 2023 19:46:13 -0700 Subject: [PATCH] better --- coder.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/coder.py b/coder.py index 3d1ec288b..8f0268056 100755 --- a/coder.py +++ b/coder.py @@ -65,7 +65,6 @@ print(2+2) To add new code, anchor it by including 2-3 lines in the ORIGINAL and UPDATED portions of the diff. Don't just output the ENTIRE file. Turn it into an edit. - ''' prompt_comments = ''' @@ -423,14 +422,16 @@ To this file: ``` {content} ``` + +ONLY OUTPUT {fname} !!! ''' sys_prompt = ''' You are an expert code editor. Perform the requested edit. Output ONLY the new version of the file. +Just that one file. Do not output explanations! Do not wrap the output in ``` delimiters. -Just the content of the file! ''' messages = [