jakkph / chatgpt-autopilot

GPTAuto-pilot that uses function calling to build whatever you can describe to it or edit existing apps. (Inspired from Unconventional coding)

Home Page:https://gptautopilot.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ChatGPT-AutoPilot

A ChatGPT API powered Python script that can build almost anything with the power of the [Function Calling]

(https://openai.com/blog/function-calling-and-other-api-updates).

Just tell it what you want to build, and it will build it and ask you clarifying questions along the way.

Usage

$ ./gpt-autopilot.py

Linux

You can either clone the repository and run gpt-autopilot.py

1. Export your OpenAI API key as OPENAI_API_KEY environment variable or put it in the config.json file (see config.sample.json). You can also run the program directly, and it will ask you for your API key.

$ export OPENAI_API_KEY=YOUR_API_KEY

2. Install the latest version of the openai python package

$ pip install --upgrade openai

3. Run the script. It will ask you for a prompt.

$ ./gpt-autopilot.py

Where does the output go?

The files will be written to the code directory, relative to the path of the executable. If you use the --dir flag, files will be written to the directory you specify. If you use the --versions flag, the files will be written to the versions directory.

Does it work with GPT-3.5 or GPT-4?

Yes. The default model is gpt-3.5-turbo-16k-0613. You can change it in the config.json file. Make sure to use the 0613 models since only they support function calling. GPT-4 (gpt-4-0613) will provide more capabilities for certain tasks, but will be a lot more expensive. It is recommended to try it with GPT-3.5 first.

About

GPTAuto-pilot that uses function calling to build whatever you can describe to it or edit existing apps. (Inspired from Unconventional coding)

https://gptautopilot.vercel.app

License:MIT License


Languages

Language:Python 99.3%Language:Batchfile 0.4%Language:Shell 0.4%