Skip to content

A django based chatbot build on top of the openAI API

License

Notifications You must be signed in to change notification settings

Denisganga/chatgpt_clone

Repository files navigation

Django Chatbot with OpenAI API Integration

This is a Django-based chatbot application that leverages the OpenAI API for natural language processing and conversation generation.

Example Image

Prerequisites

  • Python (version 3.11.7)
  • Django (version 3.2.20)
  • OpenAI API key (version 0.28)

Getting Started

1. Clone the Repository

git clone https://github.com/denisganga/chatgpt_clone.git

cd django-chatbot

2. Setup Virtual Environment

# Create a virtual environment
python3 -m venv myenv

# Activate the virtual environment
# On Windows
myenv\Scripts\activate
# On Unix or MacOS
source myenv/bin/activate

3. Install dependancies

pip install -r requirements.txt

4. Set Up OpenAI API Key

From the OpenAi website get your API key and add it in your views.py file

5. Apply Migration

python3 manage.py makemigrations
python3 manage.py migrate

6. Run the development server

python3 manage.py runserver

7. Features

  1. Login Page
  2. Register Page
  3. Conversational chatbot powered by OpenAI API.

8. Usage

Type on the message box and the chatbot will respond to you

9. Contribution

Contribution is welcomed, I Welcome Your Pull Requests: Contribute to the Chatbot

10. License

This project is licensed under the MIT_License.

11. Acknowledgements

OpenAI for providing the powerful natural language processing capabilities.

About

A django based chatbot build on top of the openAI API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published