Using Hono for HTTP in Convex issues with SSE
I am trying to make use of Hono's first class support for SSE https://hono.dev/helpers/streaming but Convex returns 502 (bad gateway). Is this not support by the platform?
8 Replies
for reference: I am using the hono-convex template https://stack.convex.dev/hono-with-convex
Does for non streaming you are getting the response ?
yes
At the moment we don't have support for response streaming (and the 502 is a poor error message here). We're investigating adding response streaming to support use cases like this.
Also I'd be happy to learn more about your use case / try and brainstorm workarounds here
thanks @sshader. I want to stream AI generated messages, and I don't want to use the DB to work as a "middleman", since i don't want to persist conversations (this is important)
if convex supports SSE it would be a killer feature for me, currently migrating from a TRPC + Hono setup to Convex, let me know if you need any more context 🙂
We just released http streaming!
https://discord.com/channels/1019350475847499849/1019372556693815418/1240087869914218586
GitHub
streaming-chat-gpt/convex/http.ts at sshader-streaming · sshader/st...
An example of streaming ChatGPT via the OpenAI v4.0 node SDK. - sshader/streaming-chat-gpt
@Khalil ^