How to implement AWS Guardrails (or get Experimental_LanguageModelV1Middleware working) #2944
-
I have the following guardrail config I want to add to my request to AWS Bedrock:
But I can't seem the right place to add it in I've tried all sorts of combinations of Is this possible to do? I've been looking into the Language Model Middleware documentation, but I get an error if I try to import the I think I'm up to date with the No doubt I've missed something basic, but any help would be really appreciated, thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I've just bumped to 3.3.31 and I can now export the Once I've got something useful, I'll raise a request in the repo 👍 |
Beta Was this translation helpful? Give feedback.
-
Guardrails are available in https://sdk.vercel.ai/providers/ai-sdk-providers/amazon-bedrock#guardrails |
Beta Was this translation helpful? Give feedback.
Guardrails are available in
@ai-sdk/[email protected]
https://sdk.vercel.ai/providers/ai-sdk-providers/amazon-bedrock#guardrails