kopia lustrzana https://github.com/biobootloader/wolverine
updated the flag --confirm as required
- Updated the flag --confirm=True which will allow user to say yes or no before making changes to the file. - If flag is not used then it will right away make changes to the file. - Updated the readme with an example.pull/16/head
rodzic
946e15ff20
commit
fdbaaa3e84
|
@ -29,14 +29,14 @@ You can also run with other models, but be warned they may not adhere to the edi
|
||||||
|
|
||||||
python wolverine.py --model=gpt-3.5-turbo buggy_script.py "subtract" 20 3
|
python wolverine.py --model=gpt-3.5-turbo buggy_script.py "subtract" 20 3
|
||||||
|
|
||||||
You can also use flag `--confirm=True` which will ask you `yes or no` before making changes to the file. If flag is not used then it will apply the changes to the file
|
|
||||||
|
|
||||||
python wolverine.py buggy_script.py "subtract" 20 3 --confirm=True
|
|
||||||
|
|
||||||
If you want to use GPT-3.5 by default instead of GPT-4 uncomment the default model line in `.env`:
|
If you want to use GPT-3.5 by default instead of GPT-4 uncomment the default model line in `.env`:
|
||||||
|
|
||||||
DEFAULT_MODEL=gpt-3.5-turbo
|
DEFAULT_MODEL=gpt-3.5-turbo
|
||||||
|
|
||||||
|
You can also use flag `--confirm=True` which will ask you `yes or no` before making changes to the file. If flag is not used then it will apply the changes to the file
|
||||||
|
|
||||||
|
python wolverine.py buggy_script.py "subtract" 20 3 --confirm=True
|
||||||
|
|
||||||
## Future Plans
|
## Future Plans
|
||||||
|
|
||||||
This is just a quick prototype I threw together in a few hours. There are many possible extensions and contributions are welcome:
|
This is just a quick prototype I threw together in a few hours. There are many possible extensions and contributions are welcome:
|
||||||
|
|
|
@ -108,6 +108,8 @@ def send_error_to_gpt(file_path, args, error_message, model=DEFAULT_MODEL):
|
||||||
|
|
||||||
return json_validated_response(model, messages)
|
return json_validated_response(model, messages)
|
||||||
|
|
||||||
|
# Added the flag -confirm which will ask user before writing changes to file
|
||||||
|
|
||||||
|
|
||||||
def apply_changes(file_path, changes: list, confirm=False):
|
def apply_changes(file_path, changes: list, confirm=False):
|
||||||
"""
|
"""
|
||||||
|
|
Ładowanie…
Reference in New Issue