[NemotronH] Small fix reasoning parser (#36635)
Signed-off-by: Roi Koren <roik@nvidia.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user