mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-09 03:18:44 +00:00
Update bedrock guardrail docs (#11826)
Added the `aws_region_name` and `aws_role_name` keys to the definition of a guardrail config.
Without these you will get the error `{\"message\":\"The guardrail identifier or version provided in the request does not exist.\"}`
This commit is contained in:
parent
3c7399e7ec
commit
8bcf163b83
1 changed files with 6 additions and 2 deletions
|
|
@ -22,8 +22,10 @@ guardrails:
|
|||
litellm_params:
|
||||
guardrail: bedrock # supported values: "aporia", "bedrock", "lakera"
|
||||
mode: "during_call"
|
||||
guardrailIdentifier: ff6ujrregl1q # your guardrail ID on bedrock
|
||||
guardrailVersion: "DRAFT" # your guardrail version on bedrock
|
||||
guardrailIdentifier: ff6ujrregl1q # your guardrail ID on bedrock
|
||||
guardrailVersion: "DRAFT" # your guardrail version on bedrock
|
||||
aws_region_name: os.environ/AWS_REGION # region guardrail is defined
|
||||
aws_role_name: os.environ/AWS_ROLE_ARN # your role with permissions to use the guardrail
|
||||
|
||||
```
|
||||
|
||||
|
|
@ -158,6 +160,8 @@ guardrails:
|
|||
mode: "pre_call" # Important: must use pre_call mode for masking
|
||||
guardrailIdentifier: wf0hkdb5x07f
|
||||
guardrailVersion: "DRAFT"
|
||||
aws_region_name: os.environ/AWS_REGION
|
||||
aws_role_name: os.environ/AWS_ROLE_ARN
|
||||
mask_request_content: true # Enable masking in user requests
|
||||
mask_response_content: true # Enable masking in model responses
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue