Skip to content

Commit

Permalink
fix: image vision temporarily cancel error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
zhayujie committed Nov 10, 2023
1 parent 0c8f292 commit aeb09a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/linkai/linkai.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ def on_handle_context(self, e_context: EventContext):
_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:
Expand Down

0 comments on commit aeb09a9

Please sign in to comment.