From 5c83d72bb512695bacd385a3cd1eb9724e94fc85 Mon Sep 17 00:00:00 2001 From: madmed Date: Fri, 17 Jan 2025 09:19:48 -0500 Subject: [PATCH] make sure guardrailConfig can be added even with anthropic models --- libs/langchain-community/src/utils/bedrock/index.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/libs/langchain-community/src/utils/bedrock/index.ts b/libs/langchain-community/src/utils/bedrock/index.ts index 9b3203e8ce76..c59692943049 100644 --- a/libs/langchain-community/src/utils/bedrock/index.ts +++ b/libs/langchain-community/src/utils/bedrock/index.ts @@ -284,7 +284,6 @@ export class BedrockLLMInputOutputAdapter { if (tools.length > 0) { inputBody.tools = tools; } - return { ...inputBody, ...modelKwargs }; } else if (provider === "cohere") { const { system,