diff --git a/apps/base/osint/README.md b/apps/base/osint/README.md index f9676ee..a3f838d 100644 --- a/apps/base/osint/README.md +++ b/apps/base/osint/README.md @@ -133,11 +133,8 @@ it can actually parse. ## Analyst model -`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 +`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 `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 1ef4fab..fa58991 100644 --- a/apps/base/osint/configmap.yaml +++ b/apps/base/osint/configmap.yaml @@ -66,17 +66,13 @@ data: # never see https here: this flag is what puts `Secure` on the session cookie. ADMIN_COOKIE_SECURE: "1" - # ── news summarizer (analyst) — Nous Portal ───────────────────────────── + # ── news summarizer (analyst) — Nous Portal, free tier model ──────────── NOUS_BASE_URL: https://inference-api.nousresearch.com/v1 - # 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 + SUMMARY_MODEL: meituan/longcat-2.5:free # 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), so bigger - # batches risk timing out and silently contributing nothing to the reduce - # phase. + # 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" # 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