I want to make a tool that takes: 1. The path of a small code file 2. A command to compile the code 3. Some natural language context And feeds compiler errors to GPT3, and ask for a diff on how to change the file, until it compiles.
Can't wait to try it on a makefile that doesn't compile. Don't think it's gonna work yet but as model capabilities rise maybe crazy things might happen
It's really not that hard at all. https://platform.openai.com/examples/default-fix-python-bugs
OpenAI already has an example, and all I had to do is add some python code to read the file & run it to generate the errors.
I guess this sortta shows how trivial it is to start an "AI Startup". You just call OpenAI's api and write some UI / UX / frame code, and voila!