mirror of
https://github.com/open-webui/open-webui
synced 2025-01-31 15:01:00 +00:00
fix: outlet filter hook
This commit is contained in:
parent
76decdba2a
commit
54daf3b765
@ -182,6 +182,7 @@ async def chat_completed(request: Request, form_data: dict, user: Any):
|
||||
"chat_id": data["chat_id"],
|
||||
"message_id": data["id"],
|
||||
"session_id": data["session_id"],
|
||||
"user_id": user.id,
|
||||
}
|
||||
)
|
||||
|
||||
@ -190,6 +191,7 @@ async def chat_completed(request: Request, form_data: dict, user: Any):
|
||||
"chat_id": data["chat_id"],
|
||||
"message_id": data["id"],
|
||||
"session_id": data["session_id"],
|
||||
"user_id": user.id,
|
||||
}
|
||||
)
|
||||
|
||||
|
@ -836,7 +836,7 @@
|
||||
return null;
|
||||
});
|
||||
|
||||
if (res !== null) {
|
||||
if (res !== null && res.messages) {
|
||||
// Update chat history with the new messages
|
||||
for (const message of res.messages) {
|
||||
history.messages[message.id] = {
|
||||
|
Loading…
Reference in New Issue
Block a user