PulseAugur
EN
LIVE 21:24:38

Ollama 0.35 chat bug reorders JSON schema keys alphabetically

Ollama version 0.35 introduces a change in its chat processing that can lead to JSON schema keys being reordered alphabetically. This occurs when models are processed through a "native" path, which involves decoding and re-encoding the schema using Go's map structure. Because Go maps store keys in alphabetical order, the original declaration order is lost, potentially causing issues if the order is significant for the model's output, such as placing reasoning before an answer. This bug is subtle as the JSON remains valid and parsable, but the data within fields can be incorrect. A fix is available via an open pull request, but until it's released, users are advised to name their JSON keys in the desired alphabetical order. AI

IMPACT This bug could lead to unexpected behavior in applications relying on structured output from Ollama, potentially affecting data integrity and model response accuracy.

RANK_REASON The item describes a bug in a specific version of the Ollama tool and its potential impact on users, along with a proposed fix.

Read on dev.to — LLM tag →

AI-generated summary · Google Gemini · from 1 sources. How we write summaries →

Ollama 0.35 chat bug reorders JSON schema keys alphabetically

How we ranked this

Signal score
2 / 100
Composite score across the factors below. Higher = stronger signal that this story matters right now.
Newsworthiness bucket
Tool
The item describes a bug in a specific version of the Ollama tool and its potential impact on users, along with a proposed fix.
Source corroboration
Single-source cluster
Only one publisher covered this so far. Single-source stories can still rank when the publisher is high-authority, but they lack cross-source corroboration.
Topics
product, other
Editorial topic classification. Feeds into how the story surfaces on /topic/<slug> hub pages and into the per-entity coverage mix.
AI-industry relevance
High
Clearly on-topic for AI-industry coverage.
Story freshness
Same-day
Cluster formed today. Ranking reflects the current source set at time of score.

Full methodology in our editorial standards.

COVERAGE [1]

  1. dev.to — LLM tag TIER_1 English(EN) · The Homelab Postmortem ·

    Ollama's native chat path re-sorts your JSON schema keys alphabetically

    <p><strong>TL;DR</strong>: Ollama 0.35 runs chat through one of two paths. Models it renders with a Go <code>TEMPLATE</code> hand your <code>format</code> / <code>response_format</code> schema to llama-server as written. Models on the "native" path go through <code>llamaServerCha…