Next.js Discord

Discord Forum

Initial StreamTextResponse

Unanswered
Giant ichneumon wasp posted this in #help-forum
Open in Discord
Giant ichneumon waspOP
I'm using vercel ai sdk to stream langchain calls on edge functions. One of my routes needs to do prior context fetching/generating before making the final user-facing streaming llm call. How can I send an initial response to avoid hitting the 30 second initial response limit on edge functions?

0 Replies