From 1e49d4d07571868b385100e251aaf1b2761822b8 Mon Sep 17 00:00:00 2001 From: "Jonathan C. McKinney" Date: Wed, 5 Jun 2024 00:56:27 -0700 Subject: [PATCH] Don't show remove model --- src/lib/components/chat/ModelSelector.svelte | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/components/chat/ModelSelector.svelte b/src/lib/components/chat/ModelSelector.svelte index 09b02670eb..01df758d62 100644 --- a/src/lib/components/chat/ModelSelector.svelte +++ b/src/lib/components/chat/ModelSelector.svelte @@ -14,7 +14,7 @@ export let disabled = false; export let showSetDefault = true; - export let showAddModelButton = false; // New variable to control the visibility of the add model button + export let showAddRemoveModelButtons = false; const saveDefaultModel = async () => { const hasEmptyModel = selectedModels.filter((it) => it === ''); @@ -52,7 +52,7 @@ - {#if selectedModelIdx === 0 && showAddModelButton} + {#if selectedModelIdx === 0 && showAddRemoveModelButtons}
- {:else} + {:else if selectedModelIdx !== 0 && showAddRemoveModelButtons}