This commit is contained in:
Timothy Jaeryang Baek 2024-12-29 21:02:11 -08:00
parent 79d7e67e51
commit 952822ad5d

View File

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