Fix assistant chat export format

b17fdcbfd9fdf6e542e83943cc27538a70960113

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +1 -1Showing whitespace changes
public/scripts/chats.js+1 -1
@@ -1487,7 +1487,7 @@ jQuery(function () {
1487 ...chat.filter(x => x?.extra?.type !== system_message_types.ASSISTANT_NOTE),1487 ...chat.filter(x => x?.extra?.type !== system_message_types.ASSISTANT_NOTE),
1488 ];1488 ];
14891489
1490 download(JSON.stringify(chatToSave, null, 4), `Assistant - ${humanizedDateTime()}.json`, 'application/json');1490 download(chatToSave.map((m) => JSON.stringify(m)).join('\n'), `Assistant - ${humanizedDateTime()}.jsonl`, 'application/json');
1491 });1491 });
14921492
1493 // Do not change. #attachFile is added by extension.1493 // Do not change. #attachFile is added by extension.