Skip to content

Commit

Permalink
fix: return back chat api content type (#289)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikitabut authored Dec 5, 2023
1 parent 5069343 commit d0e33f7
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/pages/api/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,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 () => {
Expand Down

0 comments on commit d0e33f7

Please sign in to comment.