变更项:\n1. 将 message_summary 插件代码中的 summary_image_mode 默认值从 template 调整为 markdown,确保配置缺失时也走历史稳定样式。\n2. 更新 plugins/message_summary/config.toml 的默认渲染模式为 markdown,立即生效并避免模板样式未完善导致展示异常。\n3. 保留 template 模式能力与失败回退逻辑,后续模板优化完成后可通过配置无缝切回。
20 lines
526 B
TOML
20 lines
526 B
TOML
# 消息总结插件配置
|
|
|
|
[general]
|
|
enabled = true
|
|
|
|
[api]
|
|
backend = "dify_workflow_message_summary"
|
|
connect_timeout_seconds = 10
|
|
retry_delays_seconds = [10, 20]
|
|
|
|
[output]
|
|
output_dir = "output"
|
|
image_format = "png"
|
|
# 图片渲染模式:
|
|
# - template: 使用 HTML 模板渲染(模板样式稳定后再切换)
|
|
# - markdown: 使用历史 md2image 样式
|
|
summary_image_mode = "markdown"
|
|
# 总结卡片模板路径(相对项目根目录)
|
|
summary_image_template_path = "plugins/message_summary/templates/summary_card.html"
|