tiny, exploitable chatbot that can use tools
something between chatgpt and perplexity.ai with a toolformer flavour
- Add OpenAI API and Bing Web Search API keys to the environment variables:
set OPENAI_API_KEY=XXX
set BING_SUBSCRIPTION_KEY=XXX
If you don't have Azure account, you can set it up here. Free tier gives you 1k calls per month.
- Installation
poetry install
- Run
poetry run python ./xoxo/main.py --user_name YOUR_NAME
- git clone the project
- copy .env.example from docker to the root of the project and name it .env
- put your values into the respective fields in .env file
- run the project from the root of the file using
docker-compose -f docker/docker-compose.yml build && docker-compose -f docker/docker-compose.yml run xoxo
- flushing conversation history when the max context length is close to being overflown
- add the local memory ~ cashing and retrieving information from previous conversations
- ui
- support other LLMs besides gpt
Contributions welcome !