Skip to content

nandinichhajed/ChatGPT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChatGPT

A ChatGPT clone using OpenAI API key

Tech Used

  • OpenAI
  • Python
  • Html
  • CSS
  • JS

Run Locally

  • 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/)

Feedback

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.

Author

Nandini Chhajed
Email: nandinichhajed08@gmail.com

========Thank You !!!=========