mirror of
https://github.com/jmorganca/ollama
synced 2025-10-05 16:22:53 +02:00
The thinking parser will automatically transition to being a pass-through if non-whitespace is seen before an opening tag. However, we weren't clearing the buffer after the first non-whitespace input, so in practice the first token would be emitted twice. Added a test that demonstrated this, and then fixed the bug.