Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(bedrock): stabilityai model #29210

Merged
merged 2 commits into from
Feb 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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