From 028eb7b351bd44e92a2231b39d521dd820ab83d5 Mon Sep 17 00:00:00 2001 From: Clivia <132346501+Yanyutin753@users.noreply.github.com> Date: Sat, 3 Aug 2024 21:00:37 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Better=20Practice?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ✨ Better Practice --- .../components/chat/MessageInput/Models.svelte | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/lib/components/chat/MessageInput/Models.svelte b/src/lib/components/chat/MessageInput/Models.svelte index ccd455a99..249eb96a5 100644 --- a/src/lib/components/chat/MessageInput/Models.svelte +++ b/src/lib/components/chat/MessageInput/Models.svelte @@ -21,10 +21,8 @@ let filteredModels = []; $: filteredModels = $models - .filter( - (p) => - p.name.toLowerCase().includes(prompt.toLowerCase().split(' ')?.at(0)?.substring(1) ?? '') && - p?.info?.meta?.hidden + .filter((p) => + p.name.toLowerCase().includes(prompt.toLowerCase().split(' ')?.at(0)?.substring(1) ?? '') ) .sort((a, b) => a.name.localeCompare(b.name)); @@ -149,9 +147,9 @@