From 40b1e2df1307d1eed90f2a183e0dfd1877dc70b6 Mon Sep 17 00:00:00 2001 From: Hiroshi Nishio Date: Thu, 5 Sep 2024 17:44:24 +0900 Subject: [PATCH] Penalize GitAuto more when it hesitates to create changes and commit --- services/openai/instructions/index.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/services/openai/instructions/index.py b/services/openai/instructions/index.py index 6e916955..bced9f25 100644 --- a/services/openai/instructions/index.py +++ b/services/openai/instructions/index.py @@ -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