Skip to content

v0.1.3

Choose a tag to compare

@shunte88 shunte88 released this 27 Nov 09:13
· 120 commits to main since this release

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, /completion and Ollama's context. 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/oneOf and $ref into $defs are now enforced, which covers Optional[...] and nested models. additionalProperties (true, false or a schema) now works alongside properties, and a required key missing from properties no 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_p 0.9 and min_p 0 rather than llama.cpp's.
  • --cache-ram help 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.