Ollama versions 0.34.4 and later exhibit a bug where the JSON schema enforcement is bypassed when a model, such as Gemma 4, chooses not to engage in its "thinking" process. This issue causes responses that skip the thinking step to be returned as plain text, even when a schema is specified, leading to potential parsing errors on the client side. While enabling the `think: false` parameter or using a specific fix (ollama/ollama#18783) can mitigate the problem by forcing the model to think or by ensuring the response adheres to the schema, the core issue remains unaddressed in current releases. AI
IMPACT This bug could lead to unexpected data formatting issues for users relying on Ollama for structured output generation.
RANK_REASON This is a bug report about a specific software product's behavior, not a new release or significant industry development.
AI-generated summary · Google Gemini · from 1 sources. How we write summaries →