How to streamText (combined with useChat) with structured output? #4207
Answered
by
lgrammel
mrasoahaingo
asked this question in
Help
-
My use case is to be able to have a conversational chat bot who can also suggest some response for the user. |
Beta Was this translation helpful? Give feedback.
Answered by
lgrammel
Jan 3, 2025
Replies: 1 comment
-
streamText supports generating structured output with AI SDK 4.0.24 or newer: https://sdk.vercel.ai/docs/ai-sdk-core/generating-structured-data#structured-outputs-with-generatetext-and-streamtext |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
lgrammel
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
streamText supports generating structured output with AI SDK 4.0.24 or newer: https://sdk.vercel.ai/docs/ai-sdk-core/generating-structured-data#structured-outputs-with-generatetext-and-streamtext