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

clearMessages() cannot delete messages added by signals.onResponse #269

Open
fanxing-6 opened this issue Sep 18, 2024 · 1 comment
Open
Assignees
Labels
bug Something isn't working

Comments

@fanxing-6
Copy link

chatElementRef.addMessage({ html: htmlContent, role: 'assistant'})
chatElementRef.addMessage({ html: htmlContent, role: 'assistant'})
chatElementRef.addMessage({ html: htmlContent, role: 'assistant'})
signals.onResponse({ text: finalAnswer, role:'assistant' });
To achieve returning multiple messages, I used the above method, but when executing clearMessages(), it cannot clear the message added by signals.onResponse.
Is there a better method?

@OvidijusParsiunas
Copy link
Owner

Hey @fanxing-6.
I have attempted to reproduce this error, but clearMessages seems to work correctly for me.

I recommend you to try our latest deep-chat-dev and deep-chat-react-dev packages version 9.0.192 to see if they can resolve your issue.

If you are still experiencing your problem, can you please give me more example code so I can try to reproduce it. Or even a live CodeSandbox example.

Thankyou!

@OvidijusParsiunas OvidijusParsiunas self-assigned this Sep 28, 2024
@OvidijusParsiunas OvidijusParsiunas added the bug Something isn't working label Sep 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants