Compare commits

..
2 changed files with 7 additions and 14 deletions

View file

@ -133,11 +133,8 @@ it can actually parse.
## Analyst model ## Analyst model
`SUMMARY_MODEL=deepseek/deepseek-v4.1-flash-1017` (Nous Portal, 1M context, `SUMMARY_MODEL=meituan/longcat-2.5:free` (free tier on the Nous Portal,
verified to honour `response_format: json_object`; the previous free 1M context, verified to honour `response_format: json_object`). It is set in
`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 `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. when the env var is empty, because `resolve_model()` prefers the env.

View file

@ -66,17 +66,13 @@ data:
# never see https here: this flag is what puts `Secure` on the session cookie. # never see https here: this flag is what puts `Secure` on the session cookie.
ADMIN_COOKIE_SECURE: "1" 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 NOUS_BASE_URL: https://inference-api.nousresearch.com/v1
# Meituan LongCat was retired from the portal (every call 404'd from 11/25 SUMMARY_MODEL: meituan/longcat-2.5:free
# 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 # 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 # timeout (news/summerizer/nous_client.py, json_mode=False), and this free
# batches risk timing out and silently contributing nothing to the reduce # model needs ~30 s for 8 articles, so bigger batches time out and silently
# phase. # contribute nothing to the reduce phase.
BATCH_SIZE: "4" BATCH_SIZE: "4"
# Map-phase grading (PR #53): the map call scores every article 0-100 against # 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 # a rubric and only blocks >= SUMMARY_MIN_SCORE reach the brief. When nothing