From 85e9e231ed08df2d19ed6e5588f52369e5971030 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Tue, 24 Sep 2024 13:54:34 +0200 Subject: [PATCH] fix: image generation --- src/lib/components/chat/Messages/ResponseMessage.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;