diff --git a/litellm/model_prices_and_context_window_backup.json b/litellm/model_prices_and_context_window_backup.json index 95adfda8c49..a510d846a16 100644 --- a/litellm/model_prices_and_context_window_backup.json +++ b/litellm/model_prices_and_context_window_backup.json @@ -1809,6 +1809,7 @@ } }, "anthropic.claude-fable-5": { + "bedrock_converse_supports_strict_tools": false, "cache_creation_input_token_cost": 1.25e-05, "cache_creation_input_token_cost_above_1hr": 2e-05, "cache_read_input_token_cost": 1e-06, @@ -1851,6 +1852,7 @@ } }, "anthropic.claude-fable-5-1": { + "bedrock_converse_supports_strict_tools": false, "cache_creation_input_token_cost": 1.25e-05, "cache_creation_input_token_cost_above_1hr": 2e-05, "cache_read_input_token_cost": 2.5e-07, @@ -1889,6 +1891,7 @@ "source": "https://pricing.us-east-1.amazonaws.com/offers/v1.0/aws/AmazonBedrockFoundationModels/current/index.json" }, "global.anthropic.claude-fable-5": { + "bedrock_converse_supports_strict_tools": false, "cache_creation_input_token_cost": 1.25e-05, "cache_creation_input_token_cost_above_1hr": 2e-05, "cache_read_input_token_cost": 1e-06, @@ -1931,6 +1934,7 @@ } }, "global.anthropic.claude-fable-5-1": { + "bedrock_converse_supports_strict_tools": false, "cache_creation_input_token_cost": 1.25e-05, "cache_creation_input_token_cost_above_1hr": 2e-05, "cache_read_input_token_cost": 2.5e-07, @@ -1969,6 +1973,7 @@ "source": "https://aws.amazon.com/bedrock/pricing/" }, "us.anthropic.claude-fable-5": { + "bedrock_converse_supports_strict_tools": false, "cache_creation_input_token_cost": 1.375e-05, "cache_creation_input_token_cost_above_1hr": 2.2e-05, "cache_read_input_token_cost": 1.1e-06, @@ -2011,6 +2016,7 @@ } }, "us.anthropic.claude-fable-5-1": { + "bedrock_converse_supports_strict_tools": false, "cache_creation_input_token_cost": 1.375e-05, "cache_creation_input_token_cost_above_1hr": 2.2e-05, "cache_read_input_token_cost": 2.75e-07, @@ -2049,6 +2055,7 @@ "source": "https://aws.amazon.com/bedrock/pricing/" }, "eu.anthropic.claude-fable-5": { + "bedrock_converse_supports_strict_tools": false, "cache_creation_input_token_cost": 1.375e-05, "cache_creation_input_token_cost_above_1hr": 2.2e-05, "cache_read_input_token_cost": 1.1e-06, @@ -2086,6 +2093,7 @@ "source": "https://aws.amazon.com/bedrock/pricing/" }, "eu.anthropic.claude-fable-5-1": { + "bedrock_converse_supports_strict_tools": false, "cache_creation_input_token_cost": 1.375e-05, "cache_creation_input_token_cost_above_1hr": 2.2e-05, "cache_read_input_token_cost": 2.75e-07, @@ -50700,6 +50708,7 @@ } }, "us-gov.anthropic.claude-fable-5-1": { + "bedrock_converse_supports_strict_tools": false, "cache_creation_input_token_cost": 1.5e-05, "cache_creation_input_token_cost_above_1hr": 2.4e-05, "cache_read_input_token_cost": 3e-07, @@ -75423,6 +75432,7 @@ } }, "apac.anthropic.claude-fable-5": { + "bedrock_converse_supports_strict_tools": false, "litellm_provider": "bedrock_converse", "max_input_tokens": 1000000, "max_output_tokens": 128000, @@ -75455,6 +75465,7 @@ "source": "https://pricing.us-east-1.amazonaws.com/offers/v1.0/aws/AmazonBedrockFoundationModels/current/index.json" }, "au.anthropic.claude-fable-5": { + "bedrock_converse_supports_strict_tools": false, "litellm_provider": "bedrock_converse", "max_input_tokens": 1000000, "max_output_tokens": 128000, diff --git a/model_prices_and_context_window.json b/model_prices_and_context_window.json index 95adfda8c49..a510d846a16 100644 --- a/model_prices_and_context_window.json +++ b/model_prices_and_context_window.json @@ -1809,6 +1809,7 @@ } }, "anthropic.claude-fable-5": { + "bedrock_converse_supports_strict_tools": false, "cache_creation_input_token_cost": 1.25e-05, "cache_creation_input_token_cost_above_1hr": 2e-05, "cache_read_input_token_cost": 1e-06, @@ -1851,6 +1852,7 @@ } }, "anthropic.claude-fable-5-1": { + "bedrock_converse_supports_strict_tools": false, "cache_creation_input_token_cost": 1.25e-05, "cache_creation_input_token_cost_above_1hr": 2e-05, "cache_read_input_token_cost": 2.5e-07, @@ -1889,6 +1891,7 @@ "source": "https://pricing.us-east-1.amazonaws.com/offers/v1.0/aws/AmazonBedrockFoundationModels/current/index.json" }, "global.anthropic.claude-fable-5": { + "bedrock_converse_supports_strict_tools": false, "cache_creation_input_token_cost": 1.25e-05, "cache_creation_input_token_cost_above_1hr": 2e-05, "cache_read_input_token_cost": 1e-06, @@ -1931,6 +1934,7 @@ } }, "global.anthropic.claude-fable-5-1": { + "bedrock_converse_supports_strict_tools": false, "cache_creation_input_token_cost": 1.25e-05, "cache_creation_input_token_cost_above_1hr": 2e-05, "cache_read_input_token_cost": 2.5e-07, @@ -1969,6 +1973,7 @@ "source": "https://aws.amazon.com/bedrock/pricing/" }, "us.anthropic.claude-fable-5": { + "bedrock_converse_supports_strict_tools": false, "cache_creation_input_token_cost": 1.375e-05, "cache_creation_input_token_cost_above_1hr": 2.2e-05, "cache_read_input_token_cost": 1.1e-06, @@ -2011,6 +2016,7 @@ } }, "us.anthropic.claude-fable-5-1": { + "bedrock_converse_supports_strict_tools": false, "cache_creation_input_token_cost": 1.375e-05, "cache_creation_input_token_cost_above_1hr": 2.2e-05, "cache_read_input_token_cost": 2.75e-07, @@ -2049,6 +2055,7 @@ "source": "https://aws.amazon.com/bedrock/pricing/" }, "eu.anthropic.claude-fable-5": { + "bedrock_converse_supports_strict_tools": false, "cache_creation_input_token_cost": 1.375e-05, "cache_creation_input_token_cost_above_1hr": 2.2e-05, "cache_read_input_token_cost": 1.1e-06, @@ -2086,6 +2093,7 @@ "source": "https://aws.amazon.com/bedrock/pricing/" }, "eu.anthropic.claude-fable-5-1": { + "bedrock_converse_supports_strict_tools": false, "cache_creation_input_token_cost": 1.375e-05, "cache_creation_input_token_cost_above_1hr": 2.2e-05, "cache_read_input_token_cost": 2.75e-07, @@ -50700,6 +50708,7 @@ } }, "us-gov.anthropic.claude-fable-5-1": { + "bedrock_converse_supports_strict_tools": false, "cache_creation_input_token_cost": 1.5e-05, "cache_creation_input_token_cost_above_1hr": 2.4e-05, "cache_read_input_token_cost": 3e-07, @@ -75423,6 +75432,7 @@ } }, "apac.anthropic.claude-fable-5": { + "bedrock_converse_supports_strict_tools": false, "litellm_provider": "bedrock_converse", "max_input_tokens": 1000000, "max_output_tokens": 128000, @@ -75455,6 +75465,7 @@ "source": "https://pricing.us-east-1.amazonaws.com/offers/v1.0/aws/AmazonBedrockFoundationModels/current/index.json" }, "au.anthropic.claude-fable-5": { + "bedrock_converse_supports_strict_tools": false, "litellm_provider": "bedrock_converse", "max_input_tokens": 1000000, "max_output_tokens": 128000, diff --git a/tests/unit/litellm_core_utils/prompt_templates/test_bedrock_converse_strict_tools_opus_47_48.py b/tests/unit/litellm_core_utils/prompt_templates/test_bedrock_converse_strict_tools_opus_47_48.py index 83ee3437429..d668d11c007 100644 --- a/tests/unit/litellm_core_utils/prompt_templates/test_bedrock_converse_strict_tools_opus_47_48.py +++ b/tests/unit/litellm_core_utils/prompt_templates/test_bedrock_converse_strict_tools_opus_47_48.py @@ -67,12 +67,23 @@ _NON_STRICT_TOOL = [ "bedrock/us.anthropic.claude-sonnet-5", "bedrock/eu.anthropic.claude-sonnet-5", "bedrock/jp.anthropic.claude-sonnet-5", + "anthropic.claude-fable-5", + "bedrock/us.anthropic.claude-fable-5", + "bedrock/eu.anthropic.claude-fable-5", + "bedrock/global.anthropic.claude-fable-5", + "bedrock/apac.anthropic.claude-fable-5", + "bedrock/au.anthropic.claude-fable-5", + "anthropic.claude-fable-5-1", + "bedrock/us.anthropic.claude-fable-5-1", + "bedrock/eu.anthropic.claude-fable-5-1", + "bedrock/global.anthropic.claude-fable-5-1", + "bedrock/us-gov.anthropic.claude-fable-5-1", ], ) def test_bedrock_tools_pt_strict_dropped_for_strict_unsupported_models( model_id: str, ) -> None: - """Opus 4.7/4.8, Sonnet 4 and Sonnet 5 reject toolSpec.strict and additionalProperties.""" + """Opus 4.7/4.8, Sonnet 4, Sonnet 5, and Fable 5 reject toolSpec.strict and additionalProperties.""" result = _bedrock_tools_pt(_STRICT_TOOL, model=model_id) tool_spec = result[0]["toolSpec"] assert (