Patch Changes
-
#10902
229a7adThanks @christian-bromann! - fix(openai): preserve v1 assistant tool calls -
#10895
36fb0efThanks @BertBR! - fix(openai): guard bareJSON.parsein Responses API converter against trailing non-whitespace charactersconvertResponsesDeltaToChatGenerationChunkpreviously calledJSON.parse(msg.text)directly whenresponse.text.format.type === "json_schema". Some models (observed withgpt-5-minionservice_tier: "auto") intermittently emit trailing non-whitespace characters (extra tokens, control characters) after a valid JSON object, causing aSyntaxErrorthat propagates as an unhandled exception and kills the entire streaming response mid-flight. The parse is now wrapped in atry/catch: on failure,additional_kwargs.parsedis left undefined, the stream completes normally, and the existingwithStructuredOutputpipeline handles the typed failure —includeRaw: truereturns{ raw, parsed: null }via itswithFallbackswrapper,includeRaw: falsethrows a typedOutputParserExceptionthat the caller can catch and retry. Closes #10894.