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

[Help wanted] How to add a button to clear messages in vue2 #283

Open
yeungxh opened this issue Oct 17, 2024 · 1 comment
Open

[Help wanted] How to add a button to clear messages in vue2 #283

yeungxh opened this issue Oct 17, 2024 · 1 comment
Assignees
Labels
advice Information how to use/implement the component

Comments

@yeungxh
Copy link

yeungxh commented Oct 17, 2024

I'm building a RAG application which using deep chat as the interface.
How to add a button to clear the conversation?

@OvidijusParsiunas
Copy link
Owner

Hey @yeungxh.

  • If you want a button outside of the chat - you can simply add it anywhere in your view and trigger the clearMessages method on a reference of Deep Chat component via the v-on:click event. I am not an expert on vue2 so I can't give you a raw example, but what I have described is definitely possible in vue2.
  • If you want to add a button for this inside the Deep Chat component itself you will unfortunately have to fork/clone the project and add this in yourself. Setting up the project is actually not that difficult and we have listed the instructions to do this here.

Hopefully this helps you, thanks!

@OvidijusParsiunas OvidijusParsiunas self-assigned this Oct 18, 2024
@OvidijusParsiunas OvidijusParsiunas added the advice Information how to use/implement the component label Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
advice Information how to use/implement the component
Projects
None yet
Development

No branches or pull requests

2 participants