From 1275371e102e0e9a2184c0f3631393ab840911e6 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Sat, 15 Jun 2024 10:43:10 -0600 Subject: [PATCH] fix: md model desc --- src/lib/components/chat/Messages/Placeholder.svelte | 5 ++++- src/lib/components/chat/ModelSelector/Selector.svelte | 10 +++++++--- src/lib/components/common/Tooltip.svelte | 2 +- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/src/lib/components/chat/Messages/Placeholder.svelte b/src/lib/components/chat/Messages/Placeholder.svelte index ac5f8dce1..cdcb7784e 100644 --- a/src/lib/components/chat/Messages/Placeholder.svelte +++ b/src/lib/components/chat/Messages/Placeholder.svelte @@ -8,6 +8,7 @@ import { blur, fade } from 'svelte/transition'; import Suggestions from '../MessageInput/Suggestions.svelte'; + import { sanitizeResponseContent } from '$lib/utils'; const i18n = getContext('i18n'); @@ -70,7 +71,9 @@
- {@html marked.parse(models[selectedModelIdx]?.info?.meta?.description)} + {@html marked.parse( + sanitizeResponseContent(models[selectedModelIdx]?.info?.meta?.description) + )}
{#if models[selectedModelIdx]?.info?.meta?.user}
diff --git a/src/lib/components/chat/ModelSelector/Selector.svelte b/src/lib/components/chat/ModelSelector/Selector.svelte index 6c27174ae..dd1026698 100644 --- a/src/lib/components/chat/ModelSelector/Selector.svelte +++ b/src/lib/components/chat/ModelSelector/Selector.svelte @@ -1,5 +1,6 @@