Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Edit and re-submit in chat mode #233

Open
PkmX opened this issue May 3, 2024 · 4 comments
Open

Edit and re-submit in chat mode #233

PkmX opened this issue May 3, 2024 · 4 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@PkmX
Copy link

PkmX commented May 3, 2024

Is your feature request related to a problem? Please describe.
In chat mode, it is not unusual that you have to refine or re-phrase the message you sent because the AI doesn't quite understand the prompt. Right now this requires the user to clarify in a follow-up question (which eats your context limit and potentially confuses less-capable LLMs) or start a new conversation entirely (need to retype or copy/paste the entire history leading up to the message you want to edit).

Describe the solution you'd like
Add an edit button to each message that allows you to edit and re-submit. This feature is already present in many other chat UIs.

@ChrisDeadman
Copy link

ChrisDeadman commented May 3, 2024

Gradio provides a ChatInferface that looks like this:
image

And I have to say, after getting used to the Undo(remove response from model, remove user message, put removed user message back into input textbox to allow editing) and Retry (regenerate response from model) I found it to be much more useful and intuitive than the way ChatGPT lets you edit a previous message.

Maybe two simple Undo and Retry buttons are enough?

@PkmX
Copy link
Author

PkmX commented May 4, 2024

Either way seems fine for me. The clear button would be useful as well since sometimes I just want to ask a quick question without cluttering the conversation history.

@rjmacarthy rjmacarthy added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels May 5, 2024
@rjmacarthy
Copy link
Owner

Thanks for the great suggestion, so are we referring to only the last submitted message for editing or individual messages inside the conversation history?

Many thanks.

@ChrisDeadman
Copy link

For me any of the solutions would be fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants