From 43ec7239b7a87deba8225971f1112082ef6837c1 Mon Sep 17 00:00:00 2001 From: ikechan8370 Date: Sat, 15 Apr 2023 21:11:48 +0800 Subject: [PATCH 1/3] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 51ff28b..27560d5 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,7 @@ * 支持新[必应](https://www.bing.com/new)(token负载均衡,限流降级) * 2023-03-15 API3支持GPT-4尝鲜,需要Plus用户 * 支持[ChatGLM](https://github.com/THUDM/ChatGLM-6B)模型。基于[自建API](https://github.com/ikechan8370/SimpleChatGLM6BAPI) +* 2023-04-15 支持[Claude by Slack](https://www.anthropic.com/claude-in-slack )和Poe(WIP)。Cloude配置参考[这里](https://ikechan8370.com/archives/chatgpt-plugin-for-yunzaipei-zhi-slack-claude) ### 如果觉得这个插件有趣或者对你有帮助,请点一个star吧! From 7c36f9361e4c4f510db7be0799692c189f15baa7 Mon Sep 17 00:00:00 2001 From: ikechan8370 Date: Sat, 15 Apr 2023 23:02:27 +0800 Subject: [PATCH 2/3] =?UTF-8?q?fix:=20=E8=80=81=E6=A8=A1=E5=BC=8F=E7=9A=84?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/chat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/chat.js b/apps/chat.js index 6a5c809..59d26ac 100644 --- a/apps/chat.js +++ b/apps/chat.js @@ -710,7 +710,7 @@ export class chatgpt extends plugin { num: 0 } } - } else if (use !== 'poe' && use === 'claude') { + } else if (use !== 'poe' && use !== 'claude') { switch (use) { case 'api': { key = `CHATGPT:CONVERSATIONS:${e.sender.user_id}` From 70472464cf422696033f7034819b21b01cfab52b Mon Sep 17 00:00:00 2001 From: ikechan8370 Date: Sun, 16 Apr 2023 00:48:32 +0800 Subject: [PATCH 3/3] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=97=A0=E7=BE=A4?= =?UTF-8?q?=E5=90=8D=E7=89=87=E6=97=B6at=E5=B8=A6=E4=B8=8A=E4=BA=86?= =?UTF-8?q?=E6=98=B5=E7=A7=B0=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/chat.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/chat.js b/apps/chat.js index 59d26ac..e9acfa6 100644 --- a/apps/chat.js +++ b/apps/chat.js @@ -551,8 +551,12 @@ export class chatgpt extends plugin { let me = mm.get(Bot.uin) let card = me.card let nickname = me.nickname - prompt = prompt.replace(`@${card}`, '').trim() - prompt = prompt.replace(`@${nickname}`, '').trim() + if (card) { + prompt = prompt.replace(`@${card}`, '').trim() + } + if (nickname) { + prompt = prompt.replace(`@${nickname}`, '').trim() + } } } else { let ats = e.message.filter(m => m.type === 'at')