vercel / modelfusion

The TypeScript library for building AI applications.
https://modelfusion.dev
MIT License
1.01k stars 76 forks source link

Streaming example doesn't forward provider request errors to the browser #330

Open jay-jlm opened 2 months ago

jay-jlm commented 2 months ago

In the voice synthesis streaming example, if the ElevenLabs request fails, the browser only gets text-chunk events and is not informed of any errors regarding the speech generation. Ideally the promise results would be forwarded to the client so that the it can use that information to provide better UX.