优化情报分栏和日报展示

This commit is contained in:
Codex
2026-07-08 23:39:41 +08:00
parent 88e1cf4b7a
commit 8e15211f07
16 changed files with 371 additions and 93 deletions
+5
View File
@@ -132,6 +132,7 @@ class GrokIntelligenceClient:
]
github_payload = [
{
"source_type": item.source_type,
"title": item.title,
"summary": item.summary,
"source_url": item.source_url,
@@ -142,6 +143,7 @@ class GrokIntelligenceClient:
]
news_payload = [
{
"source_type": item.source_type,
"title": item.title,
"summary": item.summary,
"source_url": item.source_url,
@@ -170,6 +172,7 @@ class GrokIntelligenceClient:
"title": "字符串,日报标题",
"signals": [
{
"source_type": "news 或 github;新闻候选必须为 newsGitHub 候选必须为 github",
"topic": "AI 新闻 / GitHub 热门项目 / 模型发布 / Agent 工具 / 融资动态等",
"title": "字符串",
"summary": "中文摘要,说明为什么重要",
@@ -189,6 +192,8 @@ class GrokIntelligenceClient:
"新闻必须来自日期窗口内或接近日内发生的事件。",
"AI新闻只能从 news_candidates 中选择,不要新增候选外新闻。",
"GitHub 热门项目只能从 github_candidates 中选择,不要新增候选外仓库。",
"news 和 github 是两个独立栏目,分别尽量输出到对应上限,不要把 GitHub 项目写成新闻。",
"只有候选重复、链接不可验证或明显不相关时,才少于对应上限。",
"每条 signal 必须有真实 source_url。",
"report_markdown 只能基于 signals 写,不要加入 signals 外的新事实。",
"输出必须是可被 json.loads 解析的 JSON object。",