From d07f0509bde12eb8cd23cc140db348762bc102ae Mon Sep 17 00:00:00 2001 From: Mikita Butsko Date: Tue, 5 Dec 2023 11:46:30 +0100 Subject: [PATCH] fix: return back content type for chat api (#287) --- src/pages/api/chat.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/pages/api/chat.ts b/src/pages/api/chat.ts index 4e83e877c7..c9831b2595 100644 --- a/src/pages/api/chat.ts +++ b/src/pages/api/chat.ts @@ -144,7 +144,6 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => { jobTitle: token?.jobTitle as string, }); res.setHeader('Transfer-Encoding', 'chunked'); - res.setHeader('Content-Type', 'text/event-stream'); const reader = stream.getReader(); const processStream = async () => {