mirror of
https://github.com/hasso5703/alzeo.git
synced 2026-12-06 12:54:19 +01:00
The selection of fixes v1.40.2 gave patch-template.py was TEMPLATE_PATCHES, read from the environment by every caller: one exported in a shell made ./install.sh write the 27B's template without its three effort fixes, the 27B restarted on it, and it refused Claude Code's "max" and pi's "lean" (found by the code review on 2026-10-24). It is now --patches=NAMES, which the Ornith lane's installer alone passes; TEMPLATE_PATCHES reaches nothing. tests/test_patch_template.py exports it and still gets the four. tests/lane-templates-check.py rendered otherwise than the engines and the installers in three ways, also found by the review, and each is now theirs: - a lane's installer patches chat_template.jinja only, so a patched lane without one fails here, as its install would have; - vLLM turns a message's content into a list of parts for a template that loops over it (its own reading of the template, vllm/renderers/hf.py) and SGLang leaves strings as they are (sglang/srt/parser/jinja_template_utils.py): both readings are ported, and each lane is rendered in the content form its engine gives the template, an SGLang lane with lists too where its template takes them (what each engine does to a tool's answer and to an empty content came later in this release). Rendering lists everywhere would have refused Kolibri's templates, which no engine hands a list; - named templates give tool_use when tools are sent, as transformers picks. And Hugging Face's 429 and brief 5xx are waited out on a runner's shared addresses, five tries, with its Retry-After, a body cut short included. On the reference box: 13 targets, 240 renders, 0 refusals, each identical to transformers 5.12.1's own. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>