Skip to content

Commit 58608a9

Browse files
committed
update bedrock claude-3-5 max_tokens
1 parent 821e4bb commit 58608a9

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

metagpt/provider/bedrock/utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@
4848
"anthropic.claude-3-opus-20240229-v1:0": 4096,
4949
# Claude 3.5 Sonnet
5050
"anthropic.claude-3-5-sonnet-20240620-v1:0": 8192,
51+
"anthropic.claude-3-5-sonnet-20241022-v2:0": 8192,
52+
"us.anthropic.claude-3-5-sonnet-20241022-v2:0": 8192,
5153
# Claude 3.7 Sonnet
5254
"us.anthropic.claude-3-7-sonnet-20250219-v1:0": 131072,
5355
"anthropic.claude-3-7-sonnet-20250219-v1:0": 131072,

metagpt/utils/token_counter.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@
9393
"openai/o1-preview": {"prompt": 0.015, "completion": 0.06},
9494
"openai/o1-mini": {"prompt": 0.003, "completion": 0.012},
9595
"anthropic/claude-3-opus": {"prompt": 0.015, "completion": 0.075},
96+
"anthropic.claude-3-5-sonnet-20241022-v2:0": {"prompt": 0.003, "completion": 0.015},
97+
"us.anthropic.claude-3-5-sonnet-20241022-v2:0": {"prompt": 0.003, "completion": 0.015},
9698
"anthropic/claude-3.7-sonnet": {"prompt": 0.003, "completion": 0.015},
9799
"anthropic/claude-3.7-sonnet:beta": {"prompt": 0.003, "completion": 0.015},
98100
"anthropic/claude-3.7-sonnet:thinking": {"prompt": 0.003, "completion": 0.015},

0 commit comments

Comments
 (0)