Hide model search input unless there are >= 5 models

This commit is contained in:
Alex Gleason committed 2025-09-26 17:18:00 -05:00
1 parent 57a80ad33d
commit ca334d7585
1 file changed
+3 -1
+3 -1
View File
@@ -168,7 +168,9 @@ export function ModelSelector({
</PopoverTrigger>
<PopoverContent className="w-96 p-0" align="end">
<Command>
{isConfigured && <CommandInput placeholder={t('searchModels')} className="h-9" />}
{(isConfigured && models.length >= 5) && (
<CommandInput placeholder={t('searchModels')} className="h-9" />
)}
<CommandList className="max-h-[300px]">
<CommandEmpty>
<div className="py-6 text-center text-sm text-muted-foreground">