mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-03-24 22:34:41 +01:00
API: Remove leading spaces from post-reasoning content
This commit is contained in:
parent
fef2bd8630
commit
ca36bd6eb6
|
|
@ -79,7 +79,7 @@ def extract_reasoning(text, html_escaped=False):
|
|||
else:
|
||||
content_start = end_pos + len(end_esc)
|
||||
|
||||
return text[thought_start:thought_end], text[content_start:]
|
||||
return text[thought_start:thought_end], text[content_start:].lstrip()
|
||||
|
||||
# Handle standalone GPT-OSS final channel marker without a preceding
|
||||
# analysis/commentary block (the model skipped thinking entirely).
|
||||
|
|
|
|||
Loading…
Reference in a new issue