From 4ac1cd42d1c111a474cefe0ebae03c45ae980ddf Mon Sep 17 00:00:00 2001 From: Lance Walters Date: Fri, 13 Nov 2026 20:33:47 -0500 Subject: [PATCH] apps(osint): BATCH_SIZE=4 for the Nous free-tier summarizer Map phase has a hard 60 s httpx timeout and meituan/longcat-2.5:free needs ~30 s for 8 articles: batch 1 of the first real run returned 200 in 30 s, batch 2 hit the 60 s ceiling and contributed nothing. 4 keeps every batch inside the timeout. --- apps/base/osint/configmap.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/base/osint/configmap.yaml b/apps/base/osint/configmap.yaml index a30d134..d63ff0e 100644 --- a/apps/base/osint/configmap.yaml +++ b/apps/base/osint/configmap.yaml @@ -54,7 +54,11 @@ data: # ── news summarizer (analyst) — Nous Portal, free tier model ──────────── NOUS_BASE_URL: https://inference-api.nousresearch.com/v1 SUMMARY_MODEL: meituan/longcat-2.5:free - BATCH_SIZE: "50" + # 4, not the upstream default 50: the map phase runs with a hard 60 s httpx + # timeout (news/summerizer/nous_client.py, json_mode=False), and this free + # model needs ~30 s for 8 articles, so bigger batches time out and silently + # contribute nothing to the reduce phase. + BATCH_SIZE: "4" NEWS_SUMMARIZE_INTERVAL_S: "900" NEWS_SUMMARIZE_RUN_ON_START: "1" NEWS_RECAP_HOUR: "23"