From 957c863c45822ee5ced984746473177d8e5d847a Mon Sep 17 00:00:00 2001 From: Kubo Toshiyuki Date: Wed, 30 Oct 2024 09:44:05 +0900 Subject: [PATCH] Added bedrock 3-5 sonnet new model's cost detials for BedrockAnthropicTokenUsageCallbackHandler --- .../langchain_community/callbacks/bedrock_anthropic_callback.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/community/langchain_community/callbacks/bedrock_anthropic_callback.py b/libs/community/langchain_community/callbacks/bedrock_anthropic_callback.py index 0c4d4bbd8bebb..32c36f40768be 100644 --- a/libs/community/langchain_community/callbacks/bedrock_anthropic_callback.py +++ b/libs/community/langchain_community/callbacks/bedrock_anthropic_callback.py @@ -10,6 +10,7 @@ "anthropic.claude-v2:1": 0.008, "anthropic.claude-3-sonnet-20240229-v1:0": 0.003, "anthropic.claude-3-5-sonnet-20240620-v1:0": 0.003, + "anthropic.claude-3-5-sonnet-20241022-v2:0": 0.003, "anthropic.claude-3-haiku-20240307-v1:0": 0.00025, } @@ -19,6 +20,7 @@ "anthropic.claude-v2:1": 0.024, "anthropic.claude-3-sonnet-20240229-v1:0": 0.015, "anthropic.claude-3-5-sonnet-20240620-v1:0": 0.015, + "anthropic.claude-3-5-sonnet-20241022-v2:0": 0.015, "anthropic.claude-3-haiku-20240307-v1:0": 0.00125, }