An AI command-line agent based on OpenAI APIs and Docker.
- 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>python3 agent.py <model> <instruction>- Model can be
gpt-3.5-turboorgpt-4(provided you have access to its APIs).
Example:
python3 agent.py "gpt-3.5-turbo" "print date and time"| 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