Merge pull request 'fix(osint): pin summarizer to a model that still exists' (#89) from fix/osint-summarizer-model into master
This commit is contained in:
commit
c5578e9a5a
2 changed files with 14 additions and 7 deletions
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue