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

+4 -1
View File
@@ -4,7 +4,8 @@
"qwen3.8": { "bos": "", "eos": "<|im_end|>", "media": "<|vision_start|><|image_pad|><|vision_end|>" },
"qwen3.6": { "bos": "", "eos": "<|im_end|>", "media": "<|vision_start|><|image_pad|><|vision_end|>" },
"minicpm5": { "bos": "<s>", "eos": "</s>", "media": "" },
"gemma4": { "bos": "<bos>", "eos": "<eos>", "media": "<|image|>" }
"gemma4": { "bos": "<bos>", "eos": "<eos>", "media": "<|image|>" },
"glm53": { "bos": "", "eos": "<|endoftext|>", "media": "" }
},
"tools": [
{ "type": "function", "function": { "name": "read", "description": "Read a file.",
@@ -58,6 +59,7 @@
{ "role": "assistant", "reasoning_content": "Thinking about the first.", "content": "First answer." },
{ "role": "user", "content": "Second question." } ] },
{ "name": "tool_call_then_result",
"models": ["qwen3.8", "qwen3.6", "minicpm5", "gemma4"],
"tools": true,
"messages": [
{ "role": "user", "content": "Fix /work/a.py." },
@@ -66,6 +68,7 @@
"function": { "name": "read", "arguments": "{\"path\": \"/work/a.py\", \"limit\": 40}" } } ] },
{ "role": "tool", "tool_call_id": "call_1", "content": "print(1)\n" } ] },
{ "name": "tool_call_answered_then_user",
"models": ["qwen3.8", "qwen3.6", "minicpm5", "gemma4"],
"tools": true,
"messages": [
{ "role": "user", "content": "Fix /work/a.py." },