diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index 20f5f81cd..e94f5f004 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -475,10 +475,12 @@ selectedModels = $config?.default_models.split(','); } - if ($models.length > 0) { - selectedModels = [$models[0].id]; - } else { - selectedModels = ['']; + if (selectedModels.length === 0) { + if ($models.length > 0) { + selectedModels = [$models[0].id]; + } else { + selectedModels = ['']; + } } if ($page.url.searchParams.get('youtube')) {