Open nicoalbanese opened 1 week ago
hi there @lgrammel. I'm interested in contributing to this issue, is it open to external contributors? if so I'd be happy to take a crack at it. could you provide any specific guidelines or context I should be aware of before starting. thanks 😄
@glamboyosa this issue is fairly complex, requires knowledge on how streamText is implemented as well as potential data transfer protocol changes, and is time critical. I'm planning to work on it myself.
fair enough @lgrammel.
Feature Description
When using the new array streaming (
output: "array"
) feature with streamObject, users can't use the same schema between theuseObject
andstreamObject
functions. Currently, users have to wrap their schema in az.array()
. Suggestion to add equivalentoutput
config option to useObject so that schemas can be shared.Use Case
Streaming structured objects with the new array output option
Additional context
No response