Skip to content

Commit fcf4ecd

Browse files
authored
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*
1 parent 56ed0e5 commit fcf4ecd

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

packages/aws-cdk-lib/aws-bedrock/lib/foundation-model.ts

+21
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,15 @@ export class FoundationModelIdentifier {
185185
/** Base model "anthropic.claude-3-5-sonnet-20241022-v2:0" */
186186
public static readonly ANTHROPIC_CLAUDE_3_5_SONNET_20241022_V2_0 = new FoundationModelIdentifier('anthropic.claude-3-5-sonnet-20241022-v2:0');
187187

188+
/** Base model "anthropic.claude-3-5-sonnet-20241022-v2:0:18k". */
189+
public static readonly ANTHROPIC_CLAUDE_3_5_SONNET_20241022_V2_0_18K = new FoundationModelIdentifier('anthropic.claude-3-5-sonnet-20241022-v2:0:18k');
190+
191+
/** Base model "anthropic.claude-3-5-sonnet-20241022-v2:0:51k". */
192+
public static readonly ANTHROPIC_CLAUDE_3_5_SONNET_20241022_V2_0_51K = new FoundationModelIdentifier('anthropic.claude-3-5-sonnet-20241022-v2:0:51k');
193+
194+
/** Base model "anthropic.claude-3-5-sonnet-20241022-v2:0:200k". */
195+
public static readonly ANTHROPIC_CLAUDE_3_5_SONNET_20241022_V2_0_200K = new FoundationModelIdentifier('anthropic.claude-3-5-sonnet-20241022-v2:0:200k');
196+
188197
/** Base model "anthropic.claude-3-haiku-20240307-v1:0". */
189198
public static readonly ANTHROPIC_CLAUDE_3_HAIKU_20240307_V1_0 = new FoundationModelIdentifier('anthropic.claude-3-haiku-20240307-v1:0');
190199

@@ -329,6 +338,9 @@ export class FoundationModelIdentifier {
329338
/** Base model "meta.llama3-2-90b-instruct-v1:0". */
330339
public static readonly META_LLAMA_3_2_90B_INSTRUCT_V1 = new FoundationModelIdentifier('meta.llama3-2-90b-instruct-v1:0');
331340

341+
/** Base model "meta.llama3-3-70b-instruct-v1:0". */
342+
public static readonly META_LLAMA_3_3_70B_INSTRUCT_V1 = new FoundationModelIdentifier('meta.llama3-3-70b-instruct-v1:0');
343+
332344
/** Base model "mistral.mistral-7b-instruct-v0:2". */
333345
public static readonly MISTRAL_MISTRAL_7B_INSTRUCT_V0_2 = new FoundationModelIdentifier('mistral.mistral-7b-instruct-v0:2');
334346

@@ -371,12 +383,21 @@ export class FoundationModelIdentifier {
371383
/** Base model "stability.sd3-large-v1:0". */
372384
public static readonly STABILITY_SD3_LARGE_V1_0 = new FoundationModelIdentifier('stability.sd3-large-v1:0');
373385

386+
/** Base model "stability.sd3-5-large-v1:0". */
387+
public static readonly STABILITY_SD3_5_LARGE_V1_0 = new FoundationModelIdentifier('stability.sd3-5-large-v1:0');
388+
374389
/** Base model "stability.stable-image-ultra-v1:0". */
375390
public static readonly STABILITY_STABLE_IMAGE_ULTRA_V1_0 = new FoundationModelIdentifier('stability.stable-image-ultra-v1:0');
376391

392+
/** Base model "stability.stable-image-ultra-v1:1". */
393+
public static readonly STABILITY_STABLE_IMAGE_ULTRA_V1_1 = new FoundationModelIdentifier('stability.stable-image-ultra-v1:1');
394+
377395
/** Base model "stability.stable-image-core-v1:0". */
378396
public static readonly STABILITY_STABLE_IMAGE_CORE_V1_0 = new FoundationModelIdentifier('stability.stable-image-core-v1:0');
379397

398+
/** Base model "stability.stable-image-core-v1:1". */
399+
public static readonly STABILITY_STABLE_IMAGE_CORE_V1_1 = new FoundationModelIdentifier('stability.stable-image-core-v1:1');
400+
380401
/**
381402
* Constructor for foundation model identifier
382403
* @param modelId the model identifier

0 commit comments

Comments
 (0)