Hacker News new | ask | show | jobs
by dmarwicke 162 days ago
does this handle the thinking blocks that claude puts in? those break json.parse constantly when it streams reasoning before the actual response
1 comments

Yes! We added that in v1.2.0 with the extract module

Supported thinking block patterns:

<thinking>...</thinking> (Claude) | <thought>...</thought> (DeepSeek) | <reasoning>...</reasoning> | <scratchpad>...</scratchpad> |

Also handles markdown code blocks and common LLM prose like "Here's the JSON:" or "Hope this helps!"