Skip to content

fix missing sequence numbers#764

Merged
iBotPeaches merged 1 commit intoopenai-php:mainfrom
madskildegaard:fix-missing-sequence-numbers
Apr 27, 2026
Merged

fix missing sequence numbers#764
iBotPeaches merged 1 commit intoopenai-php:mainfrom
madskildegaard:fix-missing-sequence-numbers

Conversation

@madskildegaard
Copy link
Copy Markdown
Contributor

What:

  • Bug Fix
  • New Feature

Description:

Adds missing sequence_number to OutputItem, ContentPart and OutputTextDone. According to OpenAI streaming events, they should all have the sequence_number attribute when streaming a response through the Responses API.

response.output_item.added
response.output_item.done
response.content_part.added
response.content_part.done
response.output_text.done

Copy link
Copy Markdown
Collaborator

@iBotPeaches iBotPeaches left a comment

Choose a reason for hiding this comment

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

Nervous of a new field being required, but docs do say its always there.

@iBotPeaches iBotPeaches added this to the v0.20.0 milestone Apr 27, 2026
@iBotPeaches iBotPeaches merged commit 3e6c593 into openai-php:main Apr 27, 2026
14 checks passed
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