A small autonomous AI agent based on BabyAGI by Yohei Nakajima.
Originally made to work with GPT4ALL on CPU by kroll-software here. This is a small fork to make it compatible with the API from oobabooga's web interface.
100% open source, 100% local, no API-keys needed.
Prerequisite: Install https://github.com/oobabooga/text-generation-webui.
- Clone this repository
- Install the requirements: pip install -r requirements.txt
- Copy the file .env.example to .env, and edit it to reflect your host name, port, and desired goal for the agent. There are other parameters as well.
Now, start up oobabooga's ui with the --api option. It should be listening on host "localhost" and port "5000" by default, meaning if you haven't changed anything about the config, you probably don't have to change those fields in .env. You also have to load a model; you can do this by just going to the web ui normally, or by passing the --model argument to server.py.
Then run python babyagi.py
Seriously all credits to kroll-software, all I did was plug it into Ooba's api :)