[GenAI Connectors] Bump default Gemini and Bedrock versions (#186671)

This commit is contained in:
Steph Milovic 2024-06-24 11:52:23 -06:00 committed by GitHub
parent 702442d8c4
commit c13419e166
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 32 additions and 32 deletions

View file

@ -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-preview-0409. 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-001. 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]

View file

@ -148,7 +148,7 @@ xpack.actions.preconfigured:
actionTypeId: .bedrock
config:
apiUrl: https://bedrock-runtime.us-east-1.amazonaws.com <1>
defaultModel: anthropic.claude-3-sonnet-20240229-v1:0 <2>
defaultModel: anthropic.claude-3-5-sonnet-20240620-v1:0 <2>
secrets:
accessKey: key-value <3>
secret: secret-value <4>

View file

@ -341,8 +341,8 @@ For a <<cases-webhook-action-type,{webhook-cm} connector>>, specifies a string f
The default model to use for requests, which varies by connector:
+
--
* For an <<bedrock-action-type,{bedrock} connector>>, current support is for the Anthropic Claude models. Defaults to `anthropic.claude-3-sonnet-20240229-v1:0`.
* For a <<gemini-action-type,{gemini} connector>>, current support is for the Gemini models. Defaults to `gemini-1.5-pro-preview-0409`.
* For an <<bedrock-action-type,{bedrock} connector>>, current support is for the Anthropic Claude models. Defaults to `anthropic.claude-3-5-sonnet-20240620-v1:0`.
* For a <<gemini-action-type,{gemini} connector>>, current support is for the Gemini models. Defaults to `gemini-1.5-pro-001`.
* For a <<openai-action-type,OpenAI connector>>, it is optional and applicable only when `xpack.actions.preconfigured.<connector-id>.config.apiProvider` is `OpenAI`.
--

View file

@ -2200,7 +2200,7 @@
"defaultModel": {
"type": "string",
"description": "The generative artificial intelligence model for Amazon Bedrock to use. Current support is for the Anthropic Claude models.\n",
"default": "anthropic.claude-3-sonnet-20240229-v1:0"
"default": "anthropic.claude-3-5-sonnet-20240620-v1:0"
}
}
},
@ -2240,7 +2240,7 @@
"defaultModel": {
"type": "string",
"description": "The generative artificial intelligence model for Google Gemini to use.",
"default": "gemini-1.5-pro-preview-0409"
"default": "gemini-1.5-pro-001"
},
"gcpRegion": {
"type": "string",
@ -7150,4 +7150,4 @@
}
}
}
}
}

View file

@ -1501,7 +1501,7 @@ components:
type: string
description: |
The generative artificial intelligence model for Amazon Bedrock to use. Current support is for the Anthropic Claude models.
default: anthropic.claude-3-sonnet-20240229-v1:0
default: anthropic.claude-3-5-sonnet-20240620-v1:0
secrets_properties_bedrock:
title: Connector secrets properties for an Amazon Bedrock connector
description: Defines secrets for connectors when type is `.bedrock`.
@ -1531,7 +1531,7 @@ components:
defaultModel:
type: string
description: The generative artificial intelligence model for Google Gemini to use.
default: gemini-1.5-pro-preview-0409
default: gemini-1.5-pro-001
gcpRegion:
type: string
description: The GCP region where the Vertex AI endpoint enabled.
@ -1696,14 +1696,14 @@ components:
type: boolean
host:
description: |
The host name of the service provider. If the `service` is `elastic_cloud` (for Elastic Cloud notifications) or one of Nodemailer's well-known email service providers, this property is ignored. If `service` is `other`, this property must be defined.
The host name of the service provider. If the `service` is `elastic_cloud` (for Elastic Cloud notifications) or one of Nodemailer's well-known email service providers, this property is ignored. If `service` is `other`, this property must be defined.
type: string
oauthTokenUrl:
type: string
nullable: true
port:
description: |
The port to connect to on the service provider. If the `service` is `elastic_cloud` (for Elastic Cloud notifications) or one of Nodemailer's well-known email service providers, this property is ignored. If `service` is `other`, this property must be defined.
The port to connect to on the service provider. If the `service` is `elastic_cloud` (for Elastic Cloud notifications) or one of Nodemailer's well-known email service providers, this property is ignored. If `service` is `other`, this property must be defined.
type: integer
secure:
description: |
@ -3267,7 +3267,7 @@ components:
is_preconfigured:
type: boolean
description: |
Indicates whether it is a preconfigured connector. If true, the `config` and `is_missing_secrets` properties are omitted from the response.
Indicates whether it is a preconfigured connector. If true, the `config` and `is_missing_secrets` properties are omitted from the response.
example: false
is_system_action:
type: boolean
@ -3775,7 +3775,7 @@ components:
items:
type: string
description: |
A list of "carbon copy" email addresses. Addresses can be specified in `user@host-name` format or in name `<user@host-name>` format
A list of "carbon copy" email addresses. Addresses can be specified in `user@host-name` format or in name `<user@host-name>` format
message:
type: string
description: The email message text. Markdown format is supported.

View file

@ -1188,7 +1188,7 @@
"defaultModel": {
"type": "string",
"description": "The generative artificial intelligence model for Amazon Bedrock to use. Current support is for the Anthropic Claude models.\n",
"default": "anthropic.claude-3-sonnet-20240229-v1:0"
"default": "anthropic.claude-3-5-sonnet-20240620-v1:0"
}
}
},
@ -1228,7 +1228,7 @@
"defaultModel": {
"type": "string",
"description": "The generative artificial intelligence model for Google Gemini to use.",
"default": "gemini-1.5-pro-preview-0409"
"default": "gemini-1.5-pro-001"
},
"gcpRegion": {
"type": "string",
@ -4537,4 +4537,4 @@
}
}
}
}
}

View file

@ -858,7 +858,7 @@ components:
type: string
description: |
The generative artificial intelligence model for Amazon Bedrock to use. Current support is for the Anthropic Claude models.
default: anthropic.claude-3-sonnet-20240229-v1:0
default: anthropic.claude-3-5-sonnet-20240620-v1:0
secrets_properties_bedrock:
title: Connector secrets properties for an Amazon Bedrock connector
description: Defines secrets for connectors when type is `.bedrock`.
@ -888,7 +888,7 @@ components:
defaultModel:
type: string
description: The generative artificial intelligence model for Google Gemini to use.
default: gemini-1.5-pro-preview-0409
default: gemini-1.5-pro-001
gcpRegion:
type: string
description: The GCP region where the Vertex AI endpoint enabled.
@ -1053,14 +1053,14 @@ components:
type: boolean
host:
description: |
The host name of the service provider. If the `service` is `elastic_cloud` (for Elastic Cloud notifications) or one of Nodemailer's well-known email service providers, this property is ignored. If `service` is `other`, this property must be defined.
The host name of the service provider. If the `service` is `elastic_cloud` (for Elastic Cloud notifications) or one of Nodemailer's well-known email service providers, this property is ignored. If `service` is `other`, this property must be defined.
type: string
oauthTokenUrl:
type: string
nullable: true
port:
description: |
The port to connect to on the service provider. If the `service` is `elastic_cloud` (for Elastic Cloud notifications) or one of Nodemailer's well-known email service providers, this property is ignored. If `service` is `other`, this property must be defined.
The port to connect to on the service provider. If the `service` is `elastic_cloud` (for Elastic Cloud notifications) or one of Nodemailer's well-known email service providers, this property is ignored. If `service` is `other`, this property must be defined.
type: integer
secure:
description: |
@ -2624,7 +2624,7 @@ components:
is_preconfigured:
type: boolean
description: |
Indicates whether it is a preconfigured connector. If true, the `config` and `is_missing_secrets` properties are omitted from the response.
Indicates whether it is a preconfigured connector. If true, the `config` and `is_missing_secrets` properties are omitted from the response.
example: false
is_system_action:
type: boolean

View file

@ -12,4 +12,4 @@ properties:
description: >
The generative artificial intelligence model for Amazon Bedrock to use.
Current support is for the Anthropic Claude models.
default: anthropic.claude-3-sonnet-20240229-v1:0
default: anthropic.claude-3-5-sonnet-20240620-v1:0

View file

@ -12,10 +12,10 @@ properties:
defaultModel:
type: string
description: The generative artificial intelligence model for Google Gemini to use.
default: gemini-1.5-pro-preview-0409
default: gemini-1.5-pro-001
gcpRegion:
type: string
description: The GCP region where the Vertex AI endpoint enabled.
gcpProjectID:
type: string
description: The Google ProjectID that has Vertex AI endpoint enabled.
description: The Google ProjectID that has Vertex AI endpoint enabled.

View file

@ -628,7 +628,7 @@ Object {
},
"defaultModel": Object {
"flags": Object {
"default": "anthropic.claude-3-sonnet-20240229-v1:0",
"default": "anthropic.claude-3-5-sonnet-20240620-v1:0",
"error": [Function],
"presence": "optional",
},
@ -3822,7 +3822,7 @@ Object {
},
"defaultModel": Object {
"flags": Object {
"default": "gemini-1.5-pro-preview-0409",
"default": "gemini-1.5-pro-001",
"error": [Function],
"presence": "optional",
},

View file

@ -24,6 +24,6 @@ export enum SUB_ACTION {
export const DEFAULT_TIMEOUT_MS = 120000;
export const DEFAULT_TOKEN_LIMIT = 8191;
export const DEFAULT_BEDROCK_MODEL = 'anthropic.claude-3-sonnet-20240229-v1:0';
export const DEFAULT_BEDROCK_MODEL = 'anthropic.claude-3-5-sonnet-20240620-v1:0';
export const DEFAULT_BEDROCK_URL = `https://bedrock-runtime.us-east-1.amazonaws.com` as const;

View file

@ -25,5 +25,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-preview-0409';
export const DEFAULT_GEMINI_MODEL = 'gemini-1.5-pro-001';
export const DEFAULT_GEMINI_URL = `https://us-central1-aiplatform.googleapis.com` as const;

View file

@ -94,7 +94,7 @@ describe('BedrockConnector', () => {
'Content-Type': 'application/json',
},
host: 'bedrock-runtime.us-east-1.amazonaws.com',
path: '/model/anthropic.claude-3-sonnet-20240229-v1:0/invoke',
path: '/model/anthropic.claude-3-5-sonnet-20240620-v1:0/invoke',
service: 'bedrock',
},
{ accessKeyId: '123', secretAccessKey: 'secret' }
@ -181,7 +181,7 @@ describe('BedrockConnector', () => {
'x-amzn-bedrock-accept': '*/*',
},
host: 'bedrock-runtime.us-east-1.amazonaws.com',
path: '/model/anthropic.claude-3-sonnet-20240229-v1:0/invoke-with-response-stream',
path: '/model/anthropic.claude-3-5-sonnet-20240620-v1:0/invoke-with-response-stream',
service: 'bedrock',
},
{ accessKeyId: '123', secretAccessKey: 'secret' }

View file

@ -30,7 +30,7 @@ export class BedrockSimulator extends Simulator {
}
if (
request.url === '/model/anthropic.claude-3-sonnet-20240229-v1:0/invoke-with-response-stream'
request.url === '/model/anthropic.claude-3-5-sonnet-20240620-v1:0/invoke-with-response-stream'
) {
return BedrockSimulator.sendStreamResponse(response);
}

View file

@ -31,7 +31,7 @@ const secrets = {
};
const defaultConfig = {
defaultModel: 'anthropic.claude-3-sonnet-20240229-v1:0',
defaultModel: 'anthropic.claude-3-5-sonnet-20240620-v1:0',
};
// eslint-disable-next-line import/no-default-export