Skip to content

[ML][AI Connector] Unable to create Google Gemini connector using Google vertex AI #220145

@saarikabhasi

Description

@saarikabhasi

Describe the bug:

Unable to create google gemini connector in AI connector flyout, Google vertex AI option.

Steps to reproduce:

  1. Select AI connector
  2. Choose Google vertex AI as service provider
  3. Fill in all required details for create new google gemini connector
  4. Click Save
  5. View An internal server error occurred. Check Kibana server logs for details
  6. Change to rerank task type and notice same error

Expected behavior:
Should be able to create google gemini connector with AI connector

Screenshots (if relevant):

google.gemini.connector.error.mov

Errors in browser console (if relevant):

{
    "statusCode": 500,
    "error": "Internal Server Error",
    "message": "An internal server error occurred. Check Kibana server logs for details."
}

Provide logs and/or server output (if relevant):

Logs from kibana server

Rerank task type

[2025-05-05T15:25:37.947-04:00][WARN ][plugins.actions] Failed to create inference endpoint for task type "rerank" and inference id googlevertexai-rerank-hmbrxgc1r4c. Error: status_exception
        Root causes:
                status_exception: Model configuration contains settings [{location=us-central1}] unknown to the [googlevertexai] service
[2025-05-05T15:25:37.947-04:00][ERROR][http] 500 Server Error


Text embedding

[2025-05-05T15:28:07.327-04:00][WARN ][plugins.actions] Failed to create inference endpoint for task type "text_embedding" and inference id googlevertexai-text_embedding-c8frxwa1wir. Error: status_exception
        Caused by:
                status_exception: Received an unsuccessful status code for request from inference entity id [googlevertexai-text_embedding-c8frxwa1wir] status [400]. Error message: [Gemini cannot be accessed through Vertex Predict/RawPredict API. Please follow https://cloud.google.com/vertex-ai/docs/generative-ai/start/quickstarts/quickstart-multimodal for Gemini usage.]
        Root causes:
                status_exception: Received an unsuccessful status code for request from inference entity id [googlevertexai-text_embedding-c8frxwa1wir] status [400]. Error message: [Gemini cannot be accessed through Vertex Predict/RawPredict API. Please follow https://cloud.google.com/vertex-ai/docs/generative-ai/start/quickstarts/quickstart-multimodal for Gemini usage.]

Environment

Kibana 9.1.0
Cloud deployment 9.0.0, 8.18

Metadata

Metadata

Labels

:mlFeature:Inference UIML Inference endpoints UI and AI connectorbugFixes for quality problems that affect the customer experiencev9.1.0

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions