Release v0.7.0: Add ResponseStream support for OpenAI Response API#23
Closed
Sixzero wants to merge 3 commits intosvilupp:mainfrom
Closed
Release v0.7.0: Add ResponseStream support for OpenAI Response API#23Sixzero wants to merge 3 commits intosvilupp:mainfrom
Sixzero wants to merge 3 commits intosvilupp:mainfrom
Conversation
With reasoning token stream as italic streamed.
- Support for OpenAI Response API streaming with new ResponseStream flavor - Reasoning token streaming support with italic formatting for reasoning summary text - Event-based streaming processing for Response API - Automatic response body reconstruction from Response API streaming chunks
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #23 +/- ##
==========================================
+ Coverage 87.17% 89.32% +2.14%
==========================================
Files 6 7 +1
Lines 273 328 +55
==========================================
+ Hits 238 293 +55
Misses 35 35 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Owner
|
Thank you for the PR! Sorry but I have a crunch at work -- it will take me until the weekend to reply |
Owner
|
Superseded by #25! Closing now. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This release adds support for OpenAI's Response API streaming with a new
ResponseStreamflavor.Changes
response.output_text.delta,response.reasoning_summary_text.delta, etc.Breaking Changes
None - this is a backward-compatible addition.
Testing
The new functionality has been implemented with proper event handling and response reconstruction to maintain compatibility with existing Response API usage patterns.