-
fix: use exclude_unset for SSE streaming chunk serialization
released this
2026-02-05 21:18:20 +01:00 | 76 commits to main since this releaseexclude_none was too aggressive — it stripped finish_reason: null from
intermediate chunks (which OpenAI includes). exclude_unset correctly
omits only fields never passed to the constructor (like reasoning_content
on content-only chunks) while preserving explicitly-set finish_reason: null.Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com
Downloads