首页 > 其他分享 >使用微信搭建openai机器人

使用微信搭建openai机器人

时间:2023-03-15 15:37:09浏览次数:42  
标签:微信 机器人 openai wechat chatgpt 搭建

搭建微信的openai的机器人

1、首先我们需要git clone项目

git clone https://github.com/zhayujie/chatgpt-on-wechat
cd chatgpt-on-wechat/

2、安装核心的依赖包

pip3 install itchat-uos==1.5.0.dev0
pip3 install --upgrade openai

3、复制配置文件

cp config-template.json config.json

4、配置文件

 

 5、本地运行

python3 app.py

 

 运行之后这里就会生成一个二维码,使用手机扫码后就登录到网页作为机器人微信号。

这里我本地运行了一下,是有回复的,证明是成功的,只是由于网络的原因没有正常回答。

 

 终端也是有信息输出的。

 

 6、服务器端的部署(需要有能够在内网外的服务器,欧美、日本、、、、国家的)

 

 具体参考:https://github.com/zhayujie/chatgpt-on-wechat  (感谢!)

标签:微信,机器人,openai,wechat,chatgpt,搭建
From: https://www.cnblogs.com/frank1/p/17218701.html

相关文章