diff --git a/src/lib/components/chat/MessageInput/Suggestions.svelte b/src/lib/components/chat/MessageInput/Suggestions.svelte index cbc3a7e5f..fc8038c41 100644 --- a/src/lib/components/chat/MessageInput/Suggestions.svelte +++ b/src/lib/components/chat/MessageInput/Suggestions.svelte @@ -4,7 +4,9 @@ let prompts = []; - $: prompts = suggestionPrompts; + $: prompts = suggestionPrompts + .reduce((acc, current) => [...acc, ...[current]], []) + .sort(() => Math.random() - 0.5); // suggestionPrompts.length <= 4 // ? suggestionPrompts // : suggestionPrompts.sort(() => Math.random() - 0.5).slice(0, 4);