From a0ce5762f23194462632deb69a95a726faf5b1d6 Mon Sep 17 00:00:00 2001 From: maz Date: Mon, 30 Dec 2024 21:34:49 +0900 Subject: [PATCH 1/3] chore(bedrock): add missing foundation models --- .../aws-bedrock/lib/foundation-model.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/packages/aws-cdk-lib/aws-bedrock/lib/foundation-model.ts b/packages/aws-cdk-lib/aws-bedrock/lib/foundation-model.ts index 64ff6fd778454..fd830d4f3ac5c 100644 --- a/packages/aws-cdk-lib/aws-bedrock/lib/foundation-model.ts +++ b/packages/aws-cdk-lib/aws-bedrock/lib/foundation-model.ts @@ -185,6 +185,15 @@ export class FoundationModelIdentifier { /** Base model "anthropic.claude-3-5-sonnet-20241022-v2:0" */ public static readonly ANTHROPIC_CLAUDE_3_5_SONNET_20241022_V2_0 = new FoundationModelIdentifier('anthropic.claude-3-5-sonnet-20241022-v2:0'); + /** Base model "anthropic.claude-3-5-sonnet-20241022-v2:0:18k". */ + public static readonly ANTHROPIC_CLAUDE_3_5_SONNET_20241022_V2_0_18K = new FoundationModelIdentifier('anthropic.claude-3-5-sonnet-20241022-v2:0:18k'); + + /** Base model "anthropic.claude-3-5-sonnet-20241022-v2:0:51k". */ + public static readonly ANTHROPIC_CLAUDE_3_5_SONNET_20241022_V2_0_51K = new FoundationModelIdentifier('anthropic.claude-3-5-sonnet-20241022-v2:0:51k'); + + /** Base model "anthropic.claude-3-5-sonnet-20241022-v2:0:200k". */ + public static readonly ANTHROPIC_CLAUDE_3_5_SONNET_20241022_V2_0_200K = new FoundationModelIdentifier('anthropic.claude-3-5-sonnet-20241022-v2:0:200k'); + /** Base model "anthropic.claude-3-haiku-20240307-v1:0". */ public static readonly ANTHROPIC_CLAUDE_3_HAIKU_20240307_V1_0 = new FoundationModelIdentifier('anthropic.claude-3-haiku-20240307-v1:0'); @@ -374,9 +383,15 @@ export class FoundationModelIdentifier { /** Base model "stability.stable-image-ultra-v1:0". */ public static readonly STABILITY_STABLE_IMAGE_ULTRA_V1_0 = new FoundationModelIdentifier('stability.stable-image-ultra-v1:0'); + /** Base model "stability.stable-image-ultra-v1:1". */ + public static readonly STABILITY_STABLE_IMAGE_ULTRA_V1_1 = new FoundationModelIdentifier('stability.stable-image-ultra-v1:1'); + /** Base model "stability.stable-image-core-v1:0". */ public static readonly STABILITY_STABLE_IMAGE_CORE_V1_0 = new FoundationModelIdentifier('stability.stable-image-core-v1:0'); + /** Base model "stability.stable-image-core-v1:1". */ + public static readonly STABILITY_STABLE_IMAGE_CORE_V1_1 = new FoundationModelIdentifier('stability.stable-image-core-v1:1'); + /** * Constructor for foundation model identifier * @param modelId the model identifier From 3e6877d7d8b42071a2b3b86c58d7d43b5b02c45b Mon Sep 17 00:00:00 2001 From: Matsuda Date: Mon, 30 Dec 2024 23:01:42 +0900 Subject: [PATCH 2/3] Update foundation-model.ts --- packages/aws-cdk-lib/aws-bedrock/lib/foundation-model.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/aws-cdk-lib/aws-bedrock/lib/foundation-model.ts b/packages/aws-cdk-lib/aws-bedrock/lib/foundation-model.ts index fd830d4f3ac5c..568f79bd85758 100644 --- a/packages/aws-cdk-lib/aws-bedrock/lib/foundation-model.ts +++ b/packages/aws-cdk-lib/aws-bedrock/lib/foundation-model.ts @@ -337,6 +337,9 @@ export class FoundationModelIdentifier { /** Base model "meta.llama3-2-90b-instruct-v1:0". */ public static readonly META_LLAMA_3_2_90B_INSTRUCT_V1 = new FoundationModelIdentifier('meta.llama3-2-90b-instruct-v1:0'); + + /** Base model "meta.llama3-3-70b-instruct-v1:0". */ + public static readonly META_LLAMA_3_3_70B_INSTRUCT_V1 = new FoundationModelIdentifier('meta.llama3-3-70b-instruct-v1:0'); /** Base model "mistral.mistral-7b-instruct-v0:2". */ public static readonly MISTRAL_MISTRAL_7B_INSTRUCT_V0_2 = new FoundationModelIdentifier('mistral.mistral-7b-instruct-v0:2'); @@ -379,6 +382,9 @@ export class FoundationModelIdentifier { /** Base model "stability.sd3-large-v1:0". */ public static readonly STABILITY_SD3_LARGE_V1_0 = new FoundationModelIdentifier('stability.sd3-large-v1:0'); + + /** Base model "stability.sd3-5-large-v1:0". */ + public static readonly STABILITY_SD3_5_LARGE_V1_0 = new FoundationModelIdentifier('stability.sd3-5-large-v1:0'); /** Base model "stability.stable-image-ultra-v1:0". */ public static readonly STABILITY_STABLE_IMAGE_ULTRA_V1_0 = new FoundationModelIdentifier('stability.stable-image-ultra-v1:0'); From a3c8e97af5eb515447940afbe2316ba0e5bfed57 Mon Sep 17 00:00:00 2001 From: Matsuda Date: Mon, 30 Dec 2024 23:26:03 +0900 Subject: [PATCH 3/3] Update foundation-model.ts --- packages/aws-cdk-lib/aws-bedrock/lib/foundation-model.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/aws-cdk-lib/aws-bedrock/lib/foundation-model.ts b/packages/aws-cdk-lib/aws-bedrock/lib/foundation-model.ts index 568f79bd85758..e4cb6a4748699 100644 --- a/packages/aws-cdk-lib/aws-bedrock/lib/foundation-model.ts +++ b/packages/aws-cdk-lib/aws-bedrock/lib/foundation-model.ts @@ -337,7 +337,7 @@ export class FoundationModelIdentifier { /** Base model "meta.llama3-2-90b-instruct-v1:0". */ public static readonly META_LLAMA_3_2_90B_INSTRUCT_V1 = new FoundationModelIdentifier('meta.llama3-2-90b-instruct-v1:0'); - + /** Base model "meta.llama3-3-70b-instruct-v1:0". */ public static readonly META_LLAMA_3_3_70B_INSTRUCT_V1 = new FoundationModelIdentifier('meta.llama3-3-70b-instruct-v1:0'); @@ -382,7 +382,7 @@ export class FoundationModelIdentifier { /** Base model "stability.sd3-large-v1:0". */ public static readonly STABILITY_SD3_LARGE_V1_0 = new FoundationModelIdentifier('stability.sd3-large-v1:0'); - + /** Base model "stability.sd3-5-large-v1:0". */ public static readonly STABILITY_SD3_5_LARGE_V1_0 = new FoundationModelIdentifier('stability.sd3-5-large-v1:0');