Hi, I am currently facing a big problem in multiple apps where I use Genkit with VertexAI using models like gemini 1.5 pro.
Error: Vertex response generation failed: ClientError: [VertexAI.ClientError]: got status: 400 Bad Request. {"error":{"code":400,"message":"Project `{{PROJECT_NUMBER}}` is not allowed to use Publisher Model `projects/{{PROJECT_ID}}/locations/us-central1/publishers/google/models/gemini-1.5-pro`","status":"FAILED_PRECONDITION"}}
Does somebody face the same problem? It just stopped working in all of my apps and environments a few minutes ago and is affecting me very bad. Thanks for your help.
1 Like
Is seems that when you put “gemini-1.5-pro”, it defaults to the deprecated version instead of the latest one.
According to the documentation, you need to append the version number to get the stable model, which in my opinion isn’t very logical:
To use the stable version of a Gemini model, append the three-digit version number to the model with a hyphen (-
). For example, to specify version one of the stable gemini-1.5-pro
model, append -001
to the model’s name:
https://us-central1-aiplatform.googleapis.com/v1/projects/my_project/locations/us-central1/publishers/google/models/gemini-1.5-pro-001
1 Like
Unfortunately the Genkit version I am using does not support other models. But the issue has been fixed now and I can use the gemini-1.5-pro
model again.
1 Like