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')}`