nsarrazin HF Staff commited on
Commit
10fd4a2
·
1 Parent(s): 2b6c120

fix(conversation): update response Content-Type to JSONL for sending message updates

Browse files
src/routes/conversation/[id]/+server.ts CHANGED
@@ -512,7 +512,7 @@ export async function POST({ request, locals, params, getClientAddress }) {
512
  // Todo: maybe we should wait for the message to be saved before ending the response - in case of errors
513
  return new Response(stream, {
514
  headers: {
515
- "Content-Type": "text/event-stream",
516
  },
517
  });
518
  }
 
512
  // Todo: maybe we should wait for the message to be saved before ending the response - in case of errors
513
  return new Response(stream, {
514
  headers: {
515
+ "Content-Type": "application/jsonl",
516
  },
517
  });
518
  }