Commit Graph

2 Commits

Author SHA1 Message Date
Marvin 253cf76f59 feat(server): strip executed Bailing blocks from reasoning_content
vLLM Ling3 parity: reasoning ends where the executed call begins, so
downstream panels never render converted calls as thinking text. Only
complete blocks are removed; truncated fragments and narration survive.
Separate commit on top of the rescue so each reverts independently.
2026-09-07 21:44:54 -03:00
Marvin 2e84b9942f fix(server): rescue Bailing/Ling tool calls trapped in reasoning
Thinking models of the Bailing family intermittently emit <tool_call>
arg_key/arg_value XML inside the thinking block. The PEG layer consumes
that region as reasoning_content before the tool stage, so the call is
lost: empty content, no structured calls. update_chat_msg now promotes
well-formed blocks to tool calls on final parses with empty content.
Strictly additive; ids flow through set_tool_call_ids. Verified with a
standalone harness against live-captured payloads.
2026-09-07 20:52:38 -03:00