mirror of
https://github.com/open-webui/open-webui
synced 2025-01-30 22:39:03 +00:00
Updated filter to filter null message objects as well.
This commit is contained in:
parent
8116b04338
commit
a07b89da6f
@ -619,6 +619,7 @@
|
||||
: undefined,
|
||||
...messages
|
||||
]
|
||||
.filter((message) => message)
|
||||
.filter((message) => message.content != "")
|
||||
.map((message, idx, arr) => ({
|
||||
role: message.role,
|
||||
|
Loading…
Reference in New Issue
Block a user