diff --git a/src/lib/components/chat/ModelSelector/Selector.svelte b/src/lib/components/chat/ModelSelector/Selector.svelte index 98c63fc06e..3e5256f6e8 100644 --- a/src/lib/components/chat/ModelSelector/Selector.svelte +++ b/src/lib/components/chat/ModelSelector/Selector.svelte @@ -27,6 +27,8 @@ export let className = 'max-w-lg'; + let show = false; + let selectedModel = ''; $: selectedModel = items.find((item) => item.value === value) ?? ''; @@ -181,6 +183,7 @@ { searchValue = ''; window.setTimeout(() => document.getElementById('model-search-input')?.focus(), 0); @@ -214,6 +217,7 @@ bind:value={searchValue} class="w-full text-sm bg-transparent outline-none" placeholder={searchPlaceholder} + autocomplete="off" /> @@ -222,10 +226,12 @@
{#each filteredItems as item} - { value = item.value; + + show = false; }} >
@@ -294,7 +300,7 @@
{/if} -
+ {:else}