henrycunh / golem

✨ A beautiful UI for ChatGPT and other conversational models
https://golem.chat
MIT License
235 stars 63 forks source link

feat: fork/duplicate conversations from a message. #50

Closed ctholho closed 1 year ago

ctholho commented 1 year ago

Hi,

this PR adds a fork button next to the copy message button when a user clicks on a message. This will then create a duplicate conversation up to that message, with the title: Fork: < old title >

What could be improved: Deduplicating Fork: Fork: Fork: etc. But it's a trivial thing to rename your conversation. So I figured that was out of scope.

This PR adds a function cloneConversation() in composables/conversation.ts. This function is called by forkConversation() in the same file. This way it's possible to easily extend with a "Copy Conversation" Button.

fixes #48

henrycunh commented 1 year ago

Added the changes to this PR!

henrycunh commented 1 year ago

Thanks for the contributions!