diff --git a/src/lib/components/chat/ModelSelector.svelte b/src/lib/components/chat/ModelSelector.svelte
index 890be53a6..626755e05 100644
--- a/src/lib/components/chat/ModelSelector.svelte
+++ b/src/lib/components/chat/ModelSelector.svelte
@@ -6,6 +6,11 @@
export let disabled = false;
const saveDefaultModel = () => {
+ const hasEmptyModel = selectedModels.filter(it => it === '');
+ if(hasEmptyModel.length){
+ toast.error('Choose a model before saving...');
+ return;
+ }
settings.set({ ...$settings, models: selectedModels });
localStorage.setItem('settings', JSON.stringify($settings));
toast.success('Default model updated');
@@ -21,7 +26,7 @@
bind:value={selectedModel}
{disabled}
>
-
+
{#each $models as model}
{#if model.name === 'hr'}