[保姆教程]使用docker部署chatgpt on wechat

57次阅读

共计 639 个字符,预计需要花费 2 分钟才能阅读完成。

项目来自:
https://github.com/zhayujie/chatgpt-on-wechat
因为作者暂时没有提供 docker 部署的方式,所以我们只能自己 build。
注意该项目可能引起 WeChat 封号,务必使用小号进行。

1. 首先 git clone 项目

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

2. 编辑 config.json 文件,添加你的 api key

cp config-template.json config.json && nano confing.json

3. 创建一个 Dockerfile

nano Dockerfile

内容如下:

FROM python:3.9.16
RUN pip3 install itchat-uos==1.5.0.dev0 && pip3 install –upgrade openai
WORKDIR /home
ADD . .
CMD python3 app.py

4. 编译 Docker image

docker build -t chatgpt-on-wechat .

5. 启动 Docker

docker run -d –name chatgpt-on-wechat chatgpt-on-wechat

6. 扫码登陆微信

docker logs -f chatgpt-on-wechat

网友回复:

注册 这些东西还是别跟微信沾边的好

kimigao 等一个封号

louiejordan 自从一个未实名的小号扫码后被处理,就再也不改搞了

lfsc 最后微信号都被封了

正文完
 0