diff --git a/src/lib/components/chat/ModelSelector.svelte b/src/lib/components/chat/ModelSelector.svelte index 637c9c0176..09b02670eb 100644 --- a/src/lib/components/chat/ModelSelector.svelte +++ b/src/lib/components/chat/ModelSelector.svelte @@ -14,6 +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 const saveDefaultModel = async () => { const hasEmptyModel = selectedModels.filter((it) => it === ''); @@ -51,7 +52,7 @@ - {#if selectedModelIdx === 0} + {#if selectedModelIdx === 0 && showAddModelButton}