fix: outlet filter hook

This commit is contained in:
Timothy Jaeryang Baek 2024-12-28 18:05:07 -08:00
parent 76decdba2a
commit 54daf3b765
2 changed files with 3 additions and 1 deletions

View File

@ -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,
}
)

View File

@ -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] = {