Skip to content

fix(OpenAI): Support streaming 'compaction' output#787

Merged
iBotPeaches merged 2 commits into
openai-php:mainfrom
e4se:main
Jul 6, 2026
Merged

fix(OpenAI): Support streaming 'compaction' output#787
iBotPeaches merged 2 commits into
openai-php:mainfrom
e4se:main

Conversation

@e4se

@e4se e4se commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

What:

  • Bug Fix
  • New Feature

Description:

  • Add compaction output parsing to Responses streaming OutputItem
  • Add a stream fixture and regression test for response.output_item.done with a compaction item

Why

Streaming response output items could not parse the new compaction output object even though non-streamed Responses output already supported it.

@iBotPeaches iBotPeaches left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great. Thanks for catching my mistake, I forgot to do the streaming aspect.

@iBotPeaches iBotPeaches merged commit 02b51fa into openai-php:main Jul 6, 2026
14 checks passed
@iBotPeaches iBotPeaches added this to the v0.20.1 milestone Jul 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants