Giter VIP home page Giter VIP logo

chatgpt-3.5-clone's Introduction

ChatGPT 3.5 Turbo with DALL·E image generation model

This is a version of ChatGPT that has characteristics similar to those of the chat created by OpenAI, only now you can have it in your local or production environment and modify it to your liking.

  • Firebase authentication so you must create an app there (free).
  • Stores chat rooms and messages with MySQL.
  • Remember the conversations to have a context of them.
  • You can have multiple chat rooms.
  • Light/Night mode.
  • Responsive design for smartphones.

Install

Client

cd client && npm i

Server

cd server
go mod download

Configuration

Server

  1. Obtain your openai api key from here
  2. cd goserver
  3. Copy .env.example to .env
  4. Add your openai api key inside .env
  5. Make sure you have added .env to your .gitignore file

MYSQL DB

  1. Import goserver/database/schema.sql to your MySQL server
  2. Complete MySQL DB credentials in .env file
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=<DB_NAME>
DB_USERNAME=<DB_USER>
DB_PASSWORD=<DB_PASS>

Client

  1. Obtain your firebase credential from here
  2. cd client
  3. Copy .env.example to .env
  4. Add your fiirebase config and server url
  5. Make sure you have added .env to your .gitignore file

Run

Client

cd client
npm start

Server

cd goserver
go run main.go

Tech used

  • OpenAI API
  • GOLand
  • Firebase
  • React
  • Tailwindcss
  • MySQL

Credits

📝 License © Eyuel

📝 License © Alorse (GO Version)

This project is released under the Apache License 2.0 license. See LICENSE for details.

chatgpt-3.5-clone's People

Contributors

eyucoder avatar alorse avatar snowfluke 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.