Skip to content

Commit

Permalink
stream headers updated
Browse files Browse the repository at this point in the history
  • Loading branch information
thecodacus committed Jan 6, 2025
1 parent 24fb8c8 commit d6b8cbc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/routes/api.chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,10 @@ async function chatAction({ context, request }: ActionFunctionArgs) {
return new Response(stream.readable, {
status: 200,
headers: {
contentType: 'text/event-stream',
connection: 'keep-alive',
'Content-Type': 'text/event-stream',
Connection: 'keep-alive',
'Cache-Control': 'no-cache',
'Transfer-Encoding': 'chunked',
},
});
} catch (error: any) {
Expand Down

0 comments on commit d6b8cbc

Please sign in to comment.