From cb75d0637a7a81967d2aa7c8bc5d621b04afeb3e Mon Sep 17 00:00:00 2001 From: Kevin Lu Date: Wed, 1 May 2024 21:26:26 +0000 Subject: [PATCH] Prompt improvements --- sweepai/core/prompts.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sweepai/core/prompts.py b/sweepai/core/prompts.py index 1c62abf603..655d926667 100644 --- a/sweepai/core/prompts.py +++ b/sweepai/core/prompts.py @@ -510,7 +510,7 @@ Then, based on the analysis, propose a fix by following the format below. If the error has already been fixed, you can skip this step. -Instructions for modifying one section of the file. Each block must have exactly one original_code and one new_code block. Do not make a change that has already been made by the intern. +Instructions for modifying one section of the file, containing the exact changes required. Use multiple blocks for multiple changes to different sections of code, such as for imports. Each block must have exactly one original_code and one new_code block. Do not make a change that has already been made by the intern. a. Describe the section of code that needs to be modified, i.e. the test case that checks if `foo` == `bar`. @@ -526,6 +526,7 @@ Use multiple blocks for the same file to separate distinct changes, such as for imports. +[additional modifies as needed, for the same file or different files] [additional blocks as needed, for ALL error messages in the error logs] """ # + files_to_change_example TODO: test separately