oobabooga / text-generation-webui

A Gradio web UI for Large Language Models.
GNU Affero General Public License v3.0
40.24k stars 5.28k forks source link

Copying chat reverses order of text #914

Closed SoftologyPro closed 1 year ago

SoftologyPro commented 1 year ago

Describe the bug

Copying the chat and pasting to a new document reverses the chat order. For example, see the screenshot. When I Ctrl-A then Ctrl-C to copy, when I paste it pastes like this...

Assistant

Open-Assistant is one of the most popular open source projects in this field, but it's not as advanced as some commercial alternatives.
You

What is the best AI chat bot?
Assistant

How can I help?
You

Hello
Assistant

Hello there!

It should copy (and paste) like...

Assistant

Hello there!

You

Hello

Assistant

How can I help?

You

What is the best AI chat bot?

Assistant

Open-Assistant is one of the most popular open source projects in this field, but it's not as advanced as some commercial alternatives.

or even

Assistant - Hello there!
You - Hello
Assistant - How can I help?
You - What is the best AI chat bot?
Assistant - Open-Assistant is one of the most popular open source projects in this field, but it's not as advanced as some commercial alternatives.

That would help when sharing large chats without needing multiple screenshots. Can this be fixed?

Is there an existing issue for this?

Reproduction

Start chat mode. Have a few replies (as in screenshot). Select all, copy, paste into a new document.

Screenshot

Screenshot

Logs

No logs needed.

System Info

Not due to a GPU.  Latest one click installer code.
catalpaaa commented 1 year ago

It looks like some gradio front end magic shit.

I always want to see the raw output of the chat, maybe implement that could make cp easier

mcmonkey4eva commented 1 year ago

I believe that UI is powered by custom HTML generation ooba wrote, rather than a direct gradio component, so it can likely be fixed by tweaking the code for it.

As a temporary workaround, --verbose lets you copypaste chat logs from the terminal.