mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-18 17:30:16 +01:00
fix: dont send gen_title twice
This commit is contained in:
parent
d73375958b
commit
8b00805d24
5 changed files with 29 additions and 18 deletions
|
|
@ -60,12 +60,14 @@ export default function TextChat({ messages }) {
|
|||
const isBing = model === 'bingai' || model === 'sydney';
|
||||
|
||||
if (requestMessage.parentMessageId == '00000000-0000-0000-0000-000000000000') {
|
||||
genTitle.trigger({ conversationId }).then((ret) => {
|
||||
const title = ret?.data
|
||||
setTimeout(() => {
|
||||
dispatch(refreshConversation());
|
||||
}, 2000);
|
||||
|
||||
if (title)
|
||||
// in case it takes too long.
|
||||
setTimeout(() => {
|
||||
dispatch(refreshConversation());
|
||||
})
|
||||
}, 5000);
|
||||
}
|
||||
|
||||
if (!isBing && convo.conversationId === null && convo.parentMessageId === null) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue