Open YosuCadilla opened 11 months ago
Replace the placeholder 'api-key-placeholder' in '/lxd_client.py' with the actual API key provided for the project.
python app.py
GPTP could instead ask what the API key is and use the input to fix the code instead of asking the human to edit the file manually.
Version
Command-line (Python) version
Suggestion
On the CLI it is a bit of a pain to manually edit files, especially if GPTP asks 8 times in a row.
a) Suggest a port instead of requesting manual input to edit files. Example: Can I use port XXXXX? Pres enter for Yes or introduce a new port number.
Or alternatively b) scan the system for an empty port and use it instead of requesting manual input to edit files. Example: After checking your system, I have found port 23456 to be unused...
--- Example of what prompted me to write this request --- Updated file /root/gpt-pilot/workspace/m-deploy-py-33/app.py Input required on line 10: app.run(host='0.0.0.0', port=8080) // INPUT_REQUIRED {Choose a different port if 8080 is not available}
? Please open the file app.py on the line 10 and add the required input. Once you're done, type "y" to continue.