feat: LLM 解耦 bot、RSS 外置与内容过滤

daily 自建 Cursor bridge;DAILY_LLM_PROVIDER 控制后端;config/feeds.yaml 与 sensitive_words 可配置。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-03 15:24:58 +08:00
parent ce04d5a342
commit 5742dc47ed
19 changed files with 771 additions and 239 deletions

View File

@@ -116,10 +116,11 @@ Python 抓取 → Step1 趋势分析 (.trends.json) → Step2 写企微稿 (.wec
## 自定义 RSS 源
国际 RSS 列表:`daily/news/feeds.py`
国内 RSS 列表:`daily/news/feeds_cn.py`
RSS 源配置在 **`config/feeds.yaml`**(国际 `intl` / 国内 `cn`),改 URL 或增删 feed 后无需改 Python。文件缺失或解析失败时会回退 `daily/news/feeds_defaults.py` 内置列表。
在对应文件的 `FEEDS` 列表中增删 URL 即可。常用开关(见 `.env.example`
可选 **`config/sensitive_words.yaml`** + `DAILY_CONTENT_FILTER=1`:标题/摘要命中敏感词则丢弃该条。
旧版硬编码路径(仍可读作参考):`daily/news/feeds_defaults.py`
```env
DAILY_AI_NEWS=1