BedrockChat does not send amazon-bedrock-guardrailConfig when using Anthropic models #7541
Closed
5 tasks done
Labels
auto:bug
Related to a bug, vulnerability, unexpected error with an existing feature
Checked other resources
Example Code
Error Message and Stack Trace (if applicable)
No response
Description
The issue is caused by the return here https://github.com/madmed88/langchainjs/blame/main/libs/langchain-community/src/utils/bedrock/index.ts#L287
that prevents adding the guardrail config to the input here https://github.com/madmed88/langchainjs/blame/main/libs/langchain-community/src/utils/bedrock/index.ts#L314
System Info
This started with @langchain/community 0.2.9
The text was updated successfully, but these errors were encountered: