Repository navigation
v0.1.3
Fixes from a code review of the whole Phase 11 work (Standards and Spec reviews). Upgrading is recommended for anyone exposing /v1/completions, /completion or the Ollama API.
Fixes
- A crash from bad token ids. A prompt given as token ids with an out-of-range id could crash the model thread, after which every request failed until restart. This affected
/v1/completions,/completionand Ollama'scontext. Such requests now get a 400, and ids too large for 32 bits no longer wrap onto real tokens. - Structured output covers Pydantic schemas.
anyOf/oneOfand$refinto$defsare now enforced, which coversOptional[...]and nested models.additionalProperties(true, false or a schema) now works alongsideproperties, and arequiredkey missing frompropertiesno longer ends in incomplete JSON. Nesting is capped at 64 levels. - logit_bias with a schema. If every valid JSON token was banned, a banned token could still be sampled. Generation now stops cleanly instead.
- Ollama defaults. Unset options now use Ollama's own
top_p0.9 andmin_p0 rather than llama.cpp's. --cache-ramhelp now shows the real default (0, off).- Clippy is clean across all targets.
- The README images are updated.
All gates pass: phases 1–8, 11, 11c and 11d. Details are in STATUS.md.