diff --git a/integrations/amazon_bedrock/src/haystack_integrations/components/generators/amazon_bedrock/chat/chat_generator.py b/integrations/amazon_bedrock/src/haystack_integrations/components/generators/amazon_bedrock/chat/chat_generator.py index a834fec87..499fe1c24 100644 --- a/integrations/amazon_bedrock/src/haystack_integrations/components/generators/amazon_bedrock/chat/chat_generator.py +++ b/integrations/amazon_bedrock/src/haystack_integrations/components/generators/amazon_bedrock/chat/chat_generator.py @@ -222,7 +222,7 @@ def run( system_prompts = [{"text": messages[0].text}] messages = messages[1:] - messages_list = [{"role": msg.role.value, "content": [{"text": msg.content}]} for msg in messages] + messages_list = [{"role": msg.role.value, "content": [{"text": msg.text}]} for msg in messages] # Build API parameters params = {