mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-16 16:30:15 +01:00
chore: hotfix: browser will not leave empty convo
This commit is contained in:
parent
80ca3bc375
commit
08c91871c7
1 changed files with 7 additions and 2 deletions
|
|
@ -38,10 +38,15 @@ router.post('/', async (req, res) => {
|
|||
...convo
|
||||
});
|
||||
|
||||
if (!overrideParentMessageId && model !== 'chatgptBrowser') {
|
||||
// Chore: This creates a loose a stranded initial message for chatgptBrowser
|
||||
|
||||
if (!overrideParentMessageId) {
|
||||
await saveMessage(userMessage);
|
||||
await saveConvo(req?.session?.user?.username, { ...userMessage, model, ...convo });
|
||||
}
|
||||
|
||||
if (!overrideParentMessageId && model !== 'chatgptBrowser') {
|
||||
await saveConvo(req?.session?.user?.username, { ...userMessage, model, ...convo });
|
||||
}
|
||||
|
||||
return await ask({
|
||||
userMessage,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue