mirror of
https://github.com/stackblitz-labs/bolt.diy
synced 2025-01-22 19:06:12 +00:00
fix: streaming issue fixed for build versions (#1006)
* fix: streaming issue fixed for build versions * added keep-alive header
This commit is contained in:
parent
49c7129ded
commit
78eb3a5f34
@ -139,7 +139,8 @@ async function chatAction({ context, request }: ActionFunctionArgs) {
|
|||||||
return new Response(stream.readable, {
|
return new Response(stream.readable, {
|
||||||
status: 200,
|
status: 200,
|
||||||
headers: {
|
headers: {
|
||||||
contentType: 'text/plain; charset=utf-8',
|
contentType: 'text/event-stream',
|
||||||
|
connection: 'keep-alive',
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
} catch (error: any) {
|
} catch (error: any) {
|
||||||
|
Loading…
Reference in New Issue
Block a user