haystack icon indicating copy to clipboard operation
haystack copied to clipboard

Support for websocket mode in OpenAIResponsesChatGenerator

Open kahkhang opened this issue 5 months ago • 4 comments

Is your feature request related to a problem? Please describe.

Would it be possible to support websocket mode in OpenAIResponsesChatGenerator (or a variant of the haystack component)?(https://developers.openai.com/api/docs/guides/websocket-mode) This would enable lower latency for long agentic tasks.

Describe the solution you'd like

A haystack component, that keeps a persistent websocket connection, and interacts with OpenAI backend via wss connection. Other AI frameworks have introduced support for this, e.g. https://github.com/vercel/ai/pull/12775


👋 Hello there! This issue will be handled internally and isn’t open for external contributions. If you’d like to contribute, please take a look at issues labeled contributions welcome or good first issue. We’d really appreciate it!

kahkhang avatar Jun 29 '26 01:06 kahkhang

I'll work on this. Could you assign it to me?

I'll implement this in a small PR with tests, matching existing patterns in the repo.

modelpath-dev avatar Sep 04 '26 08:09 modelpath-dev

I'll start working on the implementation soon. Let me know if there are any specific guidelines or preferences for this feature.

modelpath-dev avatar Sep 06 '26 09:09 modelpath-dev

I'll begin the implementation as planned. If there are any updates or specific requirements, please let me know.

modelpath-dev avatar Sep 08 '26 10:09 modelpath-dev

@modelpath-dev are you still working on this??

31groot avatar Oct 16 '26 13:10 31groot