chiprook
← Software
SoftwareOctober 3, 2026, 13:24

Ollama 0.35 re-sorts JSON schema keys alphabetically on native chat path

In Ollama 0.35, models without a Go template, or with OLLAMA_GO_TEMPLATE=false, go through llamaServerChatResponseFormat(), which decodes the schema into a map[string]any and re-encodes keys in alphabetical order. Gemma 3 1B then returned the colour in the animal field while the JSON stayed valid and the request returned HTTP 200. The open fix is PR #18721.

Ollama 0.35 re-sorts JSON schema keys alphabetically on native chat path
#Ollama
Read next
Software

Google's Custom Search JSON API shuts down January 1, 2027

Software

Xcode 27.2 adds JSON-based .xcproj project format

Software

Laravel AI SDK exits beta alongside Laravel 13

Software

Run local LLM in ChatGPT Desktop app with opencodex alone