cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Machine Learning
Dive into the world of machine learning on the Databricks platform. Explore discussions on algorithms, model training, deployment, and more. Connect with ML enthusiasts and experts.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Gemini though Mosaic Gateway

roman_belkin
New Contributor II

I am trying to configure the Gemini Vertex API in Databricks. In simple Python code, everything works fine, which indicates that I have correctly set up the API and credentials. 

Error message: 
{"error_code":"INVALID_PARAMETER_VALUE","message":"INVALID_PARAMETER_VALUE: Failed to generate access token for Google VertexAI. Please check the private key for the external model gemini-pro."}

I tried using different model names, but I didn't have any luck.

3 REPLIES 3

AnthSaou_48676
New Contributor II

have you solved this problem? i am still running into the same issue

roman_belkin
New Contributor II

No, it seems they gave up 

sam-p
New Contributor II

With support from a helpful Databricks employee, we found out that the problem was that the `private_key` / `private_key_plaintext` field needs to be the entire JSON object that GCP creates for the service account not just the private key string from it as the documentation lead us to believe