Coder Social home page Coder Social logo

chatgpt_clone_with_django's Introduction

ChatGPT Clone with Django

This project is a ChatGPT clone using Django, where users can interact with a chatbot powered by the OpenAI GPT-3.5 Turbo model.

Prerequisites

Before running the project, make sure you have the following installed:

  • Python (>=3.6)
  • Django
  • OpenAI Python Library

Installation

  1. Clone the repository:

    git clone https://github.com/LakshithaR/ChatGPT_Clone_with_Django.git
  2. Navigate to the project directory:

    cd chatgpt-django-clone
  3. Install the dependencies:

    pip install python
    pip install django
    pip install openai
  4. Configure OpenAI API Key:

    Get your OpenAI API key from OpenAI and set it in the Django project settings.

  5. Apply database migrations:

    python manage.py migrate
  6. Run the development server:

    python manage.py runserver
  7. Visit http://127.0.0.1:8000/ in your web browser to interact with the ChatGPT clone.

Usage

  1. Access the chatbot interface through the web browser.

  2. Type a message in the input box and press Enter.

  3. The chatbot will generate a response using the OpenAI GPT-3.5 Turbo model.

  4. Interact with the chatbot by sending more messages.

Customization

You can customize the chatbot behavior by modifying the ask_openai function in the views.py file.

chatgpt_clone_with_django's People

Contributors

lakshithar avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.