Skip to content

Conversation

@longseespace
Copy link
Contributor

@longseespace longseespace commented Jul 25, 2025

Overview

The current StreamOutputItem is implemented as a simple struct that only supports the message type. According to the OpenAI API documentation, it should support all the same types as OutputItem plus additional types. This PR refactors it to be an enum that properly represents all possible output item types and add comprehensive test coverage.

@longseespace longseespace changed the title Stream output item Support all OpenAI Response API output item types Jul 25, 2025
@jamesrochabrun
Copy link
Owner

thanks for the contribution! please run the swift format linter.

@jamesrochabrun jamesrochabrun merged commit 1761c70 into jamesrochabrun:main Aug 2, 2025
2 of 3 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