| 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 | ]; |
| 1489 | | 1489 | |
| 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 | }); |
| 1492 | | 1492 | |
| 1493 | // Do not change. #attachFile is added by extension. | 1493 | // Do not change. #attachFile is added by extension. |