Go to file
Dogtiti 278ed92717 feat: optimize README 2023-04-01 11:31:05 +08:00
.github/workflows Update docker.yml 2023-03-31 23:03:57 +08:00
.husky feat: add lint-staged 2023-03-28 18:09:05 +00:00
.vscode feat: add basic ui 2023-03-10 01:01:40 +08:00
app Merge branch 'Yidadaa:main' into main 2023-03-31 19:21:46 +08:00
public feat: close #2 add check account balance 2023-03-29 17:45:26 +00:00
scripts fix: docker build 2023-03-30 17:41:43 +00:00
static doc: update readme 2023-03-22 03:30:11 +00:00
.eslintignore feat: add PWA support 2023-03-27 17:53:32 +08:00
.eslintrc.json feat: add lint-staged 2023-03-28 18:09:05 +00:00
.gitignore feat: #2 add prompt list 2023-03-28 17:45:23 +00:00
.gitpod.yml fix: styles and mobile ux 2023-03-15 03:54:14 +00:00
.lintstagedrc.json feat: #112 add edit chat title 2023-03-29 16:02:50 +00:00
.prettierrc.js feat: add lint-staged 2023-03-28 18:09:05 +00:00
Dockerfile fix: docker build 2023-03-30 17:41:43 +00:00
LICENSE doc: update readme 2023-03-21 17:50:02 +00:00
README-zh_CN.md feat: optimize README 2023-04-01 11:31:05 +08:00
README.md feat: optimize README 2023-04-01 11:31:05 +08:00
middleware.ts fix: middleware match error 2023-03-29 18:09:15 +00:00
next.config.js perf: build in stages to reduce container size 2023-03-27 13:49:26 +08:00
package.json feat: import ramarkBreaks plugin 2023-03-30 12:48:38 +08:00
tsconfig.json feat: #2 add access control by 2023-03-26 06:53:40 +00:00
yarn.lock fix: update yarn.lock file 2023-03-30 09:55:41 +00:00

README.md

预览

ChatGPT Next Web

One-Click to deploy your own ChatGPT web UI.

Demo / Issues / Discord / QQ / Donate by WechatPay / Donate

Deploy with Vercel

Open in Gitpod

主界面

English | 简体中文

Features

  • Deploy for free with one-click on Vercel in under 1 minute
  • Responsive design, and dark mode
  • Fast first screen loading speed (~85kb)
  • Awesome prompts powered by awesome-chatgpt-prompts-zh and awesome-chatgpt-prompts
  • Automatically compresses chat history to support long conversations while also saving your tokens
  • One-click export all chat history with full Markdown support

Roadmap

  • System Prompt: pin a user defined prompt as system prompt #138
  • User Prompt: user can edit and save custom prompts to prompt list
  • Self-host Model: support llama, alpaca, ChatGLM, BELLE etc.
  • Plugins: support network search, caculator, any other apis etc. #165

Not in Plan

  • User login, accounts, cloud sync
  • UI text customize

Get Started

  1. Get OpenAI API Key
  2. Click Deploy with Vercel
  3. Enjoy :)
  4. Custom Domain (Optional)

Keep Updated

If you have deployed your own project with just one click following the steps above, you may encounter the issue of "Updates Available" constantly showing up. This is because Vercel will create a new project for you by default instead of forking this project, resulting in the inability to detect updates correctly.

We recommend that you follow the steps below to re-deploy:

  • Delete the original repo;
  • Fork this project;
  • Go to the Vercel dashboard, delete the original project, then create a new project and select the project you just forked to redeploy;
  • Please manually add an environment variable named OPENAI_API_KEY and enter your API key as the value during the redeploy process.

This project will be continuously maintained. If you want to keep the code repository up to date, you can check out the Github documentation to learn how to synchronize a forked project with upstream code. It is recommended to perform synchronization operations regularly.

You can star or watch this project or follow author to get release notifictions in time.

Password

This project provides limited access control. Please add an environment variable named CODE on the vercel environment variables page. The value should be passwords separated by comma like this:

code1,code2,code3

After adding or modifying this environment variable, please redeploy the project for the changes to take effect.

Environment Variables

OPENAI_API_KEY (required)

Your openai api key.

CODE (optional)

Access passsword, separated by comma.

BASE_URL (optional)

Default: api.openai.com

Override openai api request base url.

PROTOCOL (optional)

Default: https

Values: http | https

Override openai api request protocol.

Development

Click the button below to start secondary development:

Open in Gitpod

Before starting development, you must create a new .env.local file at project root, and place your api key into it:

OPENAI_API_KEY=<your api key here>

Local Development

  1. install nodejs and yarn,to obtain additional information, you can ask ChatGPT for further details
  2. run yarn install && yarn dev

Local Deployment

bash <(curl -s https://raw.githubusercontent.com/Yidadaa/ChatGPT-Next-Web/main/scripts/setup.sh)

Docker Deployment

docker pull yidadaa/chatgpt-next-web

docker run -d -p 3000:3000 -e OPENAI_API_KEY="" -e CODE="" yidadaa/chatgpt-next-web

Screenshots

设置 Settings

更多展示 More

Donate USDT

BNB Smart Chain (BEP 20)

0x67cD02c7EB62641De576a1fA3EdB32eA0c3ffD89

Special Thanks

Sponsor

@mushan0x0 @ClarenceDan @zhangjia @hoochanlon

Contributor

Contributors

LICENSE

Anti 996 License