fix: streaming issue fixed for build versions (#1006)

* fix: streaming issue fixed for build versions

* added keep-alive header
This commit is contained in:
Anirban Kar
2025-01-06 19:18:52 +05:30
committed by GitHub
parent 49c7129ded
commit 78eb3a5f34

View File

@@ -139,7 +139,8 @@ async function chatAction({ context, request }: ActionFunctionArgs) {
return new Response(stream.readable, {
status: 200,
headers: {
contentType: 'text/plain; charset=utf-8',
contentType: 'text/event-stream',
connection: 'keep-alive',
},
});
} catch (error: any) {