Skip to content

feat(models): persona models same on chat + Telegram, no_think, one resident - #362

Merged
AVADSA25 merged 1 commit into
mainfrom
fix/persona-nothink-telegram
Sep 16, 2026
Merged

AVADSA25 merged 1 commit into
mainfrom
fix/persona-nothink-telegram

Conversation

@AVADSA25

Copy link
Copy Markdown
Owner

Makes every model behave the same: one resident at a time, switched in CODEC, usable on Telegram — no per-persona always-on server.

  • model_extras: new no_think flag.
  • chat: no_think model → thinking forced off (reformat answers directly, no <think>).
  • codec_bridges.call_llm: active persona model → bridge speaks AS it + applies its sampling (Telegram matches dashboard chat). Everyday model unchanged.

M Corpus 4B + 8B + 8B reformat = no_think (config, local). No new port/server.
Verified: 8B reformat one-shot with /no_think → clean "Please forward the invoice… Mickaël". Tests: 61 passed.

Needs pm2 restart codec-dashboard codec-telegram.

🤖 Generated with Claude Code

…o_think

Goal: one model resident at a time, switched in CODEC, and usable on Telegram —
the same for every model — instead of a separate always-on server per persona.

- codec_models.model_extras: add a `no_think` flag (extra_models[].no_think).
- routes/chat.py: force thinking off for a no_think model, so a reformat/persona
  fine-tune answers directly instead of burning the budget on a <think> block.
- codec_bridges.call_llm: when the active model is a persona model, the bridge
  (Telegram, etc.) speaks AS that persona and applies its sampling — mirroring
  the dashboard chat. So "switch the model in CODEC, then use it on Telegram"
  behaves identically. The everyday/operator model is unchanged (channel persona).

M Corpus 4B + 8B and the 8B reformat voice are declared no_think in config
(local). No new standalone server / port — a persona is served by the one
switched model server, keeping a single model resident.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@AVADSA25
AVADSA25 merged commit 01d87b1 into main Sep 16, 2026
1 check passed
@AVADSA25
AVADSA25 deleted the fix/persona-nothink-telegram branch September 16, 2026 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants