Patch Changes
-
#6071
a91364dThanks @marbemac! - FixChatStreamingMessageToolCallschema rejecting valid streaming tool call chunks.The OpenAI streaming spec splits tool calls across multiple SSE chunks —
function.nameis only present on the first chunk, but the schema required it on every chunk, causing aMalformedOutputerror whenever the model returned a tool call.Made
function.nameoptional to matchidwhich was already optional.