mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-08 03:08:45 +00:00
fix: trust router-owned deployment state
This commit is contained in:
parent
336003cc3b
commit
455879c4e5
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue