From 6e6f9862e698561d81564fa0b45804d5f94c98d1 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Mon, 5 Aug 2024 17:15:07 +0200 Subject: [PATCH] fix --- src/lib/components/chat/Messages/TokenRenderer.svelte | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/lib/components/chat/Messages/TokenRenderer.svelte b/src/lib/components/chat/Messages/TokenRenderer.svelte index 13fd56bea..ce0c38d41 100644 --- a/src/lib/components/chat/Messages/TokenRenderer.svelte +++ b/src/lib/components/chat/Messages/TokenRenderer.svelte @@ -4,7 +4,6 @@ import { marked } from 'marked'; import CodeBlock from './CodeBlock.svelte'; import Image from '$lib/components/common/Image.svelte'; - import { stringify } from 'postcss'; export let token; export let tokenIdx = 0; @@ -86,7 +85,11 @@ {:else if codes.length > 0 && part.startsWith('{{@CODE ')} {@const _code = codes[parseInt(part.match(/{{@CODE (\d+)}}/)[1])]}
- +
{/if} {/each}