Open Godrules500 opened 3 months ago
Wanted to ask again if there is an example for using VertexAI as a custom provider?
Wanted to ask again if there is an example for using VertexAI as a custom provider? https://github.com/vercel-labs/gemini-chatbot
Unfortunately that looks to still be using @google/generative-ai instead of @google-cloud/vertexai.
Unfortunately that looks to still be using @google/generative-ai instead of @google-cloud/vertexai.
I was able to repurpose it to use openAI with only a few lines of code, so it shouldn't be that bad converting it. Unless I'm missing something.
The part I'm struggling with is it doesn't make the normal API call like it does with google or open ai. The vertex sdk handles that behind the scenes so there seems to be a good bit I have to change.
I was given some news after merging the ai/rsc changes y'all made (which are awesome) that I have to use google vertex ai. Since I can't use render, how much of a pain is it to convert submitChanges to working with the google provider? Or do I need to convert it all the way back to useChat and etc?