Is it possible to stream openai responses in serverless function in app dir
Unanswered
Sun bear posted this in #help-forum
Sun bearOP
As the title said, is it possible to stream openai responses in serverless function in app dir. I don't want to use edge functions, since I can't connect to my database at the edge
2 Replies
European sprat
i've used openai with my own nodejs deployment and it works fine without runtime edge
but i was curious about using vercel (never used it before) so i deployed this https://github.com/vercel-labs/ai-chatbot after commenting out all the "edge" runtime config lines and it works fine