Skip to content

Commit

Permalink
feat(bedrock): stabilityai model (#29210)
Browse files Browse the repository at this point in the history
- 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*
  • Loading branch information
watany-dev authored Feb 22, 2024
1 parent 7feabc1 commit 6c17ca5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/aws-cdk-lib/aws-bedrock/lib/foundation-model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { ArnFormat, Stack } from '../../core';
/**
* The model identifiers for the Bedrock base foundation models.
*
* @see https://docs.aws.amazon.com/bedrock/latest/userguide/model-ids-arns.html
* @see https://docs.aws.amazon.com/bedrock/latest/userguide/model-ids.html
*/
export class FoundationModelIdentifier {
/** Base model "ai21.j2-mid-v1". */
Expand Down Expand Up @@ -56,6 +56,12 @@ export class FoundationModelIdentifier {
/** Base model "meta.llama2-70b-chat-v1". */
public static readonly META_LLAMA_2_CHAT_70B_V1 = new FoundationModelIdentifier('meta.llama2-70b-chat-v1');

/** Base model "stability.stable-diffusion-xl-v0". */
public static readonly STABILITY_STABLE_DIFFUSION_XL_V0 = new FoundationModelIdentifier('stability.stable-diffusion-xl-v0');

/** Base model "stability.stable-diffusion-xl-v1". */
public static readonly STABILITY_STABLE_DIFFUSION_XL_V1 = new FoundationModelIdentifier('stability.stable-diffusion-xl-v1');

/**
* Constructor for foundation model identifier
* @param modelId the model identifier
Expand Down

0 comments on commit 6c17ca5

Please sign in to comment.