From 603a9fbde91e479b2a9eee0c0c53f1040d2f61c3 Mon Sep 17 00:00:00 2001 From: taylor Date: Sun, 13 Oct 2024 17:15:57 +0800 Subject: [PATCH] =?UTF-8?q?add:=20=E6=B7=BB=E5=8A=A0ollama=E8=B0=83?= =?UTF-8?q?=E7=94=A8AI=20chat=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- maubot_llmplus/aibot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/maubot_llmplus/aibot.py b/maubot_llmplus/aibot.py index f76813f..b58047a 100644 --- a/maubot_llmplus/aibot.py +++ b/maubot_llmplus/aibot.py @@ -112,6 +112,7 @@ class AiBotPlugin(Plugin): return try: + self.log.debug("开始发送消息") await event.mark_read() await self.client.set_typing(event.room_id, timeout=99999) platform = self.get_ai_platform() @@ -124,7 +125,7 @@ class AiBotPlugin(Plugin): response = TextMessageEventContent(msgtype=MessageType.IMAGE, body=resp_content, format=Format.HTML, formatted_body=markdown.render(resp_content)) await event.respond(response, in_thread=self.config['reply_in_thread']) - + self.log.debug("发送结束") except Exception as e: self.log.exception(f"Something went wrong: {e}") await event.respond(f"Something went wrong: {e}")