mirror of
https://github.com/open-webui/open-webui
synced 2025-01-19 09:16:44 +00:00
fix: channel thread
This commit is contained in:
parent
3e9c92729d
commit
b2b56d14cb
@ -189,9 +189,11 @@ class MessageTable:
|
|||||||
.all()
|
.all()
|
||||||
)
|
)
|
||||||
|
|
||||||
return [
|
# If length of all_messages is less than limit, then add the parent message
|
||||||
MessageModel.model_validate(message) for message in all_messages
|
if len(all_messages) < limit:
|
||||||
] + [MessageModel.model_validate(message)]
|
all_messages.append(message)
|
||||||
|
|
||||||
|
return [MessageModel.model_validate(message) for message in all_messages]
|
||||||
|
|
||||||
def update_message_by_id(
|
def update_message_by_id(
|
||||||
self, id: str, form_data: MessageForm
|
self, id: str, form_data: MessageForm
|
||||||
|
Loading…
Reference in New Issue
Block a user