[RL][TITO] Preserve whitespace in reasoning parser outputs (#24251)
This commit is contained in:
@@ -216,7 +216,7 @@ class DeepSeekV32Detector(BaseFormatDetector):
|
||||
:return: ParseResult indicating success or failure, consumed text, leftover text, and parsed calls.
|
||||
"""
|
||||
idx = text.find(self.bot_token)
|
||||
normal_text = text[:idx].strip() if idx != -1 else text
|
||||
normal_text = text[:idx].removesuffix("\n\n") if idx != -1 else text
|
||||
if self.bot_token not in text:
|
||||
return StreamingParseResult(normal_text=normal_text, calls=[])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user