Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prompt improvements #3655

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion sweepai/core/prompts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.

<modify file="file_path">
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`.
<original_code>
Expand All @@ -526,6 +526,7 @@

Use multiple <modify> blocks for the same file to separate distinct changes, such as for imports.
</modify>
[additional modifies as needed, for the same file or different files]
</error_analysis>
[additional <error_analysis> blocks as needed, for ALL error messages in the error logs]
</plan>""" # + files_to_change_example TODO: test separately
Expand Down