Skip to content

Commit

Permalink
chore(bedrock): support Claude 3.5 Haiku model (#32014)
Browse files Browse the repository at this point in the history
Add a new foundation model.

Ref: [Anthropic’s Claude 3.5 Haiku model now available in Amazon Bedrock](https://aws.amazon.com/about-aws/whats-new/2024/11/anthropics-claude-3-5-haiku-model-amazon-bedrock/)

```sh
% aws bedrock get-foundation-model --model-identifier anthropic.claude-3-5-haiku-20241022-v1:0 --region us-west-2
{
    "modelDetails": {
        "modelArn": "arn:aws:bedrock:us-west-2::foundation-model/anthropic.claude-3-5-haiku-20241022-v1:0",
        "modelId": "anthropic.claude-3-5-haiku-20241022-v1:0",
        "modelName": "Claude 3.5 Haiku",
        "providerName": "Anthropic",
// omit
```

### 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 Nov 5, 2024
1 parent 1466f93 commit 090c7be
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/aws-cdk-lib/aws-bedrock/lib/foundation-model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ export class FoundationModelIdentifier {
/** Base model "anthropic.claude-3-haiku-20240307-v1:0:48k" */
public static readonly ANTHROPIC_CLAUDE_3_HAIKU_20240307_V1_0_48K = new FoundationModelIdentifier('anthropic.claude-3-haiku-20240307-v1:0:48k');

/** Base model "anthropic.claude-3-5-haiku-20241022-v1:0" */
public static readonly ANTHROPIC_CLAUDE_3_5_HAIKU_20241022_V1_0 = new FoundationModelIdentifier('anthropic.claude-3-5-haiku-20241022-v1:0');

/** Base model "anthropic.claude-3-haiku-20240307-v1:0:200k" */
public static readonly ANTHROPIC_CLAUDE_3_HAIKU_20240307_V1_0_200K = new FoundationModelIdentifier('anthropic.claude-3-haiku-20240307-v1:0:200k');

Expand Down

0 comments on commit 090c7be

Please sign in to comment.