Check chat_metadata in JSONL header
| @@ -696,7 +696,7 @@ router.post('/import', validateAvatarUrlMiddleware, function (request, response) | |||
| 696 | 696 | ||
| 697 | const jsonData = JSON.parse(header); | 697 | const jsonData = JSON.parse(header); |
| 698 | 698 | ||
| 699 | if (!(jsonData.user_name !== undefined || jsonData.name !== undefined)) { | 699 | if (!(jsonData.user_name !== undefined || jsonData.name !== undefined || jsonData.chat_metadata !== undefined)) { |
| 700 | console.error('Incorrect chat format .jsonl'); | 700 | console.error('Incorrect chat format .jsonl'); |
| 701 | return response.send({ error: true }); | 701 | return response.send({ error: true }); |
| 702 | } | 702 | } |