Skip to content

Commit

Permalink
Update integrations/amazon_bedrock/src/haystack_integrations/componen…
Browse files Browse the repository at this point in the history
…ts/generators/amazon_bedrock/chat/chat_generator.py

Co-authored-by: Stefano Fiorucci <[email protected]>
  • Loading branch information
vblagoje and anakin87 authored Dec 10, 2024
1 parent 0a318d1 commit a16d3d7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit a16d3d7

Please sign in to comment.