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&env=CODE&project-name=chatgpt-next-web&repository-name=ChatGPT-Next-Web)
13
13
@@ -78,24 +78,56 @@ This project will be continuously maintained. If you want to keep the code repos
78
78
79
79
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:
91
+
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:
92
92
93
93
```
94
94
code1,code2,code3
95
95
```
96
96
97
97
After adding or modifying this environment variable, please redeploy the project for the changes to take effect.
98
98
99
+
## 环境变量 Environment Variables
100
+
101
+
### `OPENAI_API_KEY` (required)
102
+
103
+
OpanAI 密钥。
104
+
105
+
Your openai api key.
106
+
107
+
### `CODE` (optional)
108
+
109
+
访问密码,可选,可以使用逗号隔开多个密码。
110
+
111
+
Access passsword, separated by comma.
112
+
113
+
### `BASE_URL` (optional)
114
+
115
+
> Default: `api.openai.com`
116
+
117
+
OpenAI 接口代理 URL。
118
+
119
+
Override openai api request base url.
120
+
121
+
### `PROTOCOL` (optional)
122
+
123
+
> Default: `https`
124
+
125
+
> Values: `http` | `https`
126
+
127
+
OpenAI 接口协议。
128
+
129
+
Override openai api request protocol.
130
+
99
131
## 开发 Development
100
132
101
133
点击下方按钮,开始二次开发:
@@ -118,11 +150,11 @@ OPENAI_API_KEY=<your api key here>
0 commit comments