diff --git a/docs/management/connectors/action-types/gemini.asciidoc b/docs/management/connectors/action-types/gemini.asciidoc index 2371015975d92..b1d892ff87cc3 100644 --- a/docs/management/connectors/action-types/gemini.asciidoc +++ b/docs/management/connectors/action-types/gemini.asciidoc @@ -31,7 +31,7 @@ Name:: The name of the connector. API URL:: The {gemini} request URL. Project ID:: The project which has Vertex AI endpoint enabled. Region:: The GCP region where the Vertex AI endpoint enabled. -Default model:: The GAI model for {gemini} to use. Current support is for the Google Gemini models, defaulting to gemini-1.5-pro-001. The model can be set on a per request basis by including a "model" parameter alongside the request body. +Default model:: The GAI model for {gemini} to use. Current support is for the Google Gemini models, defaulting to gemini-1.5-pro-002. The model can be set on a per request basis by including a "model" parameter alongside the request body. Credentials JSON:: The GCP service account JSON file for authentication. [float] diff --git a/docs/settings/alert-action-settings.asciidoc b/docs/settings/alert-action-settings.asciidoc index 464af8ed8d05c..23cb7ed59e21d 100644 --- a/docs/settings/alert-action-settings.asciidoc +++ b/docs/settings/alert-action-settings.asciidoc @@ -347,7 +347,7 @@ The default model to use for requests, which varies by connector: + -- * For an <>, current support is for the Anthropic Claude models. Defaults to `anthropic.claude-3-5-sonnet-20240620-v1:0`. -* For a <>, current support is for the Gemini models. Defaults to `gemini-1.5-pro-001`. +* For a <>, current support is for the Gemini models. Defaults to `gemini-1.5-pro-002`. * For a <>, it is optional and applicable only when `xpack.actions.preconfigured..config.apiProvider` is `OpenAI`. -- diff --git a/x-pack/plugins/actions/docs/openapi/components/schemas/gemini_config.yaml b/x-pack/plugins/actions/docs/openapi/components/schemas/gemini_config.yaml index ed5996dc1c423..fc3b583f2bfe4 100644 --- a/x-pack/plugins/actions/docs/openapi/components/schemas/gemini_config.yaml +++ b/x-pack/plugins/actions/docs/openapi/components/schemas/gemini_config.yaml @@ -12,7 +12,7 @@ properties: defaultModel: type: string description: The generative artificial intelligence model for Google Gemini to use. - default: gemini-1.5-pro-001 + default: gemini-1.5-pro-002 gcpRegion: type: string description: The GCP region where the Vertex AI endpoint enabled. diff --git a/x-pack/plugins/actions/server/integration_tests/__snapshots__/connector_types.test.ts.snap b/x-pack/plugins/actions/server/integration_tests/__snapshots__/connector_types.test.ts.snap index 7fab352b7fc7f..94bc911557c21 100644 --- a/x-pack/plugins/actions/server/integration_tests/__snapshots__/connector_types.test.ts.snap +++ b/x-pack/plugins/actions/server/integration_tests/__snapshots__/connector_types.test.ts.snap @@ -5297,7 +5297,7 @@ Object { }, "defaultModel": Object { "flags": Object { - "default": "gemini-1.5-pro-001", + "default": "gemini-1.5-pro-002", "error": [Function], "presence": "optional", }, diff --git a/x-pack/plugins/stack_connectors/common/gemini/constants.ts b/x-pack/plugins/stack_connectors/common/gemini/constants.ts index 16bdfb2d91766..e8d1d1702db2b 100644 --- a/x-pack/plugins/stack_connectors/common/gemini/constants.ts +++ b/x-pack/plugins/stack_connectors/common/gemini/constants.ts @@ -26,5 +26,5 @@ export enum SUB_ACTION { export const DEFAULT_TOKEN_LIMIT = 8192; export const DEFAULT_TIMEOUT_MS = 60000; export const DEFAULT_GCP_REGION = 'us-central1'; -export const DEFAULT_GEMINI_MODEL = 'gemini-1.5-pro-001'; +export const DEFAULT_GEMINI_MODEL = 'gemini-1.5-pro-002'; export const DEFAULT_GEMINI_URL = `https://us-central1-aiplatform.googleapis.com` as const;