Skip to content

Commit 00488dc

Browse files
[9.2] [GenAI Connectors] Update Default Model IDs for Bedrock Connector (#235367) (#239242)
# Backport This will backport the following commits from `main` to `9.2`: - [[GenAI Connectors] Update Default Model IDs for Bedrock Connector (#235367)](#235367) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Patryk Kopyciński","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-10-15T21:42:25Z","message":"[GenAI Connectors] Update Default Model IDs for Bedrock Connector (#235367)\n\n## Summary\n\nUpdates default models for Bedrock connector\n\nBedrock\n`us.anthropic.claude-3-7-sonnet-20250219-v1:0` =>\n`us.anthropic.claude-sonnet-4-5-20250514-v1:0`","sha":"d52dc8dc2d01da655299ac54db8b5a004442a425","branchLabelMapping":{"^v9.3.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:version","ci:all-gen-ai-suites","ci:security-genai-run-evals","v9.2.0","v9.3.0"],"title":"[GenAI Connectors] Update Default Model IDs for Bedrock Connector","number":235367,"url":"https://github.com/elastic/kibana/pull/235367","mergeCommit":{"message":"[GenAI Connectors] Update Default Model IDs for Bedrock Connector (#235367)\n\n## Summary\n\nUpdates default models for Bedrock connector\n\nBedrock\n`us.anthropic.claude-3-7-sonnet-20250219-v1:0` =>\n`us.anthropic.claude-sonnet-4-5-20250514-v1:0`","sha":"d52dc8dc2d01da655299ac54db8b5a004442a425"}},"sourceBranch":"main","suggestedTargetBranches":["9.2"],"targetPullRequestStates":[{"branch":"9.2","label":"v9.2.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.3.0","branchLabelMappingKey":"^v9.3.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/235367","number":235367,"mergeCommit":{"message":"[GenAI Connectors] Update Default Model IDs for Bedrock Connector (#235367)\n\n## Summary\n\nUpdates default models for Bedrock connector\n\nBedrock\n`us.anthropic.claude-3-7-sonnet-20250219-v1:0` =>\n`us.anthropic.claude-sonnet-4-5-20250514-v1:0`","sha":"d52dc8dc2d01da655299ac54db8b5a004442a425"}}]}] BACKPORT--> Co-authored-by: Patryk Kopyciński <[email protected]>
1 parent b61e3a2 commit 00488dc

File tree

13 files changed

+22
-19
lines changed

13 files changed

+22
-19
lines changed

docs/reference/configuration-reference/alerting-settings.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,8 @@ For more examples, go to [Preconfigured connectors](/reference/connectors-kibana
507507
: The default model to use for requests, which varies by connector:
508508

509509
* For an [{{bedrock}} connector](/reference/connectors-kibana/bedrock-action-type.md), current support is for the Anthropic Claude models.
510-
* {applies_to}`serverless: ga` Defaults to `us.anthropic.claude-3-7-sonnet-20250219-v1:0`.
510+
* {applies_to}`serverless: ga` Defaults to `us.anthropic.claude-sonnet-4-5-20250929-v1:0`.
511+
* {applies_to}`stack: ga 9.2` Defaults to `us.anthropic.claude-sonnet-4-5-20250929-v1:0`.
511512
* {applies_to}`stack: ga 9.1` Defaults to `us.anthropic.claude-3-7-sonnet-20250219-v1:0`.
512513
* {applies_to}`stack: ga 9.0` Defaults to `anthropic.claude-3-5-sonnet-20240620-v1:0`.
513514
* For a [{{gemini}} connector](/reference/connectors-kibana/gemini-action-type.md), current support is for the Gemini models.

docs/reference/connectors-kibana/pre-configured-connectors.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ xpack.actions.preconfigured:
140140
actionTypeId: .bedrock
141141
config:
142142
apiUrl: https://bedrock-runtime.us-east-1.amazonaws.com <1>
143-
defaultModel: anthropic.claude-3-5-sonnet-20240620-v1:0 <2>
143+
defaultModel: us.anthropic.claude-sonnet-4-5-20250929-v1:0 <2>
144144
secrets:
145145
accessKey: key-value <3>
146146
secret: secret-value <4>

docs/settings-gen/source/kibana-alert-action-settings.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1166,7 +1166,8 @@ groups:
11661166
The default model to use for requests, which varies by connector:
11671167
11681168
* For an [{{bedrock}} connector](/reference/connectors-kibana/bedrock-action-type.md), current support is for the Anthropic Claude models.
1169-
* {applies_to}`serverless: ga` Defaults to `us.anthropic.claude-3-7-sonnet-20250219-v1:0`.
1169+
* {applies_to}`serverless: ga` Defaults to `us.anthropic.claude-sonnet-4-5-20250929-v1:0`.
1170+
* {applies_to}`stack: ga 9.2` Defaults to `us.anthropic.claude-sonnet-4-5-20250929-v1:0`.
11701171
* {applies_to}`stack: ga 9.1` Defaults to `us.anthropic.claude-3-7-sonnet-20250219-v1:0`.
11711172
* {applies_to}`stack: ga 9.0` Defaults to `anthropic.claude-3-5-sonnet-20240620-v1:0`.
11721173
* For a [{{gemini}} connector](/reference/connectors-kibana/gemini-action-type.md), current support is for the Gemini models.

oas_docs/output/kibana.serverless.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82731,7 +82731,7 @@ components:
8273182731
type: string
8273282732
description: |
8273382733
The generative artificial intelligence model for Amazon Bedrock to use. Current support is for the Anthropic Claude models.
82734-
default: us.anthropic.claude-3-7-sonnet-20250219-v1:0
82734+
default: us.anthropic.claude-sonnet-4-5-20250929-v1:0
8273582735
crowdstrike_config:
8273682736
title: Connector request config properties for a Crowdstrike connector
8273782737
required:

oas_docs/output/kibana.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96468,7 +96468,7 @@ components:
9646896468
type: string
9646996469
description: |
9647096470
The generative artificial intelligence model for Amazon Bedrock to use. Current support is for the Anthropic Claude models.
96471-
default: us.anthropic.claude-3-7-sonnet-20250219-v1:0
96471+
default: us.anthropic.claude-sonnet-4-5-20250929-v1:0
9647296472
crowdstrike_config:
9647396473
title: Connector request config properties for a Crowdstrike connector
9647496474
required:

x-pack/platform/packages/shared/ai-infra/inference-common/src/connectors/connector_config.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import { type InferenceConnector, InferenceConnectorType } from './connectors';
99

10-
import { getConnectorDefaultModel } from './connector_config';
10+
import { DEFAULT_OPENAI_MODEL, getConnectorDefaultModel } from './connector_config';
1111

1212
const createConnector = (parts: Partial<InferenceConnector>): InferenceConnector => {
1313
return {
@@ -46,7 +46,7 @@ describe('getConnectorDefaultModel', () => {
4646
apiProvider: 'OpenAI',
4747
},
4848
});
49-
expect(getConnectorDefaultModel(connector)).toBe('gpt-4.1');
49+
expect(getConnectorDefaultModel(connector)).toBe(DEFAULT_OPENAI_MODEL);
5050
});
5151
});
5252

x-pack/platform/packages/shared/ai-infra/inference-common/src/connectors/connector_config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import { ModelFamily, ModelPlatform, ModelProvider } from '../model_provider';
99
import { type InferenceConnector, InferenceConnectorType } from './connectors';
1010

11-
const DEFAULT_OPENAI_MODEL = 'gpt-4.1';
11+
export const DEFAULT_OPENAI_MODEL = 'gpt-4.1';
1212

1313
/**
1414
* Returns the default model as defined in the connector's config, if available.

x-pack/platform/packages/shared/kbn-langchain/server/language_models/chat_openai.test.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import { actionsClientMock } from '@kbn/actions-plugin/server/actions_client/act
1212

1313
import { ActionsClientChatOpenAI } from './chat_openai';
1414
import { mockActionResponse, mockChatCompletion } from './mocks';
15+
import { DEFAULT_OPEN_AI_MODEL } from './constants';
1516

1617
const connectorId = 'mock-connector-id';
1718

@@ -94,7 +95,7 @@ describe('ActionsClientChatOpenAI', () => {
9495
const defaultStreamingArgs: OpenAI.ChatCompletionCreateParamsStreaming = {
9596
messages: [{ content: prompt, role: 'user' }],
9697
stream: true,
97-
model: 'gpt-4.1',
98+
model: DEFAULT_OPEN_AI_MODEL,
9899
n: 99,
99100
stop: ['a stop sequence'],
100101
tools: [{ function: jest.fn(), type: 'function' }],
@@ -113,7 +114,7 @@ describe('ActionsClientChatOpenAI', () => {
113114
actionId: connectorId,
114115
params: {
115116
subActionParams: {
116-
model: 'gpt-4.1',
117+
model: DEFAULT_OPEN_AI_MODEL,
117118
messages: [{ role: 'user', content: 'Do you know my name?' }],
118119
signal,
119120
timeout: 999999,
@@ -134,7 +135,7 @@ describe('ActionsClientChatOpenAI', () => {
134135
const defaultNonStreamingArgs: OpenAI.ChatCompletionCreateParamsNonStreaming = {
135136
messages: [{ content: prompt, role: 'user' }],
136137
stream: false,
137-
model: 'gpt-4.1',
138+
model: DEFAULT_OPEN_AI_MODEL,
138139
};
139140
it('returns the expected data', async () => {
140141
const actionsClientChatOpenAI = new ActionsClientChatOpenAI(defaultArgs);
@@ -146,7 +147,7 @@ describe('ActionsClientChatOpenAI', () => {
146147
actionId: connectorId,
147148
params: {
148149
subActionParams: {
149-
body: '{"temperature":0.2,"model":"gpt-4.1","messages":[{"role":"user","content":"Do you know my name?"}]}',
150+
body: `{"temperature":0.2,"model":"${DEFAULT_OPEN_AI_MODEL}","messages":[{"role":"user","content":"Do you know my name?"}]}`,
150151
signal,
151152
timeout: 999999,
152153
},
@@ -198,7 +199,7 @@ describe('ActionsClientChatOpenAI', () => {
198199
const defaultStreamingArgs: OpenAI.ChatCompletionCreateParamsStreaming = {
199200
messages: [{ content: prompt, role: 'user' }],
200201
stream: true,
201-
model: 'gpt-4.1',
202+
model: DEFAULT_OPEN_AI_MODEL,
202203
n: 99,
203204
stop: ['a stop sequence'],
204205
tools: [{ function: jest.fn(), type: 'function' }],
@@ -240,7 +241,7 @@ describe('ActionsClientChatOpenAI', () => {
240241
const defaultNonStreamingArgs: OpenAI.ChatCompletionCreateParamsNonStreaming = {
241242
messages: [{ content: prompt, role: 'user' }],
242243
stream: false,
243-
model: 'gpt-4.1',
244+
model: DEFAULT_OPEN_AI_MODEL,
244245
n: 99,
245246
stop: ['a stop sequence'],
246247
tools: [{ function: jest.fn(), type: 'function' }],

x-pack/platform/packages/shared/kbn-langchain/server/utils/bedrock.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,5 +245,5 @@ export const prepareMessages = (messages: Message[]) =>
245245
return acc;
246246
}, [] as Message[]);
247247

248-
export const DEFAULT_BEDROCK_MODEL = 'us.anthropic.claude-3-7-sonnet-20250219-v1:0';
248+
export const DEFAULT_BEDROCK_MODEL = 'us.anthropic.claude-sonnet-4-5-20250929-v1:0';
249249
export const DEFAULT_BEDROCK_REGION = 'us-east-1';

x-pack/platform/plugins/shared/actions/docs/openapi/components/schemas/bedrock_config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ properties:
1212
description: >
1313
The generative artificial intelligence model for Amazon Bedrock to use.
1414
Current support is for the Anthropic Claude models.
15-
default: us.anthropic.claude-3-7-sonnet-20250219-v1:0
15+
default: us.anthropic.claude-sonnet-4-5-20250929-v1:0

0 commit comments

Comments
 (0)