mirror of
https://github.com/open-webui/open-webui.git
synced 2025-08-31 17:54:19 +02:00
filter out deleted messages in payload 🗑️
This commit is contained in:
@@ -348,7 +348,7 @@
|
||||
content: $settings.system
|
||||
}
|
||||
: undefined,
|
||||
...messages
|
||||
...messages.filter((message) => !message.deleted)
|
||||
]
|
||||
.filter((message) => message)
|
||||
.map((message, idx, arr) => ({
|
||||
@@ -555,7 +555,7 @@
|
||||
content: $settings.system
|
||||
}
|
||||
: undefined,
|
||||
...messages
|
||||
...messages.filter((message) => !message.deleted)
|
||||
]
|
||||
.filter((message) => message)
|
||||
.map((message, idx, arr) => ({
|
||||
|
Reference in New Issue
Block a user