English | 简体中文
Visit the ChatGPT Lite Demo Site
ChatGPT Lite is a lightweight ChatGPT web interface developed using Next.js and the OpenAI Chat API. It's compatible with both OpenAI and Azure OpenAI accounts.
- Deploy a custom ChatGPT web interface that supports markdown, prompt storage, and multi-person chats.
- Create a private, web-based ChatGPT for use among friends without sharing your API key.
- Clear and expandable codebase, ideal as a starting point for your next AI Next.js project.
For a beginner-friendly version of the ChatGPT UI codebase, visit ChatGPT Minimal.
You need an OpenAI or Azure OpenAI account.
Refer to the Environment Variables section for necessary environment variables.
Click the button below to deploy on Vercel:
For OpenAI account users:
docker run -d -p 3000:3000 \
-e OPENAI_API_KEY="<REPLACE-ME>" \
blrchen/chatgpt-lite
For Azure OpenAI account users:
docker run -d -p 3000:3000 \
-e AZURE_OPENAI_API_BASE_URL="<REPLACE-ME>" \
-e AZURE_OPENAI_API_KEY="<REPLACE-ME>" \
-e AZURE_OPENAI_DEPLOYMENT="<REPLACE-ME>" \
blrchen/chatgpt-lite
- Install NodeJS 18.
- Clone the repository.
- Install dependencies with
npm install
. - Copy
.env.example
to.env.local
and update environment variables. - Start the application using
npm run dev
. - Visit
http://localhost:3000
in your browser.
- Clone the repository and navigate to the root directory.
- Update the
OPENAI_API_KEY
environment variable in thedocker-compose.yml
file. - Build the application using
docker-compose build .
. - Start it by running
docker-compose up -d
.
Required environment variables:
For OpenAI account:
Name | Description | Default Value |
---|---|---|
OPENAI_API_BASE_URL | Use if you plan to use a reverse proxy for api.openai.com . |
https://api.openai.com |
OPENAI_API_KEY | Secret key string obtained from the OpenAI API website. | |
OPENAI_MODEL | Model of GPT used | gpt-3.5-turbo |
For Azure OpenAI account:
Name | Description |
---|---|
AZURE_OPENAI_API_BASE_URL | Endpoint (e.g., https://xxx.openai.azure.com). |
AZURE_OPENAI_API_KEY | Key |
AZURE_OPENAI_DEPLOYMENT | Model deployment name |
PRs of all sizes are welcome.