Skip to content

OpenAI provider: do not discard whitespaces#661

Merged
SommerEngineering merged 3 commits intoMindWorkAI:mainfrom
OliverKunc:patch-1
Feb 13, 2026
Merged

OpenAI provider: do not discard whitespaces#661
SommerEngineering merged 3 commits intoMindWorkAI:mainfrom
OliverKunc:patch-1

Conversation

@OliverKunc
Copy link
Copy Markdown
Contributor

Before this change, this line threw away whitespace chunks such as newlines or spaces. Token boundaries collapsed, so this corrupted both the stream and the rendering: short code blocks disappeared entirely, longer code blocks were truncated and multiple list items shared a single line.

549565865-bcfdce20-d978-4d73-8d47-5830e9f56ffc

With this change, these issues seem to be resolved.

Before this change, this line threw away whitespace chunks such as newlines or spaces. Token boundaries collapsed, so this corrupted both the stream and the rendering: short code blocks disappeared entirely, longer code blocks were truncated and multiple list items shared a single line.
@SommerEngineering SommerEngineering self-assigned this Feb 13, 2026
@SommerEngineering
Copy link
Copy Markdown
Member

Thank you very much, Oliver, for this contribution 😀

@SommerEngineering SommerEngineering merged commit 48f8cb3 into MindWorkAI:main Feb 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants