返回全部动态
llama.cpp b11138 发布:修复 Jinja 一元运算符解析
原标题:b11138
AI 摘要
llama.cpp 发布 b11138 版本,主要修复了 Jinja 模板引擎中一元 +/- 运算符的解析问题,使其在变量前(如 items[:-n] 和 GigaChat 的 indent[:-indent_factor])能正确解析,并确保过滤器/测试保持在操作数之外。该版本同时提供 macOS、Linux、Windows、Android 等多平台预编译二进制包。
以上摘要由 AI 生成,可能存在误差。事实请以原文为准。
正文节选
<details open> jinja : parse unary +/- before variables (#29244) * jinja : parse unary +/- before variables Lexer already emits unary_operator for -n / +n, and runtime executes unary -. Parse them at multiplicative precedence so slices like items[:-n] and GigaChat indent[:-indent_factor] work. * jinja : keep filters/tests outside unary operands Unary +/- must bind only the primary/postfix operand so -n|abs is (-n)|abs, not -(n|abs). Add unary + and filter/test regression coverage. Signed-o
发布时间:2026-09-23 23:35
抓取时间:2026-09-23 23:45
来源机构:ggml-org