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
In the onFinish of streamUI it returns certain values that need to modify how the UI is updated. For instance, if there is a content-filter issue, I need to display to the user of the issue.
If I don't finish the stream in the text callback, and I try and close it in the onFinish, I get UI stream is already closed.
Shouldn't it be that I finish the stream in onFinish?
Also, onFinish is being called before text: isDone= true
Code example
Here are 2 ways that are causing the issue. I continue to get throw new Error(method + ': UI stream is already closed.'); even if I remove all .done
Description
In the onFinish of streamUI it returns certain values that need to modify how the UI is updated. For instance, if there is a content-filter issue, I need to display to the user of the issue.
If I don't finish the stream in the text callback, and I try and close it in the onFinish, I get UI stream is already closed.
Shouldn't it be that I finish the stream in onFinish?
Also, onFinish is being called before text: isDone= true
Code example
Here are 2 ways that are causing the issue. I continue to get throw new Error(method + ': UI stream is already closed.'); even if I remove all .done
Additional context
No response
The text was updated successfully, but these errors were encountered: