duncanjbrown / chat_with_ai

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Chat with AI

Local-only interface for chatting with AIs and recording the responses.

Installation

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

Seed data

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 the Slack bot

Running this app in development requires ngrok.

Copy .env.example to .env and populate.

About


Languages

Language:Python 100.0%