Skip to content

Commit

Permalink
feat(bedrock): deprecate Claude 2, 2.1, Instant (#33058)
Browse files Browse the repository at this point in the history
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*
  • Loading branch information
mazyu36 authored Jan 23, 2025
1 parent 1e2c1ae commit c0ed449
Showing 1 changed file with 32 additions and 8 deletions.
40 changes: 32 additions & 8 deletions packages/aws-cdk-lib/aws-bedrock/lib/foundation-model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,22 +143,40 @@ export class FoundationModelIdentifier {
**/
public static readonly ANTHROPIC_CLAUDE_V1 = new FoundationModelIdentifier('anthropic.claude-v1');

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

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

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

/** Base model "anthropic.claude-v2:1". */
/**
* Base model "anthropic.claude-v2:1".
* @deprecated use latest version of the model
*/
public static readonly ANTHROPIC_CLAUDE_V2_1 = new FoundationModelIdentifier('anthropic.claude-v2:1');

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

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

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

/** Base model "anthropic.claude-instant-v1". */
/**
* Base model "anthropic.claude-instant-v1".
* @deprecated use latest version of the model
*/
public static readonly ANTHROPIC_CLAUDE_INSTANT_V1 = new FoundationModelIdentifier('anthropic.claude-instant-v1');

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

/** Base model "cohere.command-text-v14". */
Expand Down

0 comments on commit c0ed449

Please sign in to comment.