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