From 04bddbaba4b643cd000a11b94aba0ba0f568674c Mon Sep 17 00:00:00 2001 From: David Ruan Date: Wed, 22 Nov 2023 09:28:38 +0800 Subject: [PATCH] BUGFIX: Update bedrock.py to fix provider bug (#13646) Provider check was incorrectly failing for anything other than "meta" --- libs/langchain/langchain/chat_models/bedrock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/langchain/langchain/chat_models/bedrock.py b/libs/langchain/langchain/chat_models/bedrock.py index 011a7d372de..546562fa26d 100644 --- a/libs/langchain/langchain/chat_models/bedrock.py +++ b/libs/langchain/langchain/chat_models/bedrock.py @@ -28,7 +28,7 @@ class ChatPromptAdapter: ) -> str: if provider == "anthropic": prompt = convert_messages_to_prompt_anthropic(messages=messages) - if provider == "meta": + elif provider == "meta": prompt = convert_messages_to_prompt_llama(messages=messages) else: raise NotImplementedError(