From fcf4ecda4822cc8556409d4ff323e49cdbd985a7 Mon Sep 17 00:00:00 2001 From: Matsuda Date: Wed, 1 Jan 2025 03:19:23 +0900 Subject: [PATCH] feat(bedrock): additional foundation models (#32684) Add some missing foundation models IDs. ```sh % aws bedrock list-foundation-models --region us-west-2 | jq -r '.modelSummaries[].modelId' ``` The following models are missing: * anthropic.claude-3-5-sonnet-20241022-v2:0:18k * anthropic.claude-3-5-sonnet-20241022-v2:0:200k * anthropic.claude-3-5-sonnet-20241022-v2:0:51k * meta.llama3-3-70b-instruct-v1:0 * stability.sd3-5-large-v1:0 * stability.stable-image-core-v1:1 * stability.stable-image-ultra-v1:1 ### Checklist - [ ] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license* --- .../aws-bedrock/lib/foundation-model.ts | 21 +++++++++++++++++++ 1 file changed, 21 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..e4cb6a4748699 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'); @@ -329,6 +338,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'); @@ -371,12 +383,21 @@ 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'); + /** 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