fix bingai bugs and add chatgptbrowser client

This commit is contained in:
Daniel Avila 2023-02-21 21:30:56 -05:00
parent 168d5e8075
commit 16932b37c0
7 changed files with 42 additions and 46 deletions

View file

@ -38,7 +38,7 @@ export default function TextChat({ messages }) {
};
const convoHandler = (data) => {
console.log('in convo handler');
if (model !== 'bingai' && convo.parentMessageId === null) {
if (model !== 'bingai' && convo.conversationId && convo.parentMessageId === null) {
const { title, conversationId, id } = data;
console.log('parentMessageId is null');
console.log('title, convoId, id', title, conversationId, id);
@ -52,7 +52,7 @@ export default function TextChat({ messages }) {
invocationId: null
})
);
} else if (convo.invocationId === null) {
} else if (model === 'bingai' && convo.invocationId === null) {
const { title, conversationSignature, clientId, conversationId, invocationId } = data;
console.log('convoSig is null');
console.log(