去除dify异常日志
This commit is contained in:
@@ -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}"
|
||||
|
||||
|
||||
@@ -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点总结昨天的聊天信息"""
|
||||
|
||||
Reference in New Issue
Block a user