ai icon indicating copy to clipboard operation
ai copied to clipboard

Serverless stream exception

Open zandko opened this issue 2 years ago • 1 comments

Description

I have no problem running and deploying to the server locally. When I used Tencent Cloud serverless, I found that the flow was abnormal, and all the text responded at the same time.

Code example

return new StreamingTextResponse(stream, { headers: { ...ResponseHeaders } }, data);

Additional context

No response

zandko avatar Feb 05 '24 05:02 zandko

Having the text returned at the same time might indicate a lack of support for streaming on the provider side (Tencent). Does Tencent Cloud serverless support streaming? When you e.g. deploy your example to Vercel, does streaming work there?

lgrammel avatar Feb 19 '24 14:02 lgrammel