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 useCompletion hook currently provides access to provider metadata by streaming it through the data field and onMessageAnnotation callback, but doesn't allow the data to be modified on the front-end. This feature would allow the data to be cleared if the user makes another completion request.
Feature Description
The
useCompletion
hook currently provides access to provider metadata by streaming it through thedata
field andonMessageAnnotation
callback, but doesn't allow the data to be modified on the front-end. This feature would allow the data to be cleared if the user makes another completion request.An example implementation:
Use Cases
Use Case
Clean State Between Completions
Error Recovery
Additional context
Current Workaround is setting citations in a separate state variable
The text was updated successfully, but these errors were encountered: