PulseAugur
中
实时 06:05:13
English(EN) Ollama skips your JSON schema when a thinking model answers without thinking

模型跳过思考时 Ollama bug 绕过 JSON schema

Ollama 0.34.4 及更高版本出现了一个 bug,当模型(如 Gemma 4)选择不进行“思考”过程时,会绕过 JSON schema 强制执行。此问题导致跳过思考步骤的响应以纯文本形式返回,即使指定了 schema,也可能导致客户端解析错误。虽然启用 `think: false` 参数或使用特定修复(ollama/ollama#18783)可以通过强制模型思考或确保响应符合 schema 来缓解此问题,但核心问题在当前版本中仍未解决。 AI

影响 此 bug 可能导致依赖 Ollama 生成结构化输出的用户出现意外的数据格式化问题。

排序理由 这是一个关于特定软件产品行为的 bug 报告,而不是新的发布或重要的行业发展。

在 dev.to — LLM tag 阅读 →

AI 生成摘要 · Google Gemini · 来自 1 个来源。 我们如何撰写摘要 →

模型跳过思考时 Ollama bug 绕过 JSON schema

本文如何被排名

Signal score
13 / 100
Composite score across the factors below. Higher = stronger signal that this story matters right now.
Newsworthiness bucket
Tool
这是一个关于特定软件产品行为的 bug 报告,而不是新的发布或重要的行业发展。
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
Breaking (< 6h)
Fresh story with cross-source coverage still developing. Ranking may shift as more sources report.

完整方法见我们的编辑标准。

报道来源 [1]

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

    Ollama 在思考模型无思考回答时会跳过你的 JSON schema

    <p><strong>TL;DR</strong>: Since 0.34.4, Ollama applies a <code>format</code> schema on a thinking model as a single grammar: anything until the thinking block closes, then the schema. That grammar also allows the response to end before the closing, and it treats everything up to…