Git Product home page Git Product logo

chatgpt-react's Introduction

Deploy your private ChatGPT

gpt

English | δΈ­ζ–‡

The purpose of this repository is to enable you to easily deploy your own private ChatGPT website. You can use your own OpenAI screct key, set password to the enviroment variables, deploy it, and share the website with your friends!

It has the following basic features:

  • Streaming data
  • Server-side rendering
  • Code block highlighting
  • Responsive Design
  • Dark mode
  • Save conversations as an image
  • Sentry monitor

List of technologies used:

  • Next.js
  • React.js
  • Tailwindcss
  • Sentry
  • Vercel

Steps

Step 1

Go to OpenAI platform to get your secret key.

Step 2

Fork this repo. (and star it, btw :D)

Step 3

Go to Vercel (or any other deploy method you prefer) and find the repository you have just forked.

Step 4

Before you hit the deploy button, add some Environment Variables are necessary:

  1. OPENAI_API_KEY: This is your OpenAI secret key generated in step 1.
  2. PASSWORD: This is a simple authorization strategy where you can add one or multiple passwords (separated by commas) and share the password with your partners.
  3. MODEL: Optional, a model of the API, default to 'gpt-3.5-turbo'.

now, hit the deploy button, that's it! (You can bind your own domains later)

More

You can create a password for each of your friends that represents their name, so that you can access Sentry and see each person's usage and any potential error events within Sentry. You can directly integrate Sentry through Vercel.

sentry

Development

install the dependencies:

npm i

add .env.local to the root directory.

OPENAI_API_KEY=your_openai_secret_key
PASSWORD=user1,user2

Now you can start it:

npm run dev

Finally, open http://localhost:3007

chatgpt-react's People

Contributors

baihegpt avatar shezhangzhang 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.