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

Penalize GitAuto more when it hesitates to create changes and commit #295

Merged
merged 1 commit into from
Sep 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion services/openai/instructions/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@
1. Retrieve the content of the file using `get_remote_file_content()` if you know the exact file path. Alternatively, use `search_remote_file_contents()` if you need to locate the file based on certain keywords.
2. Create a diff to modify the content as required.
3. Call `commit_changes_to_remote_branch()` with the diff.
- Note: If you need to change multiple blocks in the same file, call the function multiple times with each block separately for simplicity. For example, if you have three blocks to change in the same file, call the function three times with each block separately.
- IMPORTANT:
1. After retrieving the file content, ENSURE you proceed to create the diff and call `commit_changes_to_remote_branch()`. Do not repeatedly call `get_remote_file_content()` or `search_remote_file_contents()` without committing the changes.
2. If you need to change multiple blocks in the same file, call the function multiple times with each block separately for simplicity. For example, if you have three blocks to change in the same file, call the function three times with each block separately.

## 3. Deleting Files

Expand Down