Skip to content

Commit

Permalink
Merge pull request #148 from borgmon/patch-1
Browse files Browse the repository at this point in the history
Update stream content-type
  • Loading branch information
enricoros authored Aug 4, 2023
2 parents bf633e1 + 783f549 commit 7e076cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pages/api/llms/stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,10 +198,10 @@ export default async function handler(req: NextRequest): Promise<Response> {
return new NextResponse(chatResponseStream, {
status: 200,
headers: {
'Content-Type': 'text/plain; charset=utf-8',
'Content-Type': 'text/event-stream; charset=utf-8',
},
});
}

// noinspection JSUnusedGlobalSymbols
export const runtime = 'edge';
export const runtime = 'edge';

1 comment on commit 7e076cd

@vercel
Copy link

@vercel vercel bot commented on 7e076cd Aug 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

big-agi – ./

big-agi-git-main-enricoros.vercel.app
get.big-agi.com
big-agi-enricoros.vercel.app

Please sign in to comment.