Open source, open-chat based Python AI bot.
Starts all services with all features and auto-reload.
docker-compose up --build
First setup your env in .env
, add the following to your default setup:
e.g. use the following setup with your own OPENAI_API_KEY
, to use the bot in development:
MODEL_BACKEND="openai"
DEFAULT_MODEL="gpt-3.5-turbo"
OPENAI_API_KEY="sk-***"
MODEL_BACKEND="deepinfra"
DEFAULT_MODEL="meta-llama/Meta-Llama-3-70B-Instruct"
DEEPINFRA_API_KEY="****"
python3 -m venv venv
source venv/bin/activate
pip install -r ./hal9003/requirements.txt
env $(cat .env | xargs) python3 -u hal9003/bot.py # start the bot
env $(cat .env | xargs) python3 -u hal9003/server.py # start the companion server
env $(cat .env | xargs) python3 -u hal9003/agent.py
Build by @tbscode to work with open-chat. Checkout open-chat.