Skip to content

Commit dfc12aa

Browse files
authored
chore(bedrock): add missing models and fix typo (#30668)
Add missing models. ```ts ai21.j2-ultra-v1:0:8k ai21.jamba-instruct-v1:0 amazon.titan-embed-text-v2:0:8k anthropic.claude-3-5-sonnet-20240620-v1:0 cohere.embed-english-v3:0:512 cohere.embed-multilingual-v3:0:512 mistral.mistral-small-2402-v1:0 ``` Also, fix typo. `ccohere.command-r-v1:0` -> `cohere.command-r-v1:0` Ref: * https://docs.aws.amazon.com/bedrock/latest/userguide/model-ids.html ### 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*
1 parent b880067 commit dfc12aa

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

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

+19-1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ export class FoundationModelIdentifier {
4141
/** Base model "amazon.titan-embed-text-v2:0". */
4242
public static readonly AMAZON_TITAN_EMBED_TEXT_V2_0 = new FoundationModelIdentifier('amazon.titan-embed-text-v2:0');
4343

44+
/** Base model "amazon.titan-embed-text-v2:0:8k". */
45+
public static readonly AMAZON_TITAN_EMBED_TEXT_V2_0_8K = new FoundationModelIdentifier('amazon.titan-embed-text-v2:0:8k');
46+
4447
/** Base model "amazon.titan-image-generator-v1". */
4548
public static readonly AMAZON_TITAN_IMAGE_GENERATOR_G1_V1 = new FoundationModelIdentifier('amazon.titan-image-generator-v1');
4649

@@ -65,12 +68,18 @@ export class FoundationModelIdentifier {
6568
/** Base model "ai21.j2-ultra-v1". */
6669
public static readonly AI21_LABS_JURASSIC_2_ULTRA_V1 = new FoundationModelIdentifier('ai21.j2-ultra-v1');
6770

71+
/** Base model "ai21.j2-ultra-v1:0:8k". */
72+
public static readonly AI21_LABS_JURASSIC_2_ULTRA_V1_0_8K = new FoundationModelIdentifier('ai21.j2-ultra-v1:0:8k');
73+
6874
/** Base model "ai21.j2-grande-instruct". */
6975
public static readonly AI21_J2_GRANDE_INSTRUCT = new FoundationModelIdentifier('ai21.j2-grande-instruct');
7076

7177
/** Base model "ai21.j2-jumbo-instruct". */
7278
public static readonly AI21_J2_JUMBO_INSTRUCT = new FoundationModelIdentifier('ai21.j2-jumbo-instruct');
7379

80+
/** Base model "ai21.jamba-instruct-v1:0". */
81+
public static readonly AI21_J2_JAMBA_INSTRUCT_V1_0 = new FoundationModelIdentifier('ai21.jamba-instruct-v1:0');
82+
7483
/**
7584
* Base model "anthropic.claude-v1".
7685
* @deprecated use latest version of the model
@@ -138,17 +147,23 @@ export class FoundationModelIdentifier {
138147
public static readonly COHERE_COMMAND_LIGHT_TEXT_V14_7_4K = new FoundationModelIdentifier('cohere.command-light-text-v14:7:4k');
139148

140149
/** Base model "cohere.command-r-v1:0". */
141-
public static readonly COHERE_COMMAND_R_V1 = new FoundationModelIdentifier('ccohere.command-r-v1:0');
150+
public static readonly COHERE_COMMAND_R_V1 = new FoundationModelIdentifier('cohere.command-r-v1:0');
142151

143152
/** Base model "cohere.command-r-v1:0". */
144153
public static readonly COHERE_COMMAND_R_PLUS_V1 = new FoundationModelIdentifier('cohere.command-r-plus-v1:0');
145154

146155
/** Base model "cohere.embed-english-v3". */
147156
public static readonly COHERE_EMBED_ENGLISH_V3 = new FoundationModelIdentifier('cohere.embed-english-v3');
148157

158+
/** Base model "cohere.embed-english-v3:0:512". */
159+
public static readonly COHERE_EMBED_ENGLISH_V3_0_512 = new FoundationModelIdentifier('cohere.embed-english-v3:0:512');
160+
149161
/** Base model "cohere.embed-multilingual-v3". */
150162
public static readonly COHERE_EMBED_MULTILINGUAL_V3 = new FoundationModelIdentifier('cohere.embed-multilingual-v3');
151163

164+
/** Base model "cohere.embed-multilingual-v3:0:512". */
165+
public static readonly COHERE_EMBED_MULTILINGUAL_V3_0_512 = new FoundationModelIdentifier('cohere.embed-multilingual-v3:0:512');
166+
152167
/** Base model "meta.llama2-13b-v1". */
153168
public static readonly META_LLAMA_2_13B_V1 = new FoundationModelIdentifier('meta.llama2-13b-v1');
154169

@@ -188,6 +203,9 @@ export class FoundationModelIdentifier {
188203
/** Base model "mistral.mistral-large-2402-v1:0". */
189204
public static readonly MISTRAL_LARGE_V0_1 = new FoundationModelIdentifier('mistral.mistral-large-2402-v1:0');
190205

206+
/** Base model "mistral.mistral-small-2402-v1:0". */
207+
public static readonly MISTRAL_SMALL_V0_1 = new FoundationModelIdentifier('mistral.mistral-small-2402-v1:0');
208+
191209
/**
192210
* Base model "stability.stable-diffusion-xl".
193211
* @deprecated use latest version of the model

0 commit comments

Comments
 (0)