From dddec09fab84c5eef2dbea3b013b6494ea2a38cf Mon Sep 17 00:00:00 2001 From: zhayujie Date: Wed, 22 Mar 2023 00:38:56 +0800 Subject: [PATCH] chore: add script directory --- README.md | 18 +++++++++--------- common/sensitive_word.py | 3 --- .../allow-http-nopassword.sh | 0 fix-itchat.sh => scripts/fix-itchat.sh | 0 4 files changed, 9 insertions(+), 12 deletions(-) rename allow-http-nopassword.sh => scripts/allow-http-nopassword.sh (100%) rename fix-itchat.sh => scripts/fix-itchat.sh (100%) diff --git a/README.md b/README.md index 6d3c026..5f31afe 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ - [x] [ChatGPT (gpt-3.5)](https://github.com/zhayujie/bot-on-anything#1-chatgpt) - [x] [GPT-3.0](https://github.com/zhayujie/bot-on-anything#2gpt-30) - - [x] 文心一言 (测试版) + - [x] [文心一言 (测试版)](https://github.com/zhayujie/bot-on-anything#3%E6%96%87%E5%BF%83%E4%B8%80%E8%A8%80-%E6%B5%8B%E8%AF%95%E7%89%88) - [x] [New Bing](https://github.com/zhayujie/bot-on-anything#4newbing) @@ -202,10 +202,15 @@ pip3 install --upgrade openai ``` 注:`itchat-uos`使用指定版本1.5.0.dev0,`openai`使用最新版本,需高于0.27.0。 -**修复 itchat-uos bug** -··· +**修复 itchat bug** + +如果 扫码后手机提示登录验证需要等待5s,而终端的二维码一直刷新并提示 Log in time out, reloading QR code,可以执行以下脚本快速修复: + +```bash bash fix-itchat.sh -··· +``` + +若自动修复无效,参考 [chatgpt-on-wechat/#8](https://github.com/zhayujie/chatgpt-on-wechat/issues/8) 手动修复。 **配置项说明:** @@ -480,8 +485,3 @@ pip3 install PyJWT flask 本地运行:`python3 app.py`运行后访问 `http://127.0.0.1:80` 服务器运行:部署后访问 `http://公网域名或IP:端口` - -**允许无密码访问** -``` -bash ./allow-http-nopassword.sh -``` diff --git a/common/sensitive_word.py b/common/sensitive_word.py index cea4d0d..b68c800 100644 --- a/common/sensitive_word.py +++ b/common/sensitive_word.py @@ -43,9 +43,6 @@ class SensitiveWord: print(f"Access token: {access_token}") # 输出访问令牌以进行调试 return access_token - else: - print("百度云接口配置不存在") - print(self.config) def process_text(self, text): diff --git a/allow-http-nopassword.sh b/scripts/allow-http-nopassword.sh similarity index 100% rename from allow-http-nopassword.sh rename to scripts/allow-http-nopassword.sh diff --git a/fix-itchat.sh b/scripts/fix-itchat.sh similarity index 100% rename from fix-itchat.sh rename to scripts/fix-itchat.sh