fix: chatgptBrowser handling and ask.js refactor

This commit is contained in:
Daniel Avila 2023-03-28 22:28:43 -04:00
parent 005d8fb178
commit 0d7300be9b
4 changed files with 39 additions and 92 deletions

View file

@ -31,6 +31,8 @@ const browserClient = async ({ text, onProgress, convo, abortController }) => {
options = { ...options, ...convo };
}
console.log('gptBrowser options', options, clientOptions);
/* will error if given a convoId at the start */
if (convo.parentMessageId.startsWith('0000')) {
delete options.conversationId;