Skip to content

Add streaming support for Responses API #405

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kazzix14
Copy link

@kazzix14 kazzix14 commented Jul 19, 2025

Added a streaming support for Responses API.

The most of these changes are for Streaming Response types.
I referenced this document https://platform.openai.com/docs/api-reference/responses-streaming/response

@kazzix14 kazzix14 force-pushed the feat/responses-api-straiming-support branch 7 times, most recently from 5463b37 to 318f248 Compare July 19, 2025 12:32
@kazzix14 kazzix14 changed the title Add streaming support for Responses API. Add streaming support for Responses API Jul 19, 2025
@kazzix14
Copy link
Author

I found a bug in my implementation. Please wait for my fix.

@kazzix14 kazzix14 force-pushed the feat/responses-api-straiming-support branch 3 times, most recently from 2e6afd2 to f59f582 Compare July 24, 2025 04:05
@kazzix14
Copy link
Author

I found a bug in my implementation. Please wait for my fix.

Actually, it wasn’t a bug after all. However, I did spot an improvement, so I’ll open a separate PR for that.

Could you please review this PR?

@kazzix14 kazzix14 force-pushed the feat/responses-api-straiming-support branch from f59f582 to 3f09cb0 Compare July 24, 2025 04:21
@kazzix14
Copy link
Author

kazzix14 commented Jul 24, 2025

I just opened #406. I think they should be shipped together. Because without #406, The feature implemented in this PR can easily lead to infinite API calls without explicit break like example

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.

1 participant