We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
onError
useAssistant
The useAssistant hook exposes error state and an onError hook that is called whenever an error happens.
error
However, when an error happens during streaming, only error gets set; onError is not called.
We are using onError hook to set custom error state, which is cleared on reload. Thus, it would be good to have:
clearError
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
The
useAssistant
hook exposeserror
state and anonError
hook that is called whenever an error happens.However, when an error happens during streaming, only
error
gets set;onError
is not called.We are using
onError
hook to set custom error state, which is cleared on reload. Thus, it would be good to have:onError
being called on stream errorsclearError
returned as a hook value that makes the reload process easier.Code example
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: