Przeglądaj źródła

fix: model command filter

Timothy Jaeryang Baek 4 tygodni temu
rodzic
commit
f2a09c7149

+ 2 - 2
src/lib/components/chat/MessageInput/Commands/Models.svelte

@@ -29,12 +29,12 @@
 			}),
 		{
 			keys: ['value', 'tags', 'modelName'],
-			threshold: 0.3
+			threshold: 0.5
 		}
 	);
 
 	$: filteredItems = command.slice(1)
-		? fuse.search(command).map((e) => {
+		? fuse.search(command.slice(1)).map((e) => {
 				return e.item;
 			})
 		: $models.filter((model) => !model?.info?.meta?.hidden);