Skip to content

tmanager22/gpt-3-execution

 
 

Repository files navigation

GPT-3xecute

An AI assistant that write and execute code for you.

GitHub stars

image

Features

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

How do I use this?

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!

  1. Make a telegram account and creating a new bot by talking to "BotFather" on Telegram. Follow instruction #1 here for an example.
  2. Make an OpenAI account and generate a new secret key here.
  3. Store the API keys that your generated in a .env file. See .env.example for the format you should use.
  4. Install the python dependencies and run!

Installing Python Dependencies

pip install -r requirements.txt

Your .env File

follow .env.example to create .env file

TELEGRAM_API_KEY = "foo"
OPENAI_API_KEY = "bar"

Run!

python main.py

Examples

image

image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.8%
  • Shell 0.2%