mirror of
https://github.com/open-webui/open-webui
synced 2025-02-20 12:00:22 +00:00
refac
This commit is contained in:
parent
62f1933e3c
commit
143ac08c35
@ -9,7 +9,7 @@
|
||||
|
||||
let prompts = [];
|
||||
|
||||
$: prompts = suggestionPrompts
|
||||
$: prompts = (suggestionPrompts ?? [])
|
||||
.reduce((acc, current) => [...acc, ...[current]], [])
|
||||
.sort(() => Math.random() - 0.5);
|
||||
// suggestionPrompts.length <= 4
|
||||
|
Loading…
Reference in New Issue
Block a user