优化内容

This commit is contained in:
liuwei
2025-05-27 16:59:16 +08:00
parent 1297a6b585
commit 86b257ce20

View File

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