diff --git a/src/lib/components/chat/MessageInput/CommandSuggestionList.svelte b/src/lib/components/chat/MessageInput/CommandSuggestionList.svelte index f3c9112b82..4b24b24cf1 100644 --- a/src/lib/components/chat/MessageInput/CommandSuggestionList.svelte +++ b/src/lib/components/chat/MessageInput/CommandSuggestionList.svelte @@ -1,7 +1,7 @@ + +{#if knowledgeResults.length > 0 || query.startsWith('http')} + {#each knowledgeResults as item, idx} + {@const itemIdx = idx} + {#if idx === 0 || item?.type !== knowledgeResults[idx - 1]?.type} +