faetalize/zodiac

Add a "regenerate reply" button

Closed this issue · 1 comments

Markup:

  • Add a button in the bottom right or left of the message with a refresh icon

Code:

  • Pop the messages starting from the message to regenerate, and call the "run()" function with the last message as a parameter
  • add an event listener

Considerations

  • a refactoring of the run function will be required, so it can be used on any input
    async function run(input){
    //..
    }
    //..
    //changes to the event handler
    sendMessageButton.addEventListener("click", () => {
        run(...);
    });

currently being worked on, 0e7e55b