-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
Standardise file names path #684
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…iable in `gpt_engineer/file_selector.py`. # Aider chat conversation: USER: replace the file_list.txt string with the FILE_LIST_NAME variable in file_sele ASSISTANT: I'm sorry, but your request is not clear. Could you please provide more details? Specifically, I need to know the exact file where the change should be made and the context of the `file_list.txt` string and `FILE_LIST_NAME` variable. USER: replace the 'file_list.txt' string that exists in many places with the FILE_LIST_NAME variable in `gpt_engineer/file_selector.py` by importing it ASSISTANT: To replace the 'file_list.txt' string with the FILE_LIST_NAME variable in `gpt_engineer/file_selector.py`, we need to modify the `gpt_engineer/file_selector.py` file. Here are the changes: ```python gpt_engineer/file_selector.py <<<<<<< ORIGINAL if "file_list.txt" in db_input: use_last_string = ( "3. Use previous file list (available at " + f"{os.path.join(db_input.path, 'file_list.txt')})\n" ) selection_number = 3 else: selection_number = 1 ======= if FILE_LIST_NAME in db_input: use_last_string = ( "3. Use previous file list (available at " + f"{os.path.join(db_input.path, FILE_LIST_NAME)})\n" ) selection_number = 3 else: selection_number = 1 >>>>>>> UPDATED ``` ```python gpt_engineer/file_selector.py <<<<<<< ORIGINAL if not selection_number == 3: db_input["file_list.txt"] = "\n".join(file_path_list) ======= if not selection_number == 3: db_input[FILE_LIST_NAME] = "\n".join(file_path_list) >>>>>>> UPDATED ``` Please confirm these changes.
…e in `gpt_engineer/chat_to_files.py`. # Aider chat conversation: USER: abort ASSISTANT: Alright, the operation has been aborted. If you have any other requests or need further assistance, feel free to ask. USER: add `gpt_engineer/chat_to_files.py` and do the same as above ASSISTANT: To replace the 'file_list.txt' string with the FILE_LIST_NAME variable in `gpt_engineer/chat_to_files.py`, we need to modify the `gpt_engineer/chat_to_files.py` file. Here are the changes: ```python gpt_engineer/chat_to_files.py <<<<<<< ORIGINAL files_paths = input["file_list.txt"].strip().split("\n") ======= files_paths = input[FILE_LIST_NAME].strip().split("\n") >>>>>>> UPDATED ``` Please confirm these changes.
AntonOsika
force-pushed
the
ao/standardise-path
branch
from
September 7, 2023 20:06
a8c7ffb
to
87a4f80
Compare
70ziko
pushed a commit
to 70ziko/gpt-engineer
that referenced
this pull request
Oct 25, 2023
* aider: Replace the 'file_list.txt' string with the FILE_LIST_NAME variable in `gpt_engineer/file_selector.py`. # Aider chat conversation: USER: replace the file_list.txt string with the FILE_LIST_NAME variable in file_sele ASSISTANT: I'm sorry, but your request is not clear. Could you please provide more details? Specifically, I need to know the exact file where the change should be made and the context of the `file_list.txt` string and `FILE_LIST_NAME` variable. USER: replace the 'file_list.txt' string that exists in many places with the FILE_LIST_NAME variable in `gpt_engineer/file_selector.py` by importing it ASSISTANT: To replace the 'file_list.txt' string with the FILE_LIST_NAME variable in `gpt_engineer/file_selector.py`, we need to modify the `gpt_engineer/file_selector.py` file. Here are the changes: ```python gpt_engineer/file_selector.py <<<<<<< ORIGINAL if "file_list.txt" in db_input: use_last_string = ( "3. Use previous file list (available at " + f"{os.path.join(db_input.path, 'file_list.txt')})\n" ) selection_number = 3 else: selection_number = 1 ======= if FILE_LIST_NAME in db_input: use_last_string = ( "3. Use previous file list (available at " + f"{os.path.join(db_input.path, FILE_LIST_NAME)})\n" ) selection_number = 3 else: selection_number = 1 >>>>>>> UPDATED ``` ```python gpt_engineer/file_selector.py <<<<<<< ORIGINAL if not selection_number == 3: db_input["file_list.txt"] = "\n".join(file_path_list) ======= if not selection_number == 3: db_input[FILE_LIST_NAME] = "\n".join(file_path_list) >>>>>>> UPDATED ``` Please confirm these changes. * aider: Replace 'file_list.txt' string with the FILE_LIST_NAME variable in `gpt_engineer/chat_to_files.py`. # Aider chat conversation: USER: abort ASSISTANT: Alright, the operation has been aborted. If you have any other requests or need further assistance, feel free to ask. USER: add `gpt_engineer/chat_to_files.py` and do the same as above ASSISTANT: To replace the 'file_list.txt' string with the FILE_LIST_NAME variable in `gpt_engineer/chat_to_files.py`, we need to modify the `gpt_engineer/chat_to_files.py` file. Here are the changes: ```python gpt_engineer/chat_to_files.py <<<<<<< ORIGINAL files_paths = input["file_list.txt"].strip().split("\n") ======= files_paths = input[FILE_LIST_NAME].strip().split("\n") >>>>>>> UPDATED ``` Please confirm these changes. * Fix import
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.