ChatGPT使用教程(API调用版)

本版本使用docker环境搭建

先决条件

  • 可用的openai(ChatGPT)的ApiKey
  • 一个服务器(云服务器,vps等)
  • ssh客户端软件(xshell,finalshell等)

教程环境

操作系统:centos 7.9

ssh客户端:xshell

一、安装Docker环境

1. 安装docker

curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun

如果是国外环境,可以去掉 –mirror Aliyun

curl -fsSL https://get.docker.com | bash -s docker

2. 启动docker

设置开机自动启动

systemctl enable docker

启动docker

systemctl start docker

二、启动 ChatGTP-web 容器

docker run --name chatgpt-web -d -p 80:3002 --env OPENAI_API_KEY=你的ApiKey chenzhaoyu94/chatgpt-web

启动后就可以使用80端口访问你的服务

chatgpt.ybot.cc_

感谢作者开源此项目 https://github.com/Chanzhaoyu/chatgpt-web

© 版权声明
THE END
喜欢就支持一下吧
点赞1 分享
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称表情代码图片

    暂无评论内容