Skip to content

thangchiba/ReactJS-ChatGPT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

License

MIT License

ChatGPT++

ChatGPT is a web application that allows you to chat with OpenAI's GPT-3.5 Turbo AI model. The application can speak out loud response messages, learn new things, and save your conversations to your local machine. You can also use the same model with ChatGPT Plus for a very low cost. You can also share with your friends, and the OpenAI account offers $18 free to use as ChatGPT Plus for 3-6 months or more. Ảnh màn hình 0005-03-10 lúc 00 46 14

Features

ChatGPT++ has the following features:

  • Speakable response: The AI's response can be spoken aloud by your browser.
  • Teachable AI: You can easy to teach the AI new things by providing it with examples of how to respond to certain inputs.
  • Local data storage: Your conversations with the AI are stored locally on your machine using the browser's local storage API. No login is required to use this app.
  • Responsive design : You can use both PC or Mobile. I will update for tablet after.

Usage

To use ChatGPT:

  1. Visit the live website here. You can use yourself openai api key or enter thangchiba to use my key. (On Right Bar)
  2. Enter your message in the text box and press "Send" to send it to the AI.
  3. The AI's response will be displayed below your message.
  4. To teach the AI a new response, click the "New Teach" button at the left bar next to the AI's response. Then, enter one or more examples of inputs that should trigger this response.

Installation On Node Environment

  1. Clone this repository to your local machine:
git clone https://github.com/thangchiba/reactjs-chatgpt.git

OPTIONS: If you want to set up a freetoken (user can use it for free when they enter "thangchiba" to access the token), you need to create a .env file on the same level as package.json. The content should be in this format: Content will this format :

  REACT_APP_GPT_TOKENS=sk-*******,sk-******,sk-****

You can set up only one, but when you set up an array, every time a user sends a message, the application will automatically pick a token to add to the request header.

  1. Install the required dependencies using Yarn or NPM:
  npm install
  1. Start the development server:
  npm start

Installation On Docker

On Linux

  docker run -p 3000:3000 thangchiba/chatgpt:amd64

Macos m1/m2 chip

  docker run -p 3000:3000 thangchiba/chatgpt:arm64

Then Visit http://localhost:3000 in your web browser to use the app.

Security

This application only serves to help you connect to OpenAI. If you want to secure your application, you will need a backend for that purpose.

Support

For support, email : thangchiba@gmail.com. If you can, please give me feedback so I can improve it. I plan to build a full-stack ChatGPT in the near future and will create a new repository for it. Please subscribe to me if you are interested.

License

This project is licensed under the MIT License. See the LICENSE file for details. You can use for any purpose. If you can, please give me a feed back.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages