diff --git a/src/lib/components/chat/Messages/ResponseMessage.svelte b/src/lib/components/chat/Messages/ResponseMessage.svelte index e9dedc12f..5af3a47e7 100644 --- a/src/lib/components/chat/Messages/ResponseMessage.svelte +++ b/src/lib/components/chat/Messages/ResponseMessage.svelte @@ -20,6 +20,7 @@ import ProfileImage from './ProfileImage.svelte'; import Skeleton from './Skeleton.svelte'; import CodeBlock from './CodeBlock.svelte'; + import Image from '$lib/components/common/Image.svelte'; export let modelfiles = []; export let message; @@ -46,7 +47,6 @@ let speakingIdx = null; let loadingSpeech = false; - let generatingImage = false; $: tokens = marked.lexer(message.content); @@ -323,7 +323,7 @@ {#each message.files as file}
{#if file.type === 'image'} - input + {/if}
{/each} diff --git a/src/lib/components/common/Image.svelte b/src/lib/components/common/Image.svelte new file mode 100644 index 000000000..566ebb5b1 --- /dev/null +++ b/src/lib/components/common/Image.svelte @@ -0,0 +1,18 @@ + + + + diff --git a/src/lib/components/common/ImagePreview.svelte b/src/lib/components/common/ImagePreview.svelte new file mode 100644 index 000000000..cf69327fa --- /dev/null +++ b/src/lib/components/common/ImagePreview.svelte @@ -0,0 +1,62 @@ + + +{#if show} + + +
+
+
+ +
+ +
+ +
+
+ +
+{/if}