Skip to content

Commit

Permalink
Update index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
threepointone committed Aug 9, 2024
1 parent 33dd14d commit 5b119e0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/ai-chat/src/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ export default {
});
return result.toDataStreamResponse({
headers: {
// we add these headers to ensure that the
// response is chunked and streamed
"Content-Type": "text/x-unknown",
"content-encoding": "identity",
"transfer-encoding": "chunked",
Expand Down

0 comments on commit 5b119e0

Please sign in to comment.