Can custom SSE API also use Generative UI from ai package? #10357

Like the title, would custom backend SSE api also use the generative ui functionality? In these documents, I only find examples are using Open AI model, but wonder now custom SSE api can be also used it. Or if custom backend follows exact protocal what Open AI gives, then would it be possible make the generative UI like the example code of the document did?

https://vercel.com/blog/ai-sdk-3-generative-ui
https://ai-sdk.dev/docs/ai-sdk-ui/generative-user-interfaces