From 86b257ce2055401057b718ee2a38c06d658f3d51 Mon Sep 17 00:00:00 2001 From: liuwei Date: Tue, 27 May 2025 16:59:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=86=85=E5=AE=B9?= 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 c70a67b..32d57f9 100644 --- a/plugins/dify/main.py +++ b/plugins/dify/main.py @@ -152,7 +152,7 @@ class DifyPlugin(MessagePluginInterface): await bot.send_image_message((roomid if roomid else sender), Path(response)) else: # 如果是普通文本,则在长度大于100字时,转为图片发送 - if len(response) > 200: + if len(response) > 400: # 转图片 respath = await convert_md_str_to_image(response, "dify_output.jpg") await bot.send_image_message((roomid if roomid else sender), Path(respath)) @@ -215,7 +215,7 @@ class DifyPlugin(MessagePluginInterface): await bot.send_image_message((roomid if roomid else sender), Path(response)) else: # 如果是普通文本,则在长度大于100字时,转为图片发送 - if len(response) > 200: + if len(response) > 400: # 转图片 respath = await convert_md_str_to_image(response, "dify_output.jpg") await bot.send_image_message((roomid if roomid else sender), Path(respath))