[Bugfix][Gemma4] Align parser enable_thinking default with template (#52430)

Signed-off-by: lxy-alexander <lxy_alexander@outlook.com>
Co-authored-by: Chauncey <chaunceyjiang@gmail.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This commit is contained in:
Alexander Lee
2026-08-18 12:41:26 +00:00
committed by GitHub
co-authored by Chauncey mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
parent be3f614ff1
commit d29dc3ab87
3 changed files with 31 additions and 9 deletions
+1 -1
View File
@@ -400,7 +400,7 @@ class Gemma4Parser(ParserEngine):
**kwargs,
) -> None:
chat_kwargs = kwargs.get("chat_template_kwargs", {}) or {}
self._thinking_enabled = chat_kwargs.get("enable_thinking", True)
self._thinking_enabled = chat_kwargs.get("enable_thinking", False)
super().__init__(
tokenizer,
tools,