Next.js Discord

Discord Forum

Avoiding Edge function timeout with GPT Assistant?

Unanswered
European pilchard posted this in #help-forum
Open in Discord
European pilchardOP
Hi,
I’m using the new GPT assistant api and because it doesn’t support streaming, it seems like the edge function is timing out after 25 seconds instead getting the extended timeframe that it gets for streaming. Is there a way I can stream the response once it comes in just to get the extended time frame? Meaning even though it doesn’t need to be streamed, turn the response into a stream just to trick the function to run longer?

Thanks in advance

0 Replies