From 7ffc1902a9f3f93cf08ac6231c7223093c78b8f0 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Fri, 29 Dec 2023 23:35:08 -0800 Subject: [PATCH] feat: toggle settings shortcut added --- src/lib/components/chat/ModelSelector.svelte | 7 ++++--- src/lib/components/chat/ShortcutsModal.svelte | 17 +++++++++++++++++ src/routes/(app)/+layout.svelte | 7 +++++++ 3 files changed, 28 insertions(+), 3 deletions(-) diff --git a/src/lib/components/chat/ModelSelector.svelte b/src/lib/components/chat/ModelSelector.svelte index 626755e0..b4a0f47c 100644 --- a/src/lib/components/chat/ModelSelector.svelte +++ b/src/lib/components/chat/ModelSelector.svelte @@ -6,8 +6,8 @@ export let disabled = false; const saveDefaultModel = () => { - const hasEmptyModel = selectedModels.filter(it => it === ''); - if(hasEmptyModel.length){ + const hasEmptyModel = selectedModels.filter((it) => it === ''); + if (hasEmptyModel.length) { toast.error('Choose a model before saving...'); return; } @@ -88,8 +88,9 @@ {#if selectedModelIdx === 0}