diff --git a/litellm/proxy/guardrails/guardrail_hooks/bedrock_guardrails.py b/litellm/proxy/guardrails/guardrail_hooks/bedrock_guardrails.py index 18a259b1eb3..bcd0ef738c7 100644 --- a/litellm/proxy/guardrails/guardrail_hooks/bedrock_guardrails.py +++ b/litellm/proxy/guardrails/guardrail_hooks/bedrock_guardrails.py @@ -838,7 +838,7 @@ class BedrockGuardrail(CustomGuardrail, BaseAWSLLM): return False selected_deployment: Final[object | None] = request_data.get("deployment") - if selected_deployment is not None: + if selected_deployment is not None and not isinstance(selected_deployment, Mapping): selected_provider: Final[str | None] = BedrockGuardrail._router_deployment_provider(selected_deployment) return selected_provider in ("bedrock", "bedrock_converse") if selected_provider is not None else False