|
@@ -20,6 +20,7 @@
|
|
import ProfileImage from './ProfileImage.svelte';
|
|
import ProfileImage from './ProfileImage.svelte';
|
|
import Skeleton from './Skeleton.svelte';
|
|
import Skeleton from './Skeleton.svelte';
|
|
import CodeBlock from './CodeBlock.svelte';
|
|
import CodeBlock from './CodeBlock.svelte';
|
|
|
|
+ import Image from '$lib/components/common/Image.svelte';
|
|
|
|
|
|
export let modelfiles = [];
|
|
export let modelfiles = [];
|
|
export let message;
|
|
export let message;
|
|
@@ -46,7 +47,6 @@
|
|
let speakingIdx = null;
|
|
let speakingIdx = null;
|
|
|
|
|
|
let loadingSpeech = false;
|
|
let loadingSpeech = false;
|
|
-
|
|
|
|
let generatingImage = false;
|
|
let generatingImage = false;
|
|
|
|
|
|
$: tokens = marked.lexer(message.content);
|
|
$: tokens = marked.lexer(message.content);
|
|
@@ -323,7 +323,7 @@
|
|
{#each message.files as file}
|
|
{#each message.files as file}
|
|
<div>
|
|
<div>
|
|
{#if file.type === 'image'}
|
|
{#if file.type === 'image'}
|
|
- <img src={file.url} alt="input" class=" max-h-96 rounded-lg" draggable="false" />
|
|
|
|
|
|
+ <Image src={file.url} />
|
|
{/if}
|
|
{/if}
|
|
</div>
|
|
</div>
|
|
{/each}
|
|
{/each}
|