A model call has four outcomes and your monitoring probably collapses three of them

novai-max · reddit · 2026-11-30

The author built a small measurement rig and found an LLM call has four outcomes, most logging systems collapsing three into "ok": in-cap answer; over-cap billing (billed tokens exceed the cap); empty response (200 OK, budget spent on reasoning); and the dangerous silent truncation — non-empty content that stops mid-object with finishreason=length, passing every success check while downstream logic takes the wrong branch.

Measured examples at maxtokens=600:

The fix is one field: log finishreason alongside token counts, and treat (empty, length) and (content, length) as distinct states.

Original post →

More from Infra

Infra channel →