Skip to content

Commit c03cdab

Browse files
authored
chore(bedrock): support missing model versions in Amazon Bedrock model (#30324)
### Issue # (if applicable) N/A ### Reason for this change Compare with [the guide](https://docs.aws.amazon.com/bedrock/latest/userguide/model-ids.html) and add missing models. ### Description of changes Added the following models. - Amazon: - amazon.titan-text-lite-v1 - amazon.titan-text-premier-v1:0 - amazon.titan-embed-text-v2:0 - Cohere: - cohere.command-r-v1:0 - cohere.command-r-plus-v1:0 - Meta - meta.llama3-8b-instruct-v1:0 - meta.llama3-70b-instruct-v1:0 - Mistral AI - mistral.mistral-large-2402-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)
1 parent b17dfe7 commit c03cdab

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

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

+24
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ export class FoundationModelIdentifier {
2323
/** Base model "amazon.titan-text-express-v1". */
2424
public static readonly AMAZON_TITAN_TEXT_G1_EXPRESS_V1 = new FoundationModelIdentifier('amazon.titan-text-express-v1');
2525

26+
/** Base model "amazon.titan-text-lite-v1". */
27+
public static readonly AMAZON_TITAN_TEXT_G1_LITE_V1 = new FoundationModelIdentifier('amazon.titan-text-lite-v1');
28+
29+
/** Base model "amazon.titan-text-premier-v1:0". */
30+
public static readonly AMAZON_TITAN_TEXT_PREMIER_V1 = new FoundationModelIdentifier('amazon.titan-text-premier-v1:0');
31+
2632
/** Base model "amazon.titan-embed-text-v1". */
2733
public static readonly AMAZON_TITAN_EMBEDDINGS_G1_TEXT_V1 = new FoundationModelIdentifier('amazon.titan-embed-text-v1');
2834

@@ -32,6 +38,9 @@ export class FoundationModelIdentifier {
3238
/** Base model "amazon.titan-embed-g1-text-02". */
3339
public static readonly AMAZON_TITAN_EMBED_G1_TEXT_02 = new FoundationModelIdentifier('amazon.titan-embed-g1-text-02');
3440

41+
/** Base model "amazon.titan-embed-text-v2:0". */
42+
public static readonly AMAZON_TITAN_EMBED_TEXT_V2_0 = new FoundationModelIdentifier('amazon.titan-embed-text-v2:0');
43+
3544
/** Base model "amazon.titan-image-generator-v1". */
3645
public static readonly AMAZON_TITAN_IMAGE_GENERATOR_G1_V1 = new FoundationModelIdentifier('amazon.titan-image-generator-v1');
3746

@@ -125,6 +134,12 @@ export class FoundationModelIdentifier {
125134
/** Base model "cohere.command-light-text-v14:7:4k". */
126135
public static readonly COHERE_COMMAND_LIGHT_TEXT_V14_7_4K = new FoundationModelIdentifier('cohere.command-light-text-v14:7:4k');
127136

137+
/** Base model "cohere.command-r-v1:0". */
138+
public static readonly COHERE_COMMAND_R_V1 = new FoundationModelIdentifier('ccohere.command-r-v1:0');
139+
140+
/** Base model "cohere.command-r-v1:0". */
141+
public static readonly COHERE_COMMAND_R_PLUS_V1 = new FoundationModelIdentifier('cohere.command-r-plus-v1:0');
142+
128143
/** Base model "cohere.embed-english-v3". */
129144
public static readonly COHERE_EMBED_ENGLISH_V3 = new FoundationModelIdentifier('cohere.embed-english-v3');
130145

@@ -155,12 +170,21 @@ export class FoundationModelIdentifier {
155170
/** Base model "meta.llama2-70b-chat-v1:0:4k". */
156171
public static readonly META_LLAMA_2_70B_CHAT_V1_0_4K = new FoundationModelIdentifier('meta.llama2-70b-chat-v1:0:4k');
157172

173+
/** Base model "meta.llama3-8b-instruct-v1:0". */
174+
public static readonly META_LLAMA_3_8B_INSTRUCT_V1 = new FoundationModelIdentifier('meta.llama3-8b-instruct-v1:0');
175+
176+
/** Base model "meta.llama3-70b-instruct-v1:0". */
177+
public static readonly META_LLAMA_3_70_INSTRUCT_V1 = new FoundationModelIdentifier('meta.llama3-70b-instruct-v1:0');
178+
158179
/** Base model "mistral.mistral-7b-instruct-v0:2". */
159180
public static readonly MISTRAL_MISTRAL_7B_INSTRUCT_V0_2 = new FoundationModelIdentifier('mistral.mistral-7b-instruct-v0:2');
160181

161182
/** Base model "mistral.mixtral-8x7b-instruct-v0:1". */
162183
public static readonly MISTRAL_MIXTRAL_8X7B_INSTRUCT_V0_1 = new FoundationModelIdentifier('mistral.mixtral-8x7b-instruct-v0:1');
163184

185+
/** Base model "mistral.mistral-large-2402-v1:0". */
186+
public static readonly MISTRAL_LARGE_V0_1 = new FoundationModelIdentifier('mistral.mistral-large-2402-v1:0');
187+
164188
/**
165189
* Base model "stability.stable-diffusion-xl".
166190
* @deprecated use latest version of the model

0 commit comments

Comments
 (0)