From 696e1c3c87ca95d811c2014b8acedd88cc6c3b9e Mon Sep 17 00:00:00 2001 From: mateo Date: Tue, 20 Oct 2026 17:45:30 +0000 Subject: [PATCH] fix(bedrock): add Claude Mantle model helper Minimal prerequisite from #43646 for stable/1.104.x. Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> (cherry picked from commit 6a801372ac54cbe405bef4692007bb0347f84680) --- litellm/llms/bedrock_mantle/common_utils.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/litellm/llms/bedrock_mantle/common_utils.py b/litellm/llms/bedrock_mantle/common_utils.py index 9892ef6224e..7e929f607dd 100644 --- a/litellm/llms/bedrock_mantle/common_utils.py +++ b/litellm/llms/bedrock_mantle/common_utils.py @@ -45,6 +45,10 @@ def split_mantle_region_prefix(model: str) -> tuple[str | None, str]: return None, model +def is_mantle_claude_model(model: str) -> bool: + return "claude" in model.lower() + + def resolve_mantle_region(params: Mapping[str, object]) -> str: region: Final = params.get("aws_region_name") if isinstance(region, str) and region: