-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
How to send toast notifications? #1639
Comments
I don't think this was possible in Chainlit 1.x either. It would be a feature request! |
Yes, I just came up with this idea and try. User should know chat settings change was accept, and I don't want to send a message and save it into steps, because setting information has already saved in thread metadata. |
It will be helpful also to share failures with the user. On my side, I have cases where azure would filter out the message that contains hate/violence speech. If I could warn the user when this happen through a toast, it would even better |
Even a simple success text displayed in the settings form would also work. |
under chainlit 2.0, when I changed chat settings, I want to popup a toast to let user know the settings changes accept successfully.
await context.emitter.emit("ui:toast", { "title": "Settings updated", "description": "Settings updated successfully.", "type": "success" # success, error, info, warning })
but it won't work.
thanks for anyone who response.
The text was updated successfully, but these errors were encountered: