跳到正文
热点事件历史事件

llama.cpp 修复 JSON Schema 响应处理

1 篇报道1 个报道来源26 天前更新

先了解这件事

AI 综述

llama.cpp b12229 修复了 OpenAI 兼容聊天补全接口对 JSON Schema 的处理:此前只有嵌套在 `response_format.json_schema.schema` 中的 schema 会生效,直接放在 `response_format.schema` 中的 schema 会被静默忽略,导致生成不受约束;现在两种写法都能按预期处理。该版本还明确了嵌套 `json_schema` 的优先级,并补充错误提示、文档和测试;空对象 `{}` 仍表示允许任意 JSON 值,不会被顶层 schema 覆盖。

AI 根据报道生成 · 25 天前更新

报道时间线

沿着报道,了解事件的不同侧面。

11月10日
  1. GitHub · ggml-org/llama.cpp Releases
    llama.cpp b12229 修复 `response_format` 的 `json_schema` 处理

    llama.cpp b12229 修复 OpenAI-compatible chat completions endpoint 对 `response_format` 顶层 `schema` 的处理,使未嵌套在 `json_schema` wrapper 中的 schema 不再被忽略。