Skip to content

Commit c0ed449

Browse files
authored
feat(bedrock): deprecate Claude 2, 2.1, Instant (#33058)
The following models are now legacy for all regions: * Claude v2, Claude v2.1 * Claude Instant Ref: https://docs.aws.amazon.com/bedrock/latest/userguide/model-lifecycle.html Note: Since Claude 3 Sonnet is legacy only in specific regions, I did not add a deprecated label. ### 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 1e2c1ae commit c0ed449

File tree

1 file changed

+32
-8
lines changed

1 file changed

+32
-8
lines changed

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

Lines changed: 32 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -143,22 +143,40 @@ export class FoundationModelIdentifier {
143143
**/
144144
public static readonly ANTHROPIC_CLAUDE_V1 = new FoundationModelIdentifier('anthropic.claude-v1');
145145

146-
/** Base model "anthropic.claude-v2". */
146+
/**
147+
* Base model "anthropic.claude-v2".
148+
* @deprecated use latest version of the model
149+
*/
147150
public static readonly ANTHROPIC_CLAUDE_V2 = new FoundationModelIdentifier('anthropic.claude-v2');
148151

149-
/** Base model "anthropic.claude-v2:0:18k". */
152+
/**
153+
* Base model "anthropic.claude-v2:0:18k".
154+
* @deprecated use latest version of the model
155+
*/
150156
public static readonly ANTHROPIC_CLAUDE_V2_0_18K = new FoundationModelIdentifier('anthropic.claude-v2:0:18k');
151157

152-
/** Base model "anthropic.claude-v2:0:100k". */
158+
/**
159+
* Base model "anthropic.claude-v2:0:100k".
160+
* @deprecated use latest version of the model
161+
*/
153162
public static readonly ANTHROPIC_CLAUDE_V2_0_100K = new FoundationModelIdentifier('anthropic.claude-v2:0:100k');
154163

155-
/** Base model "anthropic.claude-v2:1". */
164+
/**
165+
* Base model "anthropic.claude-v2:1".
166+
* @deprecated use latest version of the model
167+
*/
156168
public static readonly ANTHROPIC_CLAUDE_V2_1 = new FoundationModelIdentifier('anthropic.claude-v2:1');
157169

158-
/** Base model "anthropic.claude-v2:1:18k". */
170+
/**
171+
* Base model "anthropic.claude-v2:1:18k".
172+
* @deprecated use latest version of the model
173+
*/
159174
public static readonly ANTHROPIC_CLAUDE_V2_1_18K = new FoundationModelIdentifier('anthropic.claude-v2:1:18k');
160175

161-
/** Base model "anthropic.claude-v2:1:200k". */
176+
/**
177+
* Base model "anthropic.claude-v2:1:200k".
178+
* @deprecated use latest version of the model
179+
*/
162180
public static readonly ANTHROPIC_CLAUDE_V2_1_200K = new FoundationModelIdentifier('anthropic.claude-v2:1:200k');
163181

164182
/** Base model "anthropic.claude-3-sonnet-20240229-v1:0". */
@@ -218,10 +236,16 @@ export class FoundationModelIdentifier {
218236
/** Base model "anthropic.claude-3-opus-20240229-v1:0:200k". */
219237
public static readonly ANTHROPIC_CLAUDE_3_OPUS_20240229_V1_0_200K = new FoundationModelIdentifier('anthropic.claude-3-opus-20240229-v1:0:200k');
220238

221-
/** Base model "anthropic.claude-instant-v1". */
239+
/**
240+
* Base model "anthropic.claude-instant-v1".
241+
* @deprecated use latest version of the model
242+
*/
222243
public static readonly ANTHROPIC_CLAUDE_INSTANT_V1 = new FoundationModelIdentifier('anthropic.claude-instant-v1');
223244

224-
/** Base model "anthropic.claude-instant-v1:2:100k". */
245+
/**
246+
* Base model "anthropic.claude-instant-v1:2:100k".
247+
* @deprecated use latest version of the model
248+
*/
225249
public static readonly ANTHROPIC_CLAUDE_INSTANT_V1_2_100K = new FoundationModelIdentifier('anthropic.claude-instant-v1:2:100k');
226250

227251
/** Base model "cohere.command-text-v14". */

0 commit comments

Comments
 (0)