ai icon indicating copy to clipboard operation
ai copied to clipboard

Demo streamUI with a custom provider

Open Godrules500 opened this issue 9 months ago • 1 comments

Feature Description

I would like there to be an example of using ai/rsc streamUI with vertex ai.

Use Case

The situation arises if I am not allowed to use google ai, but instead must use VertexAI,

Additional context

No response

Godrules500 avatar May 09 '24 14:05 Godrules500

There is currently no vertex provider. You could implement a Google Vertex provider using the custom provider approach: https://sdk.vercel.ai/providers/community-providers/custom-providers

lgrammel avatar May 10 '24 11:05 lgrammel

Any plans implementing that?

coolxeo avatar May 21 '24 21:05 coolxeo

Vertex AI PR: https://github.com/vercel/ai/pull/1592

lgrammel avatar May 23 '24 09:05 lgrammel

https://sdk.vercel.ai/providers/ai-sdk-providers/google-vertex

lgrammel avatar May 23 '24 14:05 lgrammel

thanks @lgrammel this is great!

coolxeo avatar May 23 '24 14:05 coolxeo