From 3183cbe14604d7771257e1e5a0de936677b46921 Mon Sep 17 00:00:00 2001 From: hujiulong Date: Wed, 25 Dec 2024 18:31:29 +0800 Subject: [PATCH] fix(aws): fix error message output --- libs/langchain-aws/src/common.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/langchain-aws/src/common.ts b/libs/langchain-aws/src/common.ts index 8b0d8e0d2e18..d187b6c3d061 100644 --- a/libs/langchain-aws/src/common.ts +++ b/libs/langchain-aws/src/common.ts @@ -106,7 +106,7 @@ export function convertToConverseMessages(messages: BaseMessage[]): { }; } else { const blockValues = Object.fromEntries( - Object.values(block).filter(([key]) => key !== "type") + Object.entries(block).filter(([key]) => key !== "type") ); throw new Error( `Unsupported content block type: ${