[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:
co-authored by
Luciano Martins
parent
b8bd773fe4
commit
6607a80dab
@@ -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",
|
||||
|
||||
@@ -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": {},
|
||||
},
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user