Skip to content

Commit 8c04b05

Browse files
wmz7yeartzolov
authored andcommitted
Add support for AWS bedrock claude3 opus model support
1 parent 6178b3d commit 8c04b05

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

models/spring-ai-bedrock/src/main/java/org/springframework/ai/bedrock/anthropic3/api/Anthropic3ChatBedrockApi.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,11 @@ public enum AnthropicChatModel {
441441
/**
442442
* anthropic.claude-3-haiku-20240307-v1:0
443443
*/
444-
CLAUDE_V3_HAIKU("anthropic.claude-3-haiku-20240307-v1:0");
444+
CLAUDE_V3_HAIKU("anthropic.claude-3-haiku-20240307-v1:0"),
445+
/**
446+
* anthropic.claude-3-opus-20240229-v1:0
447+
*/
448+
CLAUDE_V3_OPUS("anthropic.claude-3-opus-20240229-v1:0");
445449

446450
private final String id;
447451

spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chat/bedrock/bedrock-anthropic3.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ Flux<ChatResponse> response = chatClient.stream(
264264

265265
The https://github.com/spring-projects/spring-ai/blob/main/models/spring-ai-bedrock/src/main/java/org/springframework/ai/bedrock/anthropic3/api/Anthropic3ChatBedrockApi.java[Anthropic3ChatBedrockApi] provides is lightweight Java client on top of AWS Bedrock link:https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters-claude.html[Anthropic Claude models].
266266

267-
Client supports the `anthropic.claude-3-sonnet-20240229-v1:0`,`anthropic.claude-3-haiku-20240307-v1:0` and the legacy `anthropic.claude-v2`, `anthropic.claude-v2:1` and `anthropic.claude-instant-v1` models for both synchronous (e.g. `chatCompletion()`) and streaming (e.g. `chatCompletionStream()`) responses.
267+
Client supports the `anthropic.claude-3-opus-20240229-v1:0`,`anthropic.claude-3-sonnet-20240229-v1:0`,`anthropic.claude-3-haiku-20240307-v1:0` and the legacy `anthropic.claude-v2`, `anthropic.claude-v2:1` and `anthropic.claude-instant-v1` models for both synchronous (e.g. `chatCompletion()`) and streaming (e.g. `chatCompletionStream()`) responses.
268268

269269
Here is a simple snippet how to use the api programmatically:
270270

0 commit comments

Comments
 (0)