Files
abot/plugins/douyu/config.toml
liuwei ef49588485 refactor: 移除LLM旧兼容入口并统一scene单路由
变更项:

1. LLMRegistry 仅保留 scene 入口,删除 backend_name/backend_ref/scene_ref 等兼容解析分支,未声明 scene 时仅保留直连配置。

2. Dify/GlobalNews/GameTask 插件初始化改为仅传 scene,不再拼接 backend/provider/url 等旧兼容字段。

3. 清理插件配置冗余:dify/global_news/game_task/douyu 的 config.toml 删除 backend 字段,统一由 scene 映射后端。

4. 后台 system API 调整为严格模式:插件依赖扫描仅采集 scene;scene 保存时必须绑定有效 backend。

5. 后台页面去除拓扑中的配置Backend冗余列,并新增前端校验,禁止提交空场景或未绑定后端。
2026-04-20 14:45:03 +08:00

36 lines
1.2 KiB
TOML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
[Douyu]
enable = true
command = [
"斗鱼订阅",
"取消斗鱼订阅",
"斗鱼订阅列表",
"斗鱼订阅提醒",
"取消斗鱼订阅提醒",
"订阅鱼吧",
"取消订阅鱼吧",
"鱼吧订阅列表",
"#斗鱼弹幕日报",
"斗鱼弹幕日报"
]
check_interval_minutes = 5
api_url_template = "https://www.douyu.com/betard/{room_id}"
user_agent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36"
session_cutoff_hour = 6
merge_gap_hours = 4
daily_report_enable = true
daily_report_time = "09:30"
daily_report_min_messages = 120
daily_report_use_llm = true
daily_report_max_sessions = 4
daily_report_max_length = 1800
daily_report_send_image = true
audience_stats_sample_interval_seconds = 0
[Douyu.report_api]
# 切换到“场景路由”模式:日报插件只关心 douyu.daily_report
# 具体绑定哪个后端由根目录 config.yaml 的 llm.scenes 统一维护。
scene = "douyu.daily_report"
# 是否把完整结构化 payloadJSON 大对象)作为输入传给 Dify。
# 某些 Workflow 对复杂输入类型校验严格,会导致 400默认关闭以保证可用性。
include_structured_inputs = false