You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The useChat hook has an onFinish callback which fires when everything is completed. With the new experimental feature to stream additional data, the onFinish callback fires not after the tokens are completed but after any data is also done loading.
We need to be able to tell when the messages are completed so that we can show a loading state for the additional data that is being calculated based off of the message received. It would be nice to have an onCompleted callback added to the useChat hook on the client side. It may also look like a isMessageLoading added to the isLoading boolean to indicate the difference.
The text was updated successfully, but these errors were encountered:
The
useChat
hook has anonFinish
callback which fires when everything is completed. With the new experimental feature to stream additional data, the onFinish callback fires not after the tokens are completed but after any data is also done loading.We need to be able to tell when the messages are completed so that we can show a loading state for the additional data that is being calculated based off of the message received. It would be nice to have an
onCompleted
callback added to theuseChat
hook on the client side. It may also look like aisMessageLoading
added to theisLoading
boolean to indicate the difference.The text was updated successfully, but these errors were encountered: