Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

Fix anthropic.claude-opus-4-6-v1 for bedrock

Sameer Kankutef15dd691b479
diff --git a/litellm/model_prices_and_context_window_backup.json b/litellm/model_prices_and_context_window_backup.json
index 66c8e55c3ae..39c95b893f5 100644
--- a/litellm/model_prices_and_context_window_backup.json
+++ b/litellm/model_prices_and_context_window_backup.json
@@ -1023,7 +1023,7 @@
"supports_vision": true,
"tool_use_system_prompt_tokens": 346
},
- "us.anthropic.claude-opus-4-6-v1:0": {
+ "us.anthropic.claude-opus-4-6-v1": {
"cache_creation_input_token_cost": 6.875e-06,
"cache_creation_input_token_cost_above_200k_tokens": 1.375e-05,
"cache_read_input_token_cost": 5.5e-07,
diff --git a/model_prices_and_context_window.json b/model_prices_and_context_window.json
index 66c8e55c3ae..39c95b893f5 100644
--- a/model_prices_and_context_window.json
+++ b/model_prices_and_context_window.json
@@ -1023,7 +1023,7 @@
"supports_vision": true,
"tool_use_system_prompt_tokens": 346
},
- "us.anthropic.claude-opus-4-6-v1:0": {
+ "us.anthropic.claude-opus-4-6-v1": {
"cache_creation_input_token_cost": 6.875e-06,
"cache_creation_input_token_cost_above_200k_tokens": 1.375e-05,
"cache_read_input_token_cost": 5.5e-07,
diff --git a/tests/test_litellm/test_claude_opus_4_6_config.py b/tests/test_litellm/test_claude_opus_4_6_config.py
index 2b01ba6d99c..8823f0d66a6 100644
--- a/tests/test_litellm/test_claude_opus_4_6_config.py
+++ b/tests/test_litellm/test_claude_opus_4_6_config.py
@@ -72,7 +72,7 @@ def test_opus_4_6_bedrock_regional_model_pricing():
model_data = json.load(f)
expected_models = {
- "global.anthropic.claude-opus-4-6-v1:0": {
+ "global.anthropic.claude-opus-4-6-v1": {
"input_cost_per_token": 5e-06,
"output_cost_per_token": 2.5e-05,
"cache_creation_input_token_cost": 6.25e-06,
@@ -82,7 +82,7 @@ def test_opus_4_6_bedrock_regional_model_pricing():
"cache_creation_input_token_cost_above_200k_tokens": 1.25e-05,
"cache_read_input_token_cost_above_200k_tokens": 1e-06,
},
- "us.anthropic.claude-opus-4-6-v1:0": {
+ "us.anthropic.claude-opus-4-6-v1": {
"input_cost_per_token": 5.5e-06,
"output_cost_per_token": 2.75e-05,
"cache_creation_input_token_cost": 6.875e-06,
@@ -92,7 +92,7 @@ def test_opus_4_6_bedrock_regional_model_pricing():
"cache_creation_input_token_cost_above_200k_tokens": 1.375e-05,
"cache_read_input_token_cost_above_200k_tokens": 1.1e-06,
},
- "eu.anthropic.claude-opus-4-6-v1:0": {
+ "eu.anthropic.claude-opus-4-6-v1": {
"input_cost_per_token": 5.5e-06,
"output_cost_per_token": 2.75e-05,
"cache_creation_input_token_cost": 6.875e-06,
@@ -102,7 +102,7 @@ def test_opus_4_6_bedrock_regional_model_pricing():
"cache_creation_input_token_cost_above_200k_tokens": 1.375e-05,
"cache_read_input_token_cost_above_200k_tokens": 1.1e-06,
},
- "apac.anthropic.claude-opus-4-6-v1:0": {
+ "apac.anthropic.claude-opus-4-6-v1": {
"input_cost_per_token": 5.5e-06,
"output_cost_per_token": 2.75e-05,
"cache_creation_input_token_cost": 6.875e-06,
@@ -128,8 +128,8 @@ def test_opus_4_6_bedrock_regional_model_pricing():
def test_opus_4_6_bedrock_converse_registration():
- assert "anthropic.claude-opus-4-6-v1:0" in litellm.BEDROCK_CONVERSE_MODELS
- assert "global.anthropic.claude-opus-4-6-v1:0" in litellm.bedrock_converse_models
- assert "us.anthropic.claude-opus-4-6-v1:0" in litellm.bedrock_converse_models
- assert "eu.anthropic.claude-opus-4-6-v1:0" in litellm.bedrock_converse_models
- assert "apac.anthropic.claude-opus-4-6-v1:0" in litellm.bedrock_converse_models
+ assert "anthropic.claude-opus-4-6-v1" in litellm.BEDROCK_CONVERSE_MODELS
+ assert "global.anthropic.claude-opus-4-6-v1" in litellm.bedrock_converse_models
+ assert "us.anthropic.claude-opus-4-6-v1" in litellm.bedrock_converse_models
+ assert "eu.anthropic.claude-opus-4-6-v1" in litellm.bedrock_converse_models
+ assert "apac.anthropic.claude-opus-4-6-v1" in litellm.bedrock_converse_models