feat: AI 模型按场景独立配置(llm_scenes)+ 去重多来源合并
- system.yaml 新增 llm_scenes(translation / daily_report,含用途/方法/模型要求说明) - load_llm_config(scene=...) 场景覆盖;日报摘要 temperature 0.3 硬编码 → 配置 - M3 去重:唯一篇记录 source_ids(跨源重复合并,首个来源为 source_id) - source_ids 经翻译透传至 events,日报事件 source 多来源拼接展示(≤3 个) - 已部署 pi5:merge 实证 10 源合并;日报 report_id=224 正常入库
This commit is contained in:
@@ -103,6 +103,10 @@ class EnTranslatedArticle(BaseModel):
|
||||
source_name: str
|
||||
url: str
|
||||
url_hash: str
|
||||
source_ids: list[str] = Field(
|
||||
default_factory=list,
|
||||
description="去重合并后的所有来源 ID(透传自 ProcessedArticle.source_ids)",
|
||||
)
|
||||
|
||||
# ── 双语内容 ──
|
||||
title: str = "" # 英文原标题
|
||||
|
||||
Reference in New Issue
Block a user