ChatGPT是OpenAI开发的一款AIGC产品。
在这个链接查看:
https://platform.openai.com/docs/supported-countries
明确新加坡、日本、德国、美国、印度、南非、泰国、英国等地区支持,中国香港不支持,这几个地方都有微云网络的数据中心服务,本次用美国进行注册。
登录https://openai.com/api/点SIGN UP

输入邮箱进行登录:


收美区短信验证码,此处略过。
注册成功:

登录之后点击头像申请API的KEY

创建新的API KEY:

记录API KEY:

在微云网络部署一台优化后的服务器,优化国内和日本访问。

部署chatgpt安装环境:
git clone https://github.com/zhayujie/chatgpt-on-wechat
cd chatgpt-on-wechat/
sudo apt-get update
sudo apt-get upgrade
sudo apt install python3-pip
pip3 install itchat-uos==1.5.0.dev0
pip3 install --upgrade openai -i https://pypi.tuna.tsinghua.edu.cn/simple/
python3 -m pip install openapi

cp config-template.json config.json
vi config.json
填入API的KEY

执行运行命令:
touch nohup.out
nohup python3 app.py & tail -f nohup.out

测试bot机器人:

欢迎各位咨询。