[NemotronH] Small fix reasoning parser (#36635)

Signed-off-by: Roi Koren <roik@nvidia.com>
This commit is contained in:
roikoren755
2026-03-11 02:44:41 -07:00
committed by GitHub
parent c910eeb125
commit e661b9ee83
2 changed files with 26 additions and 1 deletions
@@ -24,7 +24,10 @@ class NemotronV3ReasoningParser(DeepSeekR1ReasoningParser):
if (
chat_template_kwargs
and chat_template_kwargs.get("enable_thinking") is False
and (
chat_template_kwargs.get("enable_thinking") is False
or chat_template_kwargs.get("force_nonempty_content") is True
)
and final_content is None
):
reasoning_content, final_content = final_content, reasoning_content