llama.cpp Release b12438 Adds Jinja Template JSON Sort Keys
llama.cpp build b12438 has been released, introducing support for the json sort_keys=true parameter within Jinja templates. This update improves the handling and rendering of structured data formats. This incremental improvement provides better consistency and control when formatting JSON payloads inside prompt templates for large language models. It benefits developers who rely on precise structural formatting for tool use and structured generation. The release is tracked under pull request #32366 and is accompanied by precompiled binaries across a broad range of platforms including macOS, Linux, Windows, and Android.
## BACKGROUND
llama.cpp is a widely used open-source software library designed for performing inference on large language models like Meta's Llama locally. Jinja templates are frequently used alongside these models to format chat prompts and structure inputs correctly.