From afbb1860f075f276e7a4e9649592f442bcd05a02 Mon Sep 17 00:00:00 2001 From: Rafael Mosca Date: Wed, 6 Nov 2024 00:41:28 +0100 Subject: [PATCH] feat(bedrock): add claude 3.5 haiku (#785) * fix(bedrock):add model --------- Signed-off-by: Rafael Mosca Co-authored-by: Alain Krok --- .../namespaces/bedrock/classes/BedrockFoundationModel.md | 6 ++++++ src/cdk-lib/bedrock/models.ts | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/apidocs/namespaces/bedrock/classes/BedrockFoundationModel.md b/apidocs/namespaces/bedrock/classes/BedrockFoundationModel.md index e218143b..e6349025 100644 --- a/apidocs/namespaces/bedrock/classes/BedrockFoundationModel.md +++ b/apidocs/namespaces/bedrock/classes/BedrockFoundationModel.md @@ -65,6 +65,12 @@ can instantiate a `BedrockFoundationModel` object, e.g: `new BedrockFoundationMo *** +### ANTHROPIC\_CLAUDE\_3\_5\_HAIKU\_V1\_0 + +> `readonly` `static` **ANTHROPIC\_CLAUDE\_3\_5\_HAIKU\_V1\_0**: [`BedrockFoundationModel`](BedrockFoundationModel.md) + +*** + ### ANTHROPIC\_CLAUDE\_3\_5\_SONNET\_V1\_0 > `readonly` `static` **ANTHROPIC\_CLAUDE\_3\_5\_SONNET\_V1\_0**: [`BedrockFoundationModel`](BedrockFoundationModel.md) diff --git a/src/cdk-lib/bedrock/models.ts b/src/cdk-lib/bedrock/models.ts index a05df4e7..bc8add0f 100644 --- a/src/cdk-lib/bedrock/models.ts +++ b/src/cdk-lib/bedrock/models.ts @@ -59,6 +59,10 @@ export class BedrockFoundationModel { 'amazon.titan-text-express-v1', { supportsAgents: true }, ); + public static readonly ANTHROPIC_CLAUDE_3_5_HAIKU_V1_0 = new BedrockFoundationModel( + 'anthropic.claude-3-5-haiku-20241022-v1:0', + { supportsAgents: true }, + ); public static readonly ANTHROPIC_CLAUDE_3_5_SONNET_V2_0 = new BedrockFoundationModel( 'anthropic.claude-3-5-sonnet-20241022-v2:0', { supportsAgents: true },