diff --git a/src/lib/components/chat/ModelSelector/Selector.svelte b/src/lib/components/chat/ModelSelector/Selector.svelte index ee0c25d98..60a8b1668 100644 --- a/src/lib/components/chat/ModelSelector/Selector.svelte +++ b/src/lib/components/chat/ModelSelector/Selector.svelte @@ -238,6 +238,13 @@ class="w-full text-sm bg-transparent outline-none" placeholder={searchPlaceholder} autocomplete="off" + on:keydown={(e) => { + if (e.code === 'Enter' && filteredItems.length > 0) { + value = filteredItems[0].value; + show = false; + } + }} + />