Support streaming with Vercel python runtime #2756
Replies: 9 comments 5 replies
-
Hey there, the Python runtime does not currently supporting streaming responses on Vercel. I'll let the team know about this feature request! |
Beta Was this translation helpful? Give feedback.
-
Hey @leerob, when can we anticipate the release of the Python runtime's streaming responses on Vercel? We're facing a similar issue with Next.JS and Python FastAPI and considering alternatives. Any rough estimates or potential timelines would be much appreciated. Thanks! |
Beta Was this translation helpful? Give feedback.
-
I also encountered this problem and can't return |
Beta Was this translation helpful? Give feedback.
-
Would also love support from Vercel on this |
Beta Was this translation helpful? Give feedback.
-
Same! This would be absolutely killer with |
Beta Was this translation helpful? Give feedback.
-
I also encountered the same problem in golang. I hope to support Flush's API and support sending buffered data to the client. |
Beta Was this translation helpful? Give feedback.
-
Feb 1, 2024 - still waiting for the feature. |
Beta Was this translation helpful? Give feedback.
-
It would be super useful to have the streaming feature for FastAPI on Vercel. I got this error when I tried to use this endpoint:
|
Beta Was this translation helpful? Give feedback.
-
+1 The Vercel AI SDK is neat, but the server implementation does not yet support the real-time streaming of StreamData: vercel/ai#853. I implemented a Python version that does support the streaming of StreamData, but unfortunately, this only works locally due to streaming not being supported by the Python runtime (implementation can be found here for those interested). It would be really cool if Vercel supported this! |
Beta Was this translation helpful? Give feedback.
-
Summary
I'm using vercel dev to start my project with NextJS 13. I'm using the Python runtime on Vercel and try to stream to the frontend. My frontent code is implemented correctly, but for the life of me I cannot get the streaming to send anything. Would love some help!
output in console
I'm 90% problem isn't in the client but just in case
Example
No response
Steps to Reproduce
vercel dev, Python http runtime, NextJS-13
test_data = ["chunk1", "chunk2", "chunk3", "chunk4"]
and receive the data in the front end as you normally would. I showed above a minimal example
Beta Was this translation helpful? Give feedback.
All reactions