forked from open-webui/open-webui
filter out deleted messages in payload 🗑️
This commit is contained in:
parent
60c99a44f8
commit
cd3cecd2f0
1 changed files with 2 additions and 2 deletions
|
@ -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) => ({
|
||||
|
|
Loading…
Reference in a new issue