PulseAugur
中
实时 21:14:09
English(EN) Ollama's native chat path re-sorts your JSON schema keys alphabetically

Ollama 0.35 聊天 bug 按字母顺序重新排序 JSON schema 键

Ollama 0.35 版本在其聊天处理中引入了一项更改,可能导致 JSON schema 键按字母顺序重新排序。当模型通过“原生”路径处理时,会发生这种情况,该路径涉及使用 Go 的 map 结构解码和重新编码 schema。由于 Go map 以字母顺序存储键,因此原始声明顺序会丢失,如果顺序对模型的输出很重要,例如将推理放在答案之前,则可能导致问题。此 bug 很微妙,因为 JSON 仍然有效且可解析,但字段内的数据可能不正确。通过一个开放的 pull request 可以修复此问题,但在发布之前,建议用户将 JSON 键命名为所需的字母顺序。 AI

影响 此 bug 可能导致依赖 Ollama 结构化输出的应用程序出现意外行为,可能影响数据完整性和模型响应准确性。

排序理由 该条目描述了 Ollama 工具特定版本中的一个 bug 及其对用户的潜在影响,以及一个拟议的修复方案。

在 dev.to — LLM tag 阅读 →

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

Ollama 0.35 聊天 bug 按字母顺序重新排序 JSON schema 键

本文如何被排名

Signal score
2 / 100
Composite score across the factors below. Higher = stronger signal that this story matters right now.
Newsworthiness bucket
Tool
该条目描述了 Ollama 工具特定版本中的一个 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
Same-day
Cluster formed today. Ranking reflects the current source set at time of score.

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

报道来源 [1]

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

    Ollama 的原生聊天路径将您的 JSON schema 键按字母顺序重新排序

    <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…