-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for Guardrails for Amazon Bedrock #25
Comments
This is the PR : #26 |
fix in #26 |
langchain-aws version used: 0.1.4 Have tried all the below scenarios:
Adding the exception below:
Tried the alternative as below: Got the exception as below: Error Occured: Guardrails must be a dictionary with 'guardrailIdentifier' and 'guardrailVersion' keys. The below option doesn't give any error but eventually has no relevance as the identifier value is None: guardrails={ "trace": False, Please suggest the correct way of passing the guardrail parameter for it to work. PS: I have tested the Guardrail from Bedrock Console and it works like a charm. |
Which version of boto3 are you using? |
Guardrails for Amazon Bedrock since GA has changed the payload when using boto3.
This is the new payload content:
Changes in BedrockBase are needed. I'll also create a PR
The text was updated successfully, but these errors were encountered: