From fc3f7cec51956d5cd6f7ca760c5a76d80d5bb481 Mon Sep 17 00:00:00 2001 From: Adithya Suresh Date: Tue, 8 Apr 2025 02:52:37 +0000 Subject: [PATCH] Bug fix in content format --- src/pipecat/services/aws/llm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pipecat/services/aws/llm.py b/src/pipecat/services/aws/llm.py index 2cca54c52..fa33e26b3 100644 --- a/src/pipecat/services/aws/llm.py +++ b/src/pipecat/services/aws/llm.py @@ -310,7 +310,7 @@ class BedrockLLMContext(OpenAILLMContext): # in the proper format if isinstance(self.messages[-1]["content"], str): self.messages[-1]["content"] = [ - {"type": "text", "text": self.messages[-1]["content"]} + {"text": self.messages[-1]["content"]} ] # if this message has just a content string, convert it to a list # in the proper format