Files
zeekayandHanzo Dev 29d076a7d8 A leading think block is not the answer
Reasoning models served over OpenAI-compatible APIs can open a reply
with <think>...</think>. It stayed in final_output, in the history sent
back on the next turn, and in front of structured output, where it
failed JSON parsing. process_model_response, where every model's output
becomes run items, now drops a leading block from the message text.
Text that only mentions the tag, or an unclosed block, is unchanged;
tool call arguments and result.raw_responses keep what the model sent.

Co-authored-by: Hanzo Dev <[email protected]>
2026-09-11 13:59:49 -07:00
..
2025-03-11 09:42:28 -07:00
2025-03-11 09:42:28 -07:00
2025-03-11 09:42:28 -07:00
2025-03-11 09:42:28 -07:00
2025-03-11 09:42:28 -07:00
2025-03-11 09:42:28 -07:00
2025-03-11 09:42:28 -07:00
2025-03-11 09:42:28 -07:00
2025-03-11 09:42:28 -07:00
2025-03-11 09:42:28 -07:00
2025-03-11 09:42:28 -07:00
2025-03-11 09:42:28 -07:00
2025-03-11 09:42:28 -07:00
2025-03-11 09:42:28 -07:00
2025-03-11 09:42:28 -07:00
2025-03-11 09:42:28 -07:00
2025-03-11 09:42:28 -07:00
2025-03-11 09:42:28 -07:00
2025-03-11 09:42:28 -07:00
2025-03-11 09:42:28 -07:00
2025-03-11 09:42:28 -07:00
2025-03-11 09:42:28 -07:00
2025-03-11 09:42:28 -07:00
2025-03-11 09:42:28 -07:00
2025-03-11 09:42:28 -07:00