From e3da3132d2d7f02a0d69712cb4e29e699dc60db5 Mon Sep 17 00:00:00 2001 From: Shusaku Yasoda Date: Fri, 24 May 2024 07:03:58 +0000 Subject: [PATCH 1/2] add : missing-model --- .../aws-bedrock/lib/foundation-model.ts | 26 ++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) 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 8476d1088678e..771bb335fcc1f 100644 --- a/packages/aws-cdk-lib/aws-bedrock/lib/foundation-model.ts +++ b/packages/aws-cdk-lib/aws-bedrock/lib/foundation-model.ts @@ -23,6 +23,12 @@ export class FoundationModelIdentifier { /** Base model "amazon.titan-text-express-v1". */ public static readonly AMAZON_TITAN_TEXT_G1_EXPRESS_V1 = new FoundationModelIdentifier('amazon.titan-text-express-v1'); + /** Base model "amazon.titan-text-lite-v1". */ + public static readonly AMAZON_TITAN_TEXT_G1_LITE_V1 = new FoundationModelIdentifier('amazon.titan-text-lite-v1'); + + /** Base model "amazon.titan-text-premier-v1:0". */ + public static readonly AMAZON_TITAN_TEXT_PREMIER_V1 = new FoundationModelIdentifier('amazon.titan-text-premier-v1:0'); + /** Base model "amazon.titan-embed-text-v1". */ public static readonly AMAZON_TITAN_EMBEDDINGS_G1_TEXT_V1 = new FoundationModelIdentifier('amazon.titan-embed-text-v1'); @@ -32,6 +38,9 @@ export class FoundationModelIdentifier { /** Base model "amazon.titan-embed-g1-text-02". */ public static readonly AMAZON_TITAN_EMBED_G1_TEXT_02 = new FoundationModelIdentifier('amazon.titan-embed-g1-text-02'); + /** Base model "amazon.titan-embed-text-v2:0". */ + public static readonly AMAZON_TITAN_EMBED_TEXT_V2_0 = new FoundationModelIdentifier('amazon.titan-embed-text-v2:0'); + /** Base model "amazon.titan-image-generator-v1". */ public static readonly AMAZON_TITAN_IMAGE_GENERATOR_G1_V1 = new FoundationModelIdentifier('amazon.titan-image-generator-v1'); @@ -71,7 +80,7 @@ export class FoundationModelIdentifier { /** Base model "anthropic.claude-v2". */ public static readonly ANTHROPIC_CLAUDE_V2 = new FoundationModelIdentifier('anthropic.claude-v2'); - /** Base model "anthropic.claude-v2:0:18k". */ + /** Base model "anthropiClaude Instant.claude-v2:0:18k". */ public static readonly ANTHROPIC_CLAUDE_V2_0_18K = new FoundationModelIdentifier('anthropic.claude-v2:0:18k'); /** Base model "anthropic.claude-v2:0:100k". */ @@ -125,6 +134,12 @@ export class FoundationModelIdentifier { /** Base model "cohere.command-light-text-v14:7:4k". */ public static readonly COHERE_COMMAND_LIGHT_TEXT_V14_7_4K = new FoundationModelIdentifier('cohere.command-light-text-v14:7:4k'); + /** Base model "cohere.command-r-v1:0". */ + public static readonly COHERE_COMMAND_R_V1 = new FoundationModelIdentifier('ccohere.command-r-v1:0'); + + /** Base model "cohere.command-r-v1:0". */ + public static readonly COHERE_COMMAND_R_PLUS_V1 = new FoundationModelIdentifier('cohere.command-r-plus-v1:0'); + /** Base model "cohere.embed-english-v3". */ public static readonly COHERE_EMBED_ENGLISH_V3 = new FoundationModelIdentifier('cohere.embed-english-v3'); @@ -155,12 +170,21 @@ export class FoundationModelIdentifier { /** Base model "meta.llama2-70b-chat-v1:0:4k". */ public static readonly META_LLAMA_2_70B_CHAT_V1_0_4K = new FoundationModelIdentifier('meta.llama2-70b-chat-v1:0:4k'); + /** Base model "meta.llama3-8b-instruct-v1:0". */ + public static readonly META_LLAMA_3_8B_INSTRUCT_V1 = new FoundationModelIdentifier('meta.llama3-8b-instruct-v1:0'); + + /** Base model "meta.llama3-70b-instruct-v1:0". */ + public static readonly META_LLAMA_3_70_INSTRUCT_V1 = new FoundationModelIdentifier('meta.llama3-70b-instruct-v1:0'); + /** Base model "mistral.mistral-7b-instruct-v0:2". */ public static readonly MISTRAL_MISTRAL_7B_INSTRUCT_V0_2 = new FoundationModelIdentifier('mistral.mistral-7b-instruct-v0:2'); /** Base model "mistral.mixtral-8x7b-instruct-v0:1". */ public static readonly MISTRAL_MIXTRAL_8X7B_INSTRUCT_V0_1 = new FoundationModelIdentifier('mistral.mixtral-8x7b-instruct-v0:1'); + /** Base model "mistral.mistral-large-2402-v1:0". */ + public static readonly MISTRAL_LARGE_V0_1 = new FoundationModelIdentifier('mistral.mistral-large-2402-v1:0'); + /** * Base model "stability.stable-diffusion-xl". * @deprecated use latest version of the model From c4f0eb5ff6be8fb6dc4b41b6d5220a62fe06f973 Mon Sep 17 00:00:00 2001 From: Shusaku Yasoda Date: Fri, 24 May 2024 07:10:22 +0000 Subject: [PATCH 2/2] fix : missing-model --- packages/aws-cdk-lib/aws-bedrock/lib/foundation-model.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 771bb335fcc1f..cbdfc89aa6726 100644 --- a/packages/aws-cdk-lib/aws-bedrock/lib/foundation-model.ts +++ b/packages/aws-cdk-lib/aws-bedrock/lib/foundation-model.ts @@ -80,7 +80,7 @@ export class FoundationModelIdentifier { /** Base model "anthropic.claude-v2". */ public static readonly ANTHROPIC_CLAUDE_V2 = new FoundationModelIdentifier('anthropic.claude-v2'); - /** Base model "anthropiClaude Instant.claude-v2:0:18k". */ + /** Base model "anthropic.claude-v2:0:18k". */ public static readonly ANTHROPIC_CLAUDE_V2_0_18K = new FoundationModelIdentifier('anthropic.claude-v2:0:18k'); /** Base model "anthropic.claude-v2:0:100k". */