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))