This project shows how to integrate chatGPT in Django to build a chatbot
Backend: Django
Frontend: HTML, jQuery (Ajax)
Prerequisites: Python3, pipenv
Django: https://docs.djangoproject.com/en/4.0/topics/install/#installing-official-release
Get Open AI key: https://platform.openai.com/account/api-keys/
Setup Open AI Paid account: https://platform.openai.com/account/billing/overview
Setup Open AI Usagage limit: https://platform.openai.com/account/billing/limits
- Checkout the code
- Create a virtual environment (pipenv shell)
- Install all the packages (pipenv install)
- Add OpenAI key in /src/src/settings.py
- Navigate inside the project (cd src)
- Run the backend server (python manage.py runserver)
- Visit the server link (http://localhost:8000/)