Files
Mohammad Hijjawi f07e262ebe fix: ignore code fences inside <think> reasoning when parsing JSON (#2717)
* fix: ignore code fences inside <think> reasoning when parsing JSON

A fence drafted inside a <think> block was picked as the payload before
the reasoning was stripped, so the real JSON after the block was lost.

* fix: decode fence-in-string JSON from the chosen block's offset

The fence-in-string fallback searched the response for the truncated
block text, which can also appear inside a <think> draft, so the draft
was decoded instead of the payload. Keep the chosen fence match's start
offset and decode from there, allowing raw newlines in string values.
2026-12-01 17:50:42 +08:00
..
2026-04-23 19:29:16 +08:00
2026-04-23 19:29:16 +08:00