English | 简体中文
ChatGPT Lite is a fast ChatGPT UI application developed using Next.js. It supports both OpenAI and Azure OpenAI accounts.
Example use cases for GPT Lite include:
- A cost-effective alternative to ChatGPT's free version or Plus subscription ($20/month) by deploying a custom webchat UI with API integration.
- Deploying a custom ChatGPT web app to explore OpenAI's ChatGPT completion API and prompting capabilities.
- Creating a private web-based ChatGPT for exclusive use among friends without sharing an API key.
- A high-quality code base that serves as an excellent starting point for your next AI Next.js project.
Visit ChatGPT Minimal for a beginner-friendly version of the ChatGPT UI code base.
You'll need either an OpenAI account or an Azure OpenAI account.
- Install NodeJS 18.
- Clone the repository.
- Install dependencies with
npm install
. - Copy
.env.example
file 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
.
Click the button below to deploy to Vercel:
You will need to use the environment variables defined in .env.example
to run the application. Below is an explanation of each environment variable:
For OpenAI-specific environments:
Name | Description | Default Value |
---|---|---|
OPENAI_API_BASE_URL | Use only if you intend to use a reserved proxy for api.openai.com . |
https://api.openai.com |
OPENAI_API_KEY | Obtain secret key string from the Open AI API website. |
For Azure Open AI-specific environments:
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 |
We welcome PRs of any size.
This code is intended solely for demonstration and testing purposes.