一个网站按钮怎么做,中国建设协会八大员,几分钟网站做渔网,wordpress手机端底部按钮改造 ChatGPT-Next-Web 项目重新生成 Docker 镜像 0.背景1. 修改代码2. 生成 Docker 镜像3. 上传 Docker 镜像4. 运行 Docker 镜像 0.背景
需要通过 ChatGPT-Next-Web 使用自己搭建的 OpenAI API 兼容的服务器#xff0c;需要对 ChatGPT-Next-Web 项目的少量代码进行改造。
… 改造 ChatGPT-Next-Web 项目重新生成 Docker 镜像 0.背景1. 修改代码2. 生成 Docker 镜像3. 上传 Docker 镜像4. 运行 Docker 镜像 0.背景
需要通过 ChatGPT-Next-Web 使用自己搭建的 OpenAI API 兼容的服务器需要对 ChatGPT-Next-Web 项目的少量代码进行改造。
1. 修改代码
克隆代码
git clone https://github.com/Yidadaa/ChatGPT-Next-Web; cd ChatGPT-Next-Web修改代码
sed -i s/role: user/role: system/g app/masks/cn.ts
sed -i s/role: user/role: system/g app/masks/en.ts2. 生成 Docker 镜像
docker build -t your_dockerhub_name/chatgpt-next-web:v2.9.1 .3. 上传 Docker 镜像
docker push your_dockerhub_name/chatgpt-next-web:v2.9.14. 运行 Docker 镜像
docker run -d --restartalways -p 3000:3000 -e OPENAI_API_KEYyour_openai_key -e CODEyour_password -e BASE_URLyour_base_url your_dockerhub_name/chatgpt-next-web:v2.9.1完结