Skip to content

Commit 78eb3a5

Browse files
authored
fix: streaming issue fixed for build versions (#1006)
* fix: streaming issue fixed for build versions * added keep-alive header
1 parent 49c7129 commit 78eb3a5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/routes/api.chat.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,8 @@ async function chatAction({ context, request }: ActionFunctionArgs) {
139139
return new Response(stream.readable, {
140140
status: 200,
141141
headers: {
142-
contentType: 'text/plain; charset=utf-8',
142+
contentType: 'text/event-stream',
143+
connection: 'keep-alive',
143144
},
144145
});
145146
} catch (error: any) {

0 commit comments

Comments
 (0)