This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new 16dcf077e4d Camel-AWS-Bedrock: Set result body as invoke model Message
body (#13324)
16dcf077e4d is described below
commit 16dcf077e4d760c603536744f93deab8430391c4
Author: Andrea Cosentino <[email protected]>
AuthorDate: Tue Feb 27 14:04:55 2024 +0100
Camel-AWS-Bedrock: Set result body as invoke model Message body (#13324)
Signed-off-by: Andrea Cosentino <[email protected]>
---
.../java/org/apache/camel/component/aws2/bedrock/BedrockProducer.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/BedrockProducer.java
b/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/BedrockProducer.java
index d38aa64e4ff..3cda98dce7a 100644
---
a/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/BedrockProducer.java
+++
b/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/BedrockProducer.java
@@ -120,7 +120,7 @@ public class BedrockProducer extends DefaultProducer {
throw ase;
}
Message message = getMessageForResponse(exchange);
- message.setBody(result);
+ message.setBody(result.body().asUtf8String());
}
}