tests/data/chat: GLM-5.3's template as a fifth reference render

The template as GLM-5.3-Flash ships it, in cases.json beside the other four, with its goldens from
mkchatgolden.py (jinja2 3.1.6); bos is empty, eos <|endoftext|>, and no media, since no
architecture here reads its pictures. It needs the dotted index (vendor/patches/0021).

Two cases leave it out: an assistant turn with tool calls and content null. The template prints
that content bare ({{- content }} in visible_text), so jinja2 writes "None" into the turn, and the
engine, as llama.cpp's runtime does, writes nothing. The golden would hold the engine to a
template bug; the reply-side tests for this format read those turns instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
NunzeandClaude Opus 5.5 authored and Claude Code (srv-dev01) committed 2026-10-19 15:34:15 +02:00
1 parent 3e656f0b02
commit 5ac0bc9690
16 files changed
+343 -3

No files matched your search

+2 -2
View File
@@ -288,8 +288,8 @@ TEST(every_shipped_template_renders_as_reference_jinja_does) {
"reference render " + first_difference(ref, got));
}
}
/* Four templates, every case each one renders. */
CHECK(compared >= 60);
/* Five templates, every case each one renders. */
CHECK(compared >= 73);
}
/* ------------------------------------------------------------------ reading the reply back */