Skip to content

About

An AI command-line agent based on OpenAI APIs and Docker.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

Repository files navigation

💻 gpt-does-stuff

An AI command-line agent based on OpenAI APIs and Docker.

Setup

  • Install requirements:
pip3 install -r requirements.txt
  • This project requires Docker.
  • Add your OpenAI API to the environment variables:
export OPENAI_API_KEY=<your_key>

Run

python3 agent.py <model> <instruction>
  • Model can be gpt-3.5-turbo or gpt-4 (provided you have access to its APIs).

Example:

python3 agent.py "gpt-3.5-turbo" "print date and time"

Example runs

Goal GPT-3.5 GPT-4
print date and time ✅ result ✅ result
print hello world with Python ✅ result ✅ result
perform a Google search ❌ result ❌ result
retrieve the value of Europe's total population ✅ result 🔁 result
implement a tutorial for jq ❌ result ✅ result
establish peace in the world ❌ result 🔁 result

✅ goal achieved ❌ goal missed 🔁 endless loop

About

An AI command-line agent based on OpenAI APIs and Docker.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Used by

Contributors

Languages