diff --git a/src/lib/components/chat/Messages/ResponseMessage.svelte b/src/lib/components/chat/Messages/ResponseMessage.svelte index 6d010bd5a..6f1927b6f 100644 --- a/src/lib/components/chat/Messages/ResponseMessage.svelte +++ b/src/lib/components/chat/Messages/ResponseMessage.svelte @@ -304,12 +304,12 @@ console.log(res); if (res) { - message.files = res.map((image) => ({ + const files = res.map((image) => ({ type: 'image', url: `${image.url}` })); - dispatch('save', message); + dispatch('save', { ...message, files: files }); } generatingImage = false;