mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Fix assistant chat export format
This commit is contained in:
@@ -1487,7 +1487,7 @@ jQuery(function () {
|
|||||||
...chat.filter(x => x?.extra?.type !== system_message_types.ASSISTANT_NOTE),
|
...chat.filter(x => x?.extra?.type !== system_message_types.ASSISTANT_NOTE),
|
||||||
];
|
];
|
||||||
|
|
||||||
download(JSON.stringify(chatToSave, null, 4), `Assistant - ${humanizedDateTime()}.json`, 'application/json');
|
download(chatToSave.map((m) => JSON.stringify(m)).join('\n'), `Assistant - ${humanizedDateTime()}.jsonl`, 'application/json');
|
||||||
});
|
});
|
||||||
|
|
||||||
// Do not change. #attachFile is added by extension.
|
// Do not change. #attachFile is added by extension.
|
||||||
|
Reference in New Issue
Block a user