chat-gpt icon indicating copy to clipboard operation
chat-gpt copied to clipboard

Dump alternative branches

Open agladysh opened this issue 2 years ago • 5 comments

As I usually update my messages to ChatGPT iteratively to improve replies or to create a part of the message with AI help, I'd like to be able to optionally dump every conversation branch as a separate conversation (in the same html).

Could you please add a version of the bookmarklet that does that?

P.S. Many thanks for this very useful tool!

agladysh avatar Jan 07 '23 20:01 agladysh

Sorry I have no idea what conversation branch is.

jcubic avatar Jan 07 '23 21:01 jcubic

If it's in a different item on the list on the left, then you can't actually save it in a single file because your browser and bookmark don't have access to it. You can save only what is displayed on the screen.

jcubic avatar Jan 07 '23 21:01 jcubic

Maybe I'm using the wrong terminology. Please see the illustrations:

Screenshot 2023-01-08 at 00 10 28

I can edit the message text and create a new branch:

Screenshot 2023-01-08 at 00 11 39

Or I can ask AI to regenerate the response, this will create a branch as well:

Screenshot 2023-01-08 at 00 12 28

I hope this info is in the DOM somewhere...

agladysh avatar Jan 07 '23 22:01 agladysh

...Seems to not be in the DOM, but can be found here (likely requiring page reload to be updated, but that's OK):

JSON.parse(document.getElementById("__NEXT_DATA__").text).props.pageProps.initialData.thread

agladysh avatar Jan 07 '23 22:01 agladysh

I need to investigate it. I didn't see this feature before.

jcubic avatar Jan 07 '23 22:01 jcubic