How I tested AI streaming behavior with Vercel SDK #7352
snowleo208
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello all, I couldn’t find a complete example of how to test streaming AI responses with the ai-sdk, so after trial and error with ai-sdk + msw, I wrote one. Sharing here in case it helps anyone else!
Check it here: https://blog.atrera.com/post/unit-testing-streaming-ai-vercel-sdk/
Would love to hear if anyone has better approaches for server-side stream testing too 😄
Beta Was this translation helpful? Give feedback.
All reactions