llama.cpp b10934:为 JSON schema 引入 common_schema 内部表示
原标题:b10934
AI 摘要
llama.cpp 发布 b10934 版本,核心变更是为 JSON schema 引入 common_schema 内部表示,并实现 JSON schema 优化器,将 json-schema-to-grammar 重构为基于 common_schema 与 common_trie。该改动统一了类型/kind 解析、移除 common_chat_tool_parameters、重命名 common_schema 为 common_chat_schema,并补充空 $ref、空工具参数等测试与文档。同时照例提供 macOS、Linux、Windows、Android 等多平台预编译二进制。
正文节选
<details open> common : implement common_schema internal representation for JSON schemas (#28736) * common : implement common_schema types * common : implement a json schema optimizer * common : reduce optimizations * common : refactor json-schema-to-grammar to use common_schema * common : use common_trie * common/schema : implement type/kind resolution * cont : cleanup * cont : remove common_chat_tool_parameters * cont : simplify schema resolution * cont : pass common_schema through