refac: o1 title generation issue

This commit is contained in:
Timothy Jaeryang Baek 2024-11-24 19:07:51 -08:00
parent bd28e1ed7d
commit 840437e58f

View File

@ -1976,7 +1976,7 @@
}
);
return title;
return title ? title : (lastUserMessage?.content ?? 'New Chat');
} else {
return lastUserMessage?.content ?? 'New Chat';
}