diff --git a/src/lib/components/chat/ModelSelector.svelte b/src/lib/components/chat/ModelSelector.svelte
index 890be53a..626755e0 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'}
diff --git a/vite.config.ts b/vite.config.ts
index bbf8c7da..c0c600a5 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -2,5 +2,8 @@ import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vite';
export default defineConfig({
- plugins: [sveltekit()]
+ plugins: [sveltekit()],
+ server: {
+ hmr: true
+ }
});