Skip to content

Commit

Permalink
fix: revert adding content types for chat api (#288)
Browse files Browse the repository at this point in the history
* Revert "fix: use correct content type for chat api (#280)"

This reverts commit 37ba516.

* empty commit
  • Loading branch information
mikitabut authored Dec 5, 2023
1 parent b40e597 commit 9724702
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 9724702

Please sign in to comment.