An AI assistant that write and execute code for you.
With some clever prompt engineering, OpenAI's text-davinci-003 has been given the capability to write and execute code to enable it to answer complex questions and accomplish multiple tasks. Some example tasks include:
- Answering complex math questions correctly
- Fetching the contents of an article on wikipedia
- Writing to and reading from local files
Currently, this is a self-host only solution. This repository allows GPT-3 to run arbitrary python code on your computer so don't ask it to do anything dangerous!
- Make a telegram account and creating a new bot by talking to "BotFather" on Telegram. Follow instruction #1 here for an example.
- Make an OpenAI account and generate a new secret key here.
- Store the API keys that your generated in a
.env
file. See.env.example
for the format you should use. - Install the python dependencies and run!
pip install -r requirements.txt
follow .env.example to create .env file
TELEGRAM_API_KEY = "foo"
OPENAI_API_KEY = "bar"
python main.py