<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>This is blowing my mind.
— Matt Duff (@mattcduff) April 2, 2023
I built a quick #GPT4 program that creates its own code -> runs it -> bug fixes it -> and then adds new features to it... continuously... on loop... by itself. It just keeps on building 🤯
Literally creating software as you sleep. pic.twitter.com/g5YMExUJWJ
THIS IS NOT MY CODE, I received it freely from Matt Duff. He was offing the code out for free.
I'm not going to change anything in this, so go ahead and copy and modify.
This Python script utilizes the OpenAI API to generate Python code based on user prompts, execute the generated code, check for errors, and suggest new features while ensuring their correctness.
- Generate Python code using the OpenAI API
- Execute the generated code and check for errors
- Request new features from the OpenAI API
- Add new features to the code and ensure their correctness
- Python 3.6 or higher
- An OpenAI API key
-
Clone the repository:
-
Change the directory to the project folder:
-
Install the required packages:
-
Replace the "YOUR API KEY HERE" placeholder with your OpenAI API key in the
openai.api_key
variable. -
Run the script:
-
Follow the prompts to generate and execute Python code.
This project is licensed under the MIT License - see the LICENSE file for details.