Just a bot to gpt with, supports Anthropic and OpenAI.
Currently only works on Discord.
- Clone the repository
scrpts/build.sh
- Signup for an OpenAI API key and for a Discord bot token
- edit your configs/amibot_example.conf and save it as configs/amibot.conf
- Can be run using an S3 hosted file
python -m amibot -c s3:/bucket/to/config.yaml
- Or. Can be run using the local config file
python -m amibot -c configs/amibot.conf
- Build the docker image, I use
nerdctl
~/.rd/bin/nerdctl --namespace=k8s.io build -t amibot:0.0.1 -f ./build/package/Dockerfile .
- or pull image from registry
docker pull registry.gitlab.com/donrudo/amibot:0.0.5
- Run the pod
kubectl apply -k .
- Python: Make it cheaper: currently uses a Gateway pattern, which is expensive.
- Python: Replaced the need of a local configuration file, other configuration sources
- Python: Add a healthcheck.
- Python: Cure bot's amnesia, add database support (ex. pinecone, dynamodb, etc) to store conversations relevant fragments.
- K8s: Move config file to secrets.
- K8s: Use kubeseal to encrypt the config file.