[Bugfix] Align deepseek v4 parser thinking default with tokenizer (#51296)

Signed-off-by: sfeng33 <4florafeng@gmail.com>
This commit is contained in:
Flora Feng
2026-08-10 19:30:30 +00:00
committed by GitHub
parent d40c3e3c00
commit 3f142bd85e
3 changed files with 57 additions and 12 deletions
+1 -1
View File
@@ -722,7 +722,7 @@ def _dsv4_segments(scenario: Scenario, thinking: bool) -> list[tuple[str, bool]]
def _build_deepseek_v4(scenario: Scenario, validate: bool = True) -> Sample:
thinking = scenario.reasoning is not None
chat_kwargs = {"thinking": True} if thinking else None
chat_kwargs = {"thinking": thinking}
if thinking:
expected_reasoning: str | None = scenario.reasoning or ""