Need streaming callbacks in chat for persistence #207
Closed
nauvalazhar
started this conversation in
General
Replies: 1 comment
|
We have added persistence as a 1st class API! |
0 replies
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.
All reactions