From 0a87c1ecd078320a08c4cc62d41fe8727fb3b5f7 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Wed, 11 Mar 2026 14:41:33 -0500 Subject: [PATCH] refac --- src/lib/components/channel/MessageInput/MentionList.svelte | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lib/components/channel/MessageInput/MentionList.svelte b/src/lib/components/channel/MessageInput/MentionList.svelte index a74aec5da..6d7209f45 100644 --- a/src/lib/components/channel/MessageInput/MentionList.svelte +++ b/src/lib/components/channel/MessageInput/MentionList.svelte @@ -122,7 +122,11 @@ } if (modelSuggestions) { - _models = [...$models.map((m) => ({ type: 'model', id: m.id, label: m.name, data: m }))]; + _models = [ + ...$models + .filter((m) => !m?.direct) + .map((m) => ({ type: 'model', id: m.id, label: m.name, data: m })) + ]; } }