Need streaming callbacks in chat for persistence #207
nauvalazhar
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We already have callbacks like
onFinishandonChunkin theuseChathook, but it would be great to have the same callbacks available in thechatfunction as well.Currently, I’m using
StreamProcessorto capture the final message so I can persist it to the database:The problem is that
onStreamEndis not called when the chat is aborted by the client usingstop()and I'm not be able to capture the final message.Thank you.
Beta Was this translation helpful? Give feedback.
All reactions