Skip to content

Alorse/chatgpt-3.5

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

This app is a ChatGPT Clone with DALL.E using OpenAIs gpt-3.5-turbo and image generation Model with Backend in GO

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 59.2%
  • Go 25.3%
  • CSS 14.4%
  • HTML 1.1%