From 511b63087cf858f1eb14a1c51a7aaad4073c4276 Mon Sep 17 00:00:00 2001 From: mazyu36 Date: Fri, 27 Sep 2024 07:01:13 +0900 Subject: [PATCH] chore(bedrock): support Jamba 1.5 Large and Mini (#31537) Add new foundation model. Ref: * https://aws.amazon.com/about-aws/whats-new/2024/09/jamba-1-5-family-models-amazon-bedrock/ * https://docs.aws.amazon.com/bedrock/latest/userguide/model-ids.html Provider | Model name | Version | Model ID -- | -- | -- | -- AI21 Labs | Jamba 1.5 Large | 1.x | ai21.jamba-1-5-large-v1:0 AI21 Labs | Jamba 1.5 Mini | 1.x | ai21.jamba-1-5-mini-v1:0 ### 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* --- packages/aws-cdk-lib/aws-bedrock/lib/foundation-model.ts | 6 ++++++ 1 file changed, 6 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 5b4e5ad809b59..effe57b512010 100644 --- a/packages/aws-cdk-lib/aws-bedrock/lib/foundation-model.ts +++ b/packages/aws-cdk-lib/aws-bedrock/lib/foundation-model.ts @@ -83,6 +83,12 @@ export class FoundationModelIdentifier { /** Base model "ai21.jamba-instruct-v1:0". */ public static readonly AI21_J2_JAMBA_INSTRUCT_V1_0 = new FoundationModelIdentifier('ai21.jamba-instruct-v1:0'); + /** Base model "ai21.jamba-1-5-large-v1:0". */ + public static readonly AI21_JAMBA_1_5_LARGE_V_1_0 = new FoundationModelIdentifier('ai21.jamba-1-5-large-v1:0'); + + /** Base model "ai21.jamba-1-5-mini-v1:0". */ + public static readonly AI21_JAMBA_1_5_MINI_V_1_0 = new FoundationModelIdentifier('ai21.jamba-1-5-mini-v1:0'); + /** * Base model "anthropic.claude-v1". * @deprecated use latest version of the model