Spaces:
Sleeping
Sleeping
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": "
|
| 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 |
}
|