From 4fb06fabe4454ea04aeceb6e106e45ee0031e1e8 Mon Sep 17 00:00:00 2001 From: liuwei Date: Tue, 27 Jan 2026 16:23:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4dify=E5=BC=82=E5=B8=B8?= =?UTF-8?q?=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/dify/main.py | 2 +- plugins/message_summary/main.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/dify/main.py b/plugins/dify/main.py index e05f393..8248274 100644 --- a/plugins/dify/main.py +++ b/plugins/dify/main.py @@ -195,7 +195,7 @@ class DifyPlugin(MessagePluginInterface): except Exception as e: self.LOG.exception(f"处理Dify聊天请求出错: {e}") client_msg_id, create_time, new_msg_id = await bot.send_text_message( - target, f"❌请求出错:{str(e)}", sender if roomid else "") + target, f"❌DIFY响应失败", sender if roomid else "") revoke.add_message_to_revoke(target, client_msg_id, create_time, new_msg_id, 5) return False, f"处理出错: {e}" diff --git a/plugins/message_summary/main.py b/plugins/message_summary/main.py index 701d06e..f1518e6 100644 --- a/plugins/message_summary/main.py +++ b/plugins/message_summary/main.py @@ -284,7 +284,7 @@ class MessageSummaryPlugin(MessagePluginInterface): except aiohttp.ClientError as e: self.LOG.error(f"请求Dify API时出错: {e}") - return f"生成总结时出错: {str(e)}", None + return f"生成总结时出错", None except json.JSONDecodeError as e: self.LOG.error(f"解析Dify API响应时出错: {e}") @@ -292,7 +292,7 @@ class MessageSummaryPlugin(MessagePluginInterface): except Exception as e: self.LOG.error(f"处理总结时出现未知错误: {e}") - return f"生成总结时出现未知错误: {str(e)}", None + return f"生成总结时出现未知错误", None async def daily_summary_job(self): """定时任务:每天早上9点总结昨天的聊天信息"""