chatgpt-google-extension icon indicating copy to clipboard operation
chatgpt-google-extension copied to clipboard

Auto delete conversations generated by search does not work. The extension does not delete the conversations generated by search.

Open bigplayer-ai opened this issue 2 years ago • 10 comments

Describe the bug A clear and concise description of what the bug is. Auto delete conversations generated by search does not work. The extension does not delete the conversations generated by search. I have the option grayed out. Desktop (please complete the following information):

  • OS: Windows 11 22H2
  • Browser Microsoft Edge

bigplayer-ai avatar Mar 01 '23 10:03 bigplayer-ai

I have the same problem, I can't even check/uncheck the box Capture d’écran du 2023-03-01 13-23-27

OS : Linux (ubuntu) Browser : Google Chromium

obitw avatar Mar 01 '23 12:03 obitw

Same problem for me.

OS: Windows 10 Browser: Google Chrome

e-edsen avatar Mar 01 '23 12:03 e-edsen

Same issue here.

Psytorpz avatar Mar 02 '23 04:03 Psytorpz

Same here.

OS: Windows 11 Browser: Google Chrome

yct72 avatar Mar 05 '23 14:03 yct72

Same here.

OS:macOS 13.2.1 Browser: Google Chrome

juemuel avatar Mar 06 '23 15:03 juemuel

Same here : OS : Windows 11 Browser : Brave

GregoriusAlvin1 avatar Mar 09 '23 07:03 GregoriusAlvin1

This is because the Auto delete button is added in extension options but functionality of this button is not added.

@wong2 If you are reading this comment, I have implemented this functionality by adding the above function.

async function deleteConversation(accessToken, conversationID) {
  try {
    const resp = await fetch(`https://chat.openai.com/backend-api/conversation/${conversationID}`, {
      method: "PATCH",
      headers: {
        "Content-Type": "application/json",
        Authorization: `Bearer ${accessToken}`,
      },
      body: JSON.stringify({ is_visible: false })
    });
    const data = await resp.json();
    console.log("Conversation deleted", data);
  } catch (err) {
    console.error("Error deleting conversation", err);
  }
}

chrahman avatar Mar 13 '23 09:03 chrahman

This is because the Auto delete button is added in extension options but functionality of this button is not added.

@wong2 If you are reading this comment, I have implemented this functionality by adding the above function.

async function deleteConversation(accessToken, conversationID) {
  try {
    const resp = await fetch(`https://chat.openai.com/backend-api/conversation/${conversationID}`, {
      method: "PATCH",
      headers: {
        "Content-Type": "application/json",
        Authorization: `Bearer ${accessToken}`,
      },
      body: JSON.stringify({ is_visible: false })
    });
    const data = await resp.json();
    console.log("Conversation deleted", data);
  } catch (err) {
    console.error("Error deleting conversation", err);
  }
}

Hi chrahman, do you mind providing more details on how to add the piece of code to make the auto delete option work? Thanks a lot!

michaelYZh avatar Mar 16 '23 02:03 michaelYZh

@DV4ABY I just found a temporary solution here, is that what you're looking for? And I guess the script above should be added in background.js when building from source.

yct72 avatar Mar 19 '23 17:03 yct72

@yct72 Thanks for the info!

michaelYZh avatar Mar 19 '23 17:03 michaelYZh