feat: add historical news AI backfill and visible task queue
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:
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('新闻输入超出模型上下文;未截断或发送,请调整模型配置')
|
||||
|
||||
Reference in new issue
Block a user