From 9087aa0e30d7c6fe20da3119496b4be160367263 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Tue, 9 Jan 2024 22:56:43 -0800 Subject: [PATCH] fix: only ollama models --- src/lib/components/chat/MessageInput/Models.svelte | 7 ++++++- src/lib/components/chat/MessageInput/Suggestions.svelte | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/lib/components/chat/MessageInput/Models.svelte b/src/lib/components/chat/MessageInput/Models.svelte index aa29db3d..0dbb71c8 100644 --- a/src/lib/components/chat/MessageInput/Models.svelte +++ b/src/lib/components/chat/MessageInput/Models.svelte @@ -15,7 +15,12 @@ let filteredModels = []; $: filteredModels = $models - .filter((p) => p.name !== 'hr' && p.name.includes(prompt.split(' ')?.at(0)?.substring(1) ?? '')) + .filter( + (p) => + p.name !== 'hr' && + !p.external && + p.name.includes(prompt.split(' ')?.at(0)?.substring(1) ?? '') + ) .sort((a, b) => a.name.localeCompare(b.name)); $: if (prompt) { diff --git a/src/lib/components/chat/MessageInput/Suggestions.svelte b/src/lib/components/chat/MessageInput/Suggestions.svelte index aa42aa1a..f0d4b881 100644 --- a/src/lib/components/chat/MessageInput/Suggestions.svelte +++ b/src/lib/components/chat/MessageInput/Suggestions.svelte @@ -9,7 +9,7 @@