简化下操作过程,腾讯云TencentOS3.1验过
信息 |
---|
yum install git -y
git clone https://github.com/yuezk/chatgpt-mirror.git
cd chatgpt-mirror
## 并新建一个 .env 文件,输入 OPENAI_API_KEY:可以前往 API-Keys(platform.openai.com/account/api… 生成
OPENAI_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
yum install nodejs -y npm install -g n npm install -g pnpm n latest pnpm install pnpm run build pnpm run start:prod
nohup pnpm run start:prod > server.log 2>&1 &
|
1. 下载代码
ChatGPT 的镜像源码,我选择 yuezk/chatgpt-mirror
,github 上也有其他的模板,没有仔细去对比差异,只要能用即可。
...