Skip to content

Commit

Permalink
fix: change Content-Type from text/plain to text/event-stream
Browse files Browse the repository at this point in the history
  • Loading branch information
charnould committed Jan 16, 2025
1 parent 1fa32c7 commit 2e87d9c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions controllers/GET.ai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,7 @@ export const controller = async (c: Context) => {
// If incoming request comes from www: return a stream

c.header('X-Vercel-AI-Data-Stream', 'v1')
c.header('Content-Type', 'text/plain; charset=utf-8')
// c.header('Content-Type', 'text/event-stream')
c.header('Content-Type', 'text/event-stream; charset=utf-8')

return stream(c, (stream) =>
stream
Expand Down

0 comments on commit 2e87d9c

Please sign in to comment.