← News

Inference frameworks

llama.cpp b12853 moves server JSON Schema handling into chat parsing

The preview sends the startup schema to the chat parser. Test templates and structured outputs together when upgrading.

Published: 2026-11-30 02:00 UTCUpdated: 2026-11-30 02:00 UTCSource date: 2026-11-30

Official announcement

The November 30 preview build of llama.cpp passes the server's --json-schema option to the chat parser. The implementation notes explain that the previous flow built its grammar before the generation prompt was available and lacked rules needed for reasoning.

Analysis

For an upgrade check, hold the model and chat template constant and run the same schema on both builds. Track JSON parsing and schema validation separately. A required field and an enumerated field make a compact fixture. Then try a prompt that asks for a value outside the enumeration. This can expose outputs that look like ordinary JSON but still fail when a downstream application validates them.

What remains unverified

The release change leaves behavior across individual templates and reasoning models to be tested. For servers with several templates, compare the fields and types that reach the client for each one.


Related articles