[](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)
@ -78,9 +78,9 @@ This project will be continuously maintained. If you want to keep the code repos
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:
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
@ -96,6 +96,38 @@ 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)
OpanAI 密钥。
Your openai api key.
### `CODE` (optional)
访问密码,可选,可以使用逗号隔开多个密码。
Access passsword, separated by comma.
### `BASE_URL` (optional)
> Default: `api.openai.com`
OpenAI 接口代理 URL。
Override openai api request base url.
### `PROTOCOL` (optional)
> Default: `https`
> Values: `http` | `https`
OpenAI 接口协议。
Override openai api request protocol.
## 开发 Development
点击下方按钮,开始二次开发:
@ -118,11 +150,11 @@ OPENAI_API_KEY=<your api key here>
varinputHints=`Type something and press ${submitKey} to send`;
@ -79,7 +80,7 @@ const en: LocaleType = {
Prompt:{
Disable:{
Title:"Disable auto-completion",
SubTitle:"After disabling, auto-completion will not be available",
SubTitle:"Input / to trigger auto-completion",
},
List:"Prompt List",
ListCount:(builtin: number,custom: number)=>
@ -100,6 +101,14 @@ const en: LocaleType = {
SubTitle:"Use your key to ignore access code limit",
Placeholder:"OpenAI API Key",
},
Usage:{
Title:"Account Balance",
SubTitle(granted: any,used: any){
return`Total $${granted}, Used $${used}`;
},
IsChecking:"Checking...",
Check:"Check Again",
},
AccessCode:{
Title:"Access Code",
SubTitle:"Access control enabled",
@ -129,7 +138,7 @@ const en: LocaleType = {
"This is a summary of the chat history between the AI and the user as a recap: "+
content,
Topic:
"Provide a brief topic of the sentence without explanation. If there is no topic, return 'Chitchat'.",
"Please generate a four to five word title summarizing our conversation without any lead-in, punctuation, quotation marks, periods, symbols, or additional text. Remove enclosing quotation marks.",
Summarize:
"Summarize our discussion briefly in 50 characters or less to use as a prompt for future context.",