Local-only interface for chatting with AIs and recording the responses.
python -m venv .venv
. ./.venv/bin/activate
pip install -r requirements-dev.txt
You will need to run django migrations before starting the server
python manage.py migrate
Start django:
python manage.py startapp
You will require an AIModel record for gpt3.5-turbo - add this via the console
python manage.py shell
>>> m = AIModel(name="gpt3.5-turbo",input_token_cost="20", completion_token_cost="40")
>>> m.save()
Running this app in development requires ngrok.
Copy .env.example to .env and populate.
- Create a slack app via the UI and collect SLACK_BOT_TOKEN and SLACK_SIGNING_SECRET: https://api.slack.com/start/building/bolt-python
- Run ngrok and place the URL of your tunnel in NGROK_HOST in the .env file