mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-03-18 12:40:06 +08:00
docs: update README.md
This commit is contained in:
@@ -13,6 +13,8 @@
|
||||
|
||||
|
||||
# 更新日志
|
||||
>**2023.02.09:** 扫码登录存在封号风险,请谨慎使用,参考[#58](https://github.com/AutumnWhj/ChatGPT-wechat-bot/issues/158)
|
||||
|
||||
>**2023.02.05:** 在openai官方接口方案中 (GPT-3模型) 实现上下文对话
|
||||
|
||||
>**2022.12.19:** 引入 [itchat-uos](https://github.com/why2lyj/ItChat-UOS) 替换 itchat,解决由于不能登录网页微信而无法使用的问题,且解决Python3.9的兼容问题
|
||||
@@ -120,7 +122,7 @@ cp config-template.json config.json
|
||||
```bash
|
||||
python3 app.py
|
||||
```
|
||||
终端输出二维码后,使用微信进行扫码,当输出 "Start auto replying" 时表示自动回复程序已经成功运行了(注意:用于登录的微信需要在支付处已完成实名认证)。扫码登录后,就可以在微信手机端通过配置的关键词触发自动回复了。
|
||||
终端输出二维码后,使用微信进行扫码,当输出 "Start auto replying" 时表示自动回复程序已经成功运行了(注意:用于登录的微信需要在支付处已完成实名认证)。扫码登录后你的账号就成为机器人了,可以在微信手机端通过配置的关键词触发自动回复 (任意好友发送消息给你,或是自己发消息给好友),参考[#142](https://github.com/zhayujie/chatgpt-on-wechat/issues/142)。
|
||||
|
||||
|
||||
2.如果是 **服务器部署**,则使用nohup命令在后台运行:
|
||||
|
||||
@@ -17,8 +17,8 @@ class BaiduUnitBot(Bot):
|
||||
return response.json()['result']['context']['SYS_PRESUMED_HIST'][1]
|
||||
|
||||
def get_token(self):
|
||||
access_key = 'wdNwpvzh4fBr8xzTuPePOWhU'
|
||||
secret_key = 'EUtLXyrogfTQV8nnjncnqNEfeyoHDUqS'
|
||||
access_key = 'YOUR_ACCESS_KEY'
|
||||
secret_key = 'YOUR_SECRET_KEY'
|
||||
host = 'https://aip.baidubce.com/oauth/2.0/token?grant_type=client_credentials&client_id=' + access_key + '&client_secret=' + secret_key
|
||||
response = requests.get(host)
|
||||
if response:
|
||||
|
||||
Reference in New Issue
Block a user