From 63e793450cd7e7fabf827fa5b793d504e7e785b8 Mon Sep 17 00:00:00 2001 From: liuwei Date: Mon, 26 May 2025 14:39:17 +0800 Subject: [PATCH] =?UTF-8?q?dify=20200=E5=AD=97=E7=AC=A6=E4=BB=A5=E4=B8=8A?= =?UTF-8?q?=E7=94=9F=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 60fd88a..ff10699 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) > 100: + if len(response) > 200: # 转图片 respath = await convert_md_str_to_image(response, "dify_output.jpg") await bot.send_image_message((roomid if roomid else sender), Path(respath)) @@ -213,7 +213,7 @@ class DifyPlugin(MessagePluginInterface): await bot.send_image_message((roomid if roomid else sender), Path(response)) else: # 如果是普通文本,则在长度大于100字时,转为图片发送 - if len(response) > 100: + if len(response) > 200: # 转图片 respath = await convert_md_str_to_image(response, "dify_output.jpg") await bot.send_image_message((roomid if roomid else sender), Path(respath))