Skip to content

Commit 6c17ca5

Browse files
authored
feat(bedrock): stabilityai model (#29210)
- New URL - Adding Model - stability.stable-diffusion-xl-v0 - stability.stable-diffusion-xl-v1 ### Checklist - [x] 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 7feabc1 commit 6c17ca5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

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

+7-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { ArnFormat, Stack } from '../../core';
55
/**
66
* The model identifiers for the Bedrock base foundation models.
77
*
8-
* @see https://docs.aws.amazon.com/bedrock/latest/userguide/model-ids-arns.html
8+
* @see https://docs.aws.amazon.com/bedrock/latest/userguide/model-ids.html
99
*/
1010
export class FoundationModelIdentifier {
1111
/** Base model "ai21.j2-mid-v1". */
@@ -56,6 +56,12 @@ export class FoundationModelIdentifier {
5656
/** Base model "meta.llama2-70b-chat-v1". */
5757
public static readonly META_LLAMA_2_CHAT_70B_V1 = new FoundationModelIdentifier('meta.llama2-70b-chat-v1');
5858

59+
/** Base model "stability.stable-diffusion-xl-v0". */
60+
public static readonly STABILITY_STABLE_DIFFUSION_XL_V0 = new FoundationModelIdentifier('stability.stable-diffusion-xl-v0');
61+
62+
/** Base model "stability.stable-diffusion-xl-v1". */
63+
public static readonly STABILITY_STABLE_DIFFUSION_XL_V1 = new FoundationModelIdentifier('stability.stable-diffusion-xl-v1');
64+
5965
/**
6066
* Constructor for foundation model identifier
6167
* @param modelId the model identifier

0 commit comments

Comments
 (0)