A ChatGPT clone using OpenAI API key
- OpenAI
- Python
- Html
- CSS
- JS
- Fork the repository, and clone the repository!
Clone project
git clone https://github.com/nandinichhajed/ChatGPT.git
Create virtual Environment
virtualenv venv
Activate virtual Environment
- Windows
.\venv\Scripts\activate
- Linux
source ./venv/bin/activate
Install dependencies
pip install -r requirements.txt
Note:
1. Create a .env file and enter your SECRET_KEY and openai.api_key here.
2. In chat app go to views.py and change `model=` compatable with your API Key
Migrate
python manage.py makemigrations
python manage.py migrate
Create super user
python manage.py createsuperuser
Run server
python manage.py runserver
( * Running on http://127.0.0.1:8000/)
Give a ⭐️ if this project helped you!
These samples may be updated from time to time so you might want to get updates
using git pull
. Also if there are bugs, you are welcome to submit
a Pull Request on github.Either
Reach out to me on LinkedIn.
Nandini Chhajed
Email: nandinichhajed08@gmail.com