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
lgrammel
changed the title
Add stop to open-ai input options so that we can finish gracefully
Add stopSequences parameter to AI SDK functions
May 27, 2024
Feature Description
Add support for stop-sequence to gracefully exit stream, so that we can get usage information.
Use Case
Currently, if I wanna exit the stream I have to use
abort-controller
or break to get out offor await of loop
.This would not gracefully finish and we need a finish so that we can get usage information.
Additional context
No response
The text was updated successfully, but these errors were encountered: