From aeb09a95b0c3ab78963f5366ee5afa29881b85c8 Mon Sep 17 00:00:00 2001 From: zhayujie Date: Fri, 10 Nov 2023 14:31:07 +0800 Subject: [PATCH] fix: image vision temporarily cancel error logging --- plugins/linkai/linkai.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/linkai/linkai.py b/plugins/linkai/linkai.py index b590d49..9e35bcd 100644 --- a/plugins/linkai/linkai.py +++ b/plugins/linkai/linkai.py @@ -56,7 +56,8 @@ class LinkAI(Plugin): _send_info(e_context, "正在为你加速生成摘要,请稍后") res = LinkSummary().summary_file(file_path) if not res: - _set_reply_text("因为神秘力量无法获取内容,请稍后再试吧", e_context, level=ReplyType.TEXT) + if context.type != ContextType.IMAGE: + _set_reply_text("因为神秘力量无法获取内容,请稍后再试吧", e_context, level=ReplyType.TEXT) return summary_text = res.get("summary") if context.type != ContextType.IMAGE: