From 0e56ef20cb8015238664b78548372c6cb9852145 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Wed, 23 Oct 2024 14:51:25 -0700 Subject: [PATCH] fix: selectedModels --- src/lib/components/chat/Chat.svelte | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index d8c3b2a5d..8939ff742 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -475,14 +475,14 @@ selectedModels = $config?.default_models.split(','); } - if (selectedModels.length === 0) { + if (selectedModels.length === 1 && selectedModels[0] === '') { if ($models.length > 0) { selectedModels = [$models[0].id]; - } else { - selectedModels = ['']; } } + console.log(selectedModels); + if ($page.url.searchParams.get('youtube')) { uploadYoutubeTranscription( `https://www.youtube.com/watch?v=${$page.url.searchParams.get('youtube')}`