feat: add historical news AI backfill and visible task queue
Development CI / check-and-build (push) Successful in 2m44s
GitHub Git mirror / mirror (push) Successful in 6s
Development CI / deploy-development (push) Failing after 7s

Freeze date-range previews and model settings, track per-news progress and downstream targets, and share completion-driven scheduling with realtime analysis.

Prevent overlapping retries for the same news, retain batch queue associations, and refresh selected details with session-safe pagination.
This commit is contained in:
eezd committed 2026-11-01 14:47:54 +08:00
1 parent cbd2618a20
commit b45981ec30
25 files changed
+1339 -39

No files matched your search

@@ -76,6 +76,8 @@ class OutputTruncated(ValueError):
async def complete(provider: AiProvider, system: str, payload: dict, schema: type[BaseModel]):
from alphapulse.news_risk.progress import step, current
if current.get() is not None: step('等待模型响应', model=provider.model, reasoning_effort=provider.reasoning_effort)
text = json.dumps(payload, ensure_ascii=False)
if not fits_context(provider, system, payload, schema):
raise ValueError('新闻输入超出模型上下文;未截断或发送,请调整模型配置')