From b355e8c16cba4a37429c5ef1d650e307e6443dd0 Mon Sep 17 00:00:00 2001 From: Lance Walters Date: Fri, 4 Dec 2026 23:04:26 -0500 Subject: [PATCH] fix(osint): pin summarizer to a model that still exists meituan/longcat-2.5:free was retired from the Nous Portal; every map/reduce call returned 404, chat() swallowed it, and the analyst produced no briefs after 2025-11-25 (last daily_recap 11-23). The :free ids now demand a user tag and answer 503 anyway, so pin deepseek/deepseek-v4.1-flash-1017 ($0.03/ $0.12 per Mtok, json_object verified) instead. --- apps/base/osint/README.md | 7 +++++-- apps/base/osint/configmap.yaml | 14 +++++++++----- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/apps/base/osint/README.md b/apps/base/osint/README.md index a3f838d..f9676ee 100644 --- a/apps/base/osint/README.md +++ b/apps/base/osint/README.md @@ -133,8 +133,11 @@ it can actually parse. ## Analyst model -`SUMMARY_MODEL=meituan/longcat-2.5:free` (free tier on the Nous Portal, -1M context, verified to honour `response_format: json_object`). It is set in +`SUMMARY_MODEL=deepseek/deepseek-v4.1-flash-1017` (Nous Portal, 1M context, +verified to honour `response_format: json_object`; the previous free +`meituan/longcat-2.5:free` id was retired and 404'd every call). When picking a +replacement, confirm it is in `GET /v1/models` — a stale id fails silently +because `chat()` swallows non-200s and returns an empty string. It is set in `configmap.yaml`; changing it in the UI (`PUT /api/settings`) only takes effect when the env var is empty, because `resolve_model()` prefers the env. diff --git a/apps/base/osint/configmap.yaml b/apps/base/osint/configmap.yaml index fa58991..1ef4fab 100644 --- a/apps/base/osint/configmap.yaml +++ b/apps/base/osint/configmap.yaml @@ -66,13 +66,17 @@ data: # never see https here: this flag is what puts `Secure` on the session cookie. ADMIN_COOKIE_SECURE: "1" - # ── news summarizer (analyst) — Nous Portal, free tier model ──────────── + # ── news summarizer (analyst) — Nous Portal ───────────────────────────── NOUS_BASE_URL: https://inference-api.nousresearch.com/v1 - SUMMARY_MODEL: meituan/longcat-2.5:free + # Meituan LongCat was retired from the portal (every call 404'd from 11/25 + # onward, silently producing no briefs). The :free ids now require a user + # tag and 503 anyway; pin the cheapest model that answers normally and + # honours response_format: json_object (~$0.03/$0.12 per Mtok). + SUMMARY_MODEL: deepseek/deepseek-v4.1-flash-1017 # 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. + # timeout (news/summerizer/nous_client.py, json_mode=False), so bigger + # batches risk timing out and silently contributing nothing to the reduce + # phase. BATCH_SIZE: "4" # Map-phase grading (PR #53): the map call scores every article 0-100 against # a rubric and only blocks >= SUMMARY_MIN_SCORE reach the brief. When nothing -- 2.52.0