mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-18 09:20:15 +01:00
properly records bing conversations
This commit is contained in:
parent
b4e22936ba
commit
81e52fed73
6 changed files with 91 additions and 32 deletions
|
|
@ -38,12 +38,31 @@ export default function TextChat({ messages }) {
|
|||
};
|
||||
const convoHandler = (data) => {
|
||||
console.log('in convo handler');
|
||||
if (convo.conversationId === null && convo.parentMessageId === null) {
|
||||
if (model !== 'bingai' && convo.parentMessageId === null) {
|
||||
const { title, conversationId, id } = data;
|
||||
console.log('convo is null');
|
||||
console.log('parentMessageId is null');
|
||||
console.log('title, convoId, id', title, conversationId, id);
|
||||
dispatch(setConversation({ title, conversationId, parentMessageId: id }));
|
||||
console.log('convo after dispatch', convo);
|
||||
} else if (convo.conversationSignature === null) {
|
||||
const { title, conversationSignature, clientId, conversationId, invocationId } = data;
|
||||
console.log('convoSig is null');
|
||||
console.log(
|
||||
'bing res data',
|
||||
title,
|
||||
conversationSignature,
|
||||
clientId,
|
||||
conversationId,
|
||||
invocationId
|
||||
);
|
||||
dispatch(
|
||||
setConversation({
|
||||
title,
|
||||
conversationSignature,
|
||||
clientId,
|
||||
conversationId,
|
||||
invocationId
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
dispatch(setSubmitState(false));
|
||||
|
|
@ -141,4 +160,4 @@ export default function TextChat({ messages }) {
|
|||
<Footer />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue