-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Make the accordion open by default if its the last message in the chatbot history #9081
Comments
Hi @davidberenstein1957 sorry I didn't understand, can you elaborate what the issue is? In your screenshot, it looks like the accordion is expanded, no? |
Hi @aliabid94, It is collapsed by default and according to the docs it should not be an accordion at all. I think having the accordion collapsed by default makes it a bit useless for chat interactionsbut I guess it inherits the behavior from the agent tool information accordion? Would it be possible to add an additional flag to the Metadata to control this? "expanded=True" or something? |
ah the image linked in the docs is outdated, will fix. We designed the accordion for tool responses which is why they are closed by default. If you want to add a general title for your message, I think you can use include it as a markdown header in your response. |
Okay, I wanted to avoid altering my original content that is why the Metadata looked nice. Would it be possible achieve an opened accordion by default? On 13 Aug 2024, at 22:09, Freddy Boulton ***@***.***> wrote:
ah the image linked in the docs is outdated, will fix. We designed the accordion for tool responses which is why they are closed by default. If you want to add a general title for your message, I think you can use include it as a markdown header in your response.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Slight tangent: but one thing that I think we should do is make the accordion open by default if its the last message in the chatbot history. That creates a nice effect that while a message is streaming, you can see the tool use, but once its finished, it doesn't take up unnecessary space. Not sure whether that would be sufficient for you @davidberenstein1957? |
Hi,I agree that that makes sense but sadly it would not halo with my usecase. I can work around it for now if there is not other way.Thank you for the help. On 13 Aug 2024, at 23:08, Abubakar Abid ***@***.***> wrote:
Slight tangent: but one thing that I think we should do is make the accordion open by default if its the last message in the chatbot history. That creates a nice effect that while a message is streaming, you can see the tool use, but once its finished, it doesn't take up unnecessary space. Not sure whether that would be sufficient for you @davidberenstein1957?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Chatbot
with ChatMessage
with metadata.title
is shown as collapsed accordion
Closed via #9359 |
Describe the bug
The docs show different bahavior https://www.gradio.app/docs/gradio/chatbot#behavior
Have you searched existing issues? 🔎
Reproduction
https://github.com/davidberenstein1957/data-viber/blob/main/README.md
Screenshot
Logs
No response
System Info
Severity
I can work around it
The text was updated successfully, but these errors were encountered: