Skip to content

Release v0.7.0: Add ResponseStream support for OpenAI Response API#23

Closed
Sixzero wants to merge 3 commits intosvilupp:mainfrom
Sixzero:main
Closed

Release v0.7.0: Add ResponseStream support for OpenAI Response API#23
Sixzero wants to merge 3 commits intosvilupp:mainfrom
Sixzero:main

Conversation

@Sixzero
Copy link
Copy Markdown
Contributor

@Sixzero Sixzero commented Nov 17, 2025

Summary

This release adds support for OpenAI's Response API streaming with a new ResponseStream flavor.

Changes

  • New ResponseStream flavor: Support for OpenAI Response API streaming
  • Reasoning token streaming: Italic formatting for reasoning summary text deltas
  • Event-based processing: Handle response.output_text.delta, response.reasoning_summary_text.delta, etc.
  • Response reconstruction: Automatic response body building from streaming chunks

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.

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-commenter
Copy link
Copy Markdown

codecov-commenter commented Nov 17, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.32%. Comparing base (d482e6a) to head (dec6db4).

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@svilupp
Copy link
Copy Markdown
Owner

svilupp commented Nov 18, 2025

Thank you for the PR! Sorry but I have a crunch at work -- it will take me until the weekend to reply

@svilupp
Copy link
Copy Markdown
Owner

svilupp commented Nov 28, 2025

Superseded by #25! Closing now.

@svilupp svilupp closed this Nov 28, 2025
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.

3 participants