Streaming tool‑call parsing crashes with malformed OpenAI‑compatible backend chunks
Streaming tool‑call parsing crashes with malformed OpenAI‑compatible backend chunks: a task in LegoFlow-SWE (Harbor dataset). The full traceback points to the OpenAI stream response parser when it iterates over tool‑call delta chunks. Some backends emit malformed or partial streaming deltas where…
The task
The full traceback points to the OpenAI stream response parser when it iterates over tool‑call delta chunks. Some backends emit malformed or partial streaming deltas where a `tool_calls` entry has `function` set to `None`, or the `function` object is missing required fields (e.g., `arguments`). The current parser…
Part of Lego-X/LegoFlow-SWE.