docker run -d \
--net=host \
--name="chatgpt-next-web" \
-e OPENAI_API_KEY=API密钥sk-xxxx \
-e BASE_URL='中转地址' \
-e CUSTOM_MODELS="-all,+gpt-4o@OpenAI" \
-e CODE="你的访问密码" \
-e HIDE_USER_API_KEY=1 \
-e PROXY_URL=http://127.0.0.1:7890 \
yidadaa/chatgpt-next-web
代理地址填写你的代理地址,如果需要密码则修改为”http://127.0.0.1:7890 user password”
HIDE_USER_API_KEY=1的话将不开启让用户自行填入 API Key
CUSTOM_MODELS=”-all,+gpt-4o@OpenAI”表示只开启gpt-4o,其它方式请在官方文档自行查看
注意要使用命令行部署,Web端好像会有Bug
部署完成输入ip:3000即可访问了