mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 08:50:15 +01:00
chore: hotfix for browser client
This commit is contained in:
parent
0405206438
commit
80ca3bc375
3 changed files with 21 additions and 5 deletions
|
|
@ -190,13 +190,19 @@ module.exports = {
|
|||
}
|
||||
},
|
||||
getConvo,
|
||||
/* chore: this method is not properly error handled */
|
||||
getConvoTitle: async (user, conversationId) => {
|
||||
try {
|
||||
const convo = await getConvo(user, conversationId);
|
||||
return convo.title;
|
||||
/* ChatGPT Browser was triggering error here due to convo being saved later */
|
||||
if (convo && !convo.title) {
|
||||
return null;
|
||||
} else {
|
||||
return convo.title;
|
||||
}
|
||||
} catch (error) {
|
||||
console.log(error);
|
||||
return { message: 'Error getting conversation title' };
|
||||
return 'Error getting conversation title';
|
||||
}
|
||||
},
|
||||
deleteConvos: async (user, filter) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue