Sfoglia il codice sorgente

fix: image vision temporarily cancel error logging

master
zhayujie 1 anno fa
parent
commit
aeb09a95b0
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. +2
    -1
      plugins/linkai/linkai.py

+ 2
- 1
plugins/linkai/linkai.py Vedi File

@@ -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:


Loading…
Annulla
Salva