You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2FYidadaa%2FChatGPT-Next-Web&env=OPENAI_API_KEY&project-name=chatgpt-next-web&repository-name=ChatGPT-Next-Web)
12
+
[](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2FYidadaa%2FChatGPT-Next-Web&env=OPENAI_API_KEY&env=CODE&project-name=chatgpt-next-web&repository-name=ChatGPT-Next-Web)
13
13
14
14
[](https://gitpod.io/#https://github.com/Yidadaa/ChatGPT-Next-Web)
15
15
@@ -22,6 +22,7 @@ One-Click to deploy your own ChatGPT web UI.
@@ -31,22 +32,33 @@ One-Click to deploy your own ChatGPT web UI.
31
32
-**Deploy for free with one-click** on Vercel in under 1 minute
32
33
- Responsive design, and dark mode
33
34
- Fast first screen loading speed (~85kb)
35
+
- Awesome prompts powered by [awesome-chatgpt-prompts-zh](https://github.com/PlexPt/awesome-chatgpt-prompts-zh) and [awesome-chatgpt-prompts](https://github.com/f/awesome-chatgpt-prompts)
34
36
- Automatically compresses chat history to support long conversations while also saving your tokens
35
37
- One-click export all chat history with full Markdown support
36
38
37
-
## 使用
39
+
## 开发计划 Roadmap
40
+
- System Prompt: pin a user defined prompt as system prompt 为每个对话设置系统 Prompt [#138](https://github.com/Yidadaa/ChatGPT-Next-Web/issues/138)
41
+
- User Prompt: user can edit and save custom prompts to prompt list 允许用户自行编辑内置 Prompt 列表
42
+
- Self-host Model: support llama, alpaca, ChatGLM, BELLE etc. 支持自部署的大语言模型
43
+
- Plugins: support network search, caculator, any other apis etc. 插件机制,支持联网搜索、计算器、调用其他平台 api [#165](https://github.com/Yidadaa/ChatGPT-Next-Web/issues/165)
44
+
45
+
### 不会开发的功能 Not in Plan
46
+
- User login, accounts, cloud sync 用户登陆、账号管理、消息云同步
47
+
- UI text customize 界面文字自定义
48
+
49
+
## 开始使用
38
50
39
51
1. 准备好你的 [OpenAI API Key](https://platform.openai.com/account/api-keys);
40
52
2. 点击右侧按钮开始部署:
41
-
[](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2FYidadaa%2FChatGPT-Next-Web&env=OPENAI_API_KEY&project-name=chatgpt-next-web&repository-name=ChatGPT-Next-Web),直接使用 Github 账号登陆即可,记得在环境变量页填入 API Key;
53
+
[](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2FYidadaa%2FChatGPT-Next-Web&env=OPENAI_API_KEY&env=CODE&project-name=chatgpt-next-web&repository-name=ChatGPT-Next-Web),直接使用 Github 账号登陆即可,记得在环境变量页填入 API Key;
42
54
3. 部署完毕后,即可开始使用;
43
55
4. (可选)[绑定自定义域名](https://vercel.com/docs/concepts/projects/domains/add-a-domain):Vercel 分配的域名 DNS 在某些区域被污染了,绑定自定义域名即可直连。
44
56
45
57
## Get Started
46
58
47
59
1. Get [OpenAI API Key](https://platform.openai.com/account/api-keys);
48
60
2. Click
49
-
[](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2FYidadaa%2FChatGPT-Next-Web&env=OPENAI_API_KEY&project-name=chatgpt-next-web&repository-name=ChatGPT-Next-Web);
61
+
[](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2FYidadaa%2FChatGPT-Next-Web&env=OPENAI_API_KEY&env=CODE&project-name=chatgpt-next-web&repository-name=ChatGPT-Next-Web);
50
62
3. Enjoy :)
51
63
52
64
## 保持更新 Keep Updated
@@ -76,24 +88,56 @@ This project will be continuously maintained. If you want to keep the code repos
76
88
77
89
You can star or watch this project or follow author to get release notifictions in time.
This project provides limited access control. Please add an environment variable named `CODE` on the environment variables page. The value should be a custom control code separated by comma like this:
101
+
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:
90
102
91
103
```
92
104
code1,code2,code3
93
105
```
94
106
95
107
After adding or modifying this environment variable, please redeploy the project for the changes to take effect.
96
108
109
+
## 环境变量 Environment Variables
110
+
111
+
### `OPENAI_API_KEY` (required)
112
+
113
+
OpanAI 密钥。
114
+
115
+
Your openai api key.
116
+
117
+
### `CODE` (optional)
118
+
119
+
访问密码,可选,可以使用逗号隔开多个密码。
120
+
121
+
Access passsword, separated by comma.
122
+
123
+
### `BASE_URL` (optional)
124
+
125
+
> Default: `api.openai.com`
126
+
127
+
OpenAI 接口代理 URL。
128
+
129
+
Override openai api request base url.
130
+
131
+
### `PROTOCOL` (optional)
132
+
133
+
> Default: `https`
134
+
135
+
> Values: `http` | `https`
136
+
137
+
OpenAI 接口协议。
138
+
139
+
Override openai api request protocol.
140
+
97
141
## 开发 Development
98
142
99
143
点击下方按钮,开始二次开发:
@@ -117,16 +161,8 @@ OPENAI_API_KEY=<your api key here>
how to deploy nextjs project with pm2 and yarn on my ubuntu server, the build command is `yarn build`, the start command is `yarn start`, the project must start with env var named `OPENAI_API_KEY`, the port is 3000, use ngnix
0 commit comments