v2.3.1
Fixes
- Per-response token cap now follows the model context window. The LM Studio provider clamps
max_tokensto the model's context (loaded instancecontext_length, falling back tomax_context_lengthvia/api/v1/modelsand/api/v0/models). Requests no longer ask for more output tokens than the model can produce, which previously caused responses to be rejected during processing (incomplete_response) before the server replied. - Actionable truncation diagnostics. An
incomplete_responseerror now reportsfinish_reason, the requestedmax_tokens, andcompletion_tokens.
See docs/decisions/0012-derive-max-tokens-from-model-context.md. Full npm run validate green (411 tests).