BUGFIX: Update bedrock.py to fix provider bug (#13646)

Provider check was incorrectly failing for anything other than "meta"
This commit is contained in:
David Ruan
2023-11-22 09:28:38 +08:00
committed by GitHub
parent aec8715073
commit 04bddbaba4

View File

@@ -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(