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
Check out this sample project, and click on the RAG example: https://github.com/BoundaryML/baml-examples/tree/main/nextjs-starter . Locally it works completely fine, but after deploying to vercel, clicking on the "answer question" button to start streaming will crash with a client-side error after 2 secs of streaming, saying that it can't construct a URL.
All you need is an OPENAI_API_KEY to test.
Code example
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
I found the issue -- when rendering a Link with a partial string response (while it's streaming), the url is invalid. I now only render links when the stream is complete.
Although super weird i only saw this in production.
Description
Check out this sample project, and click on the RAG example: https://github.com/BoundaryML/baml-examples/tree/main/nextjs-starter . Locally it works completely fine, but after deploying to vercel, clicking on the "answer question" button to start streaming will crash with a client-side error after 2 secs of streaming, saying that it can't construct a URL.
All you need is an OPENAI_API_KEY to test.
Code example
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: