[Bugfix][Gemma4] Fix offline parser truncation, adjust_request token leak, and chat template sync (#45553)

Signed-off-by: Luciano Martins <lucianommartins@users.noreply.github.com>
Co-authored-by: Luciano Martins <lucianommartins@users.noreply.github.com>
This commit is contained in:
Luciano Martins
2026-06-16 04:31:53 +00:00
committed by GitHub
co-authored by Luciano Martins
parent b8bd773fe4
commit 6607a80dab
5 changed files with 94 additions and 74 deletions
@@ -54,7 +54,7 @@ NO_REASONING = {
"output": "This is content",
"reasoning": None,
"content": "This is content",
"is_reasoning_end": False,
"is_reasoning_end": True,
}
REASONING_WITH_CHANNEL = {
"output": "<|channel>This is a reasoning section<channel|>This is the rest",
+2 -2
View File
@@ -358,7 +358,7 @@ class TestGemma4ChatTemplate:
"type": "function",
"function": {
"name": "download_image",
"arguments": '{"url": "https://example.com/x.png"}',
"arguments": {"url": "https://example.com/x.png"},
},
},
],
@@ -392,7 +392,7 @@ class TestGemma4ChatTemplate:
"type": "function",
"function": {
"name": "process",
"arguments": "{}",
"arguments": {},
},
},
],