From 217b06d58d841edcf5b0b3debf1f45b7e01a758e Mon Sep 17 00:00:00 2001 From: liuwei Date: Thu, 29 May 2025 11:02:32 +0800 Subject: [PATCH] =?UTF-8?q?800=E5=AD=97=E4=BB=A5=E5=86=85=E4=B8=8D?= =?UTF-8?q?=E5=90=88=E6=88=90=E5=9B=BE=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/dify/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/dify/main.py b/plugins/dify/main.py index 982c039..6ca0a40 100644 --- a/plugins/dify/main.py +++ b/plugins/dify/main.py @@ -154,7 +154,7 @@ class DifyPlugin(MessagePluginInterface): await bot.send_image_message((roomid if roomid else sender), Path(response)) else: # 如果是普通文本,则在长度大于100字时,转为图片发送 - if len(response) > 400: + if len(response) > 800: # 转图片 output_image = f"dify_output_{int(time.time())}.png" respath = await convert_md_str_to_image(response, output_image) @@ -221,7 +221,7 @@ class DifyPlugin(MessagePluginInterface): await bot.send_image_message((roomid if roomid else sender), Path(response)) else: # 如果是普通文本,则在长度大于100字时,转为图片发送 - if len(response) > 400: + if len(response) > 800: # 转图片 output_image = f"dify_output_{int(time.time())}.png" respath = await convert_md_str_to_image(response, output_image)