From c982756f7f7a1dad180f488bacbff45378f83f62 Mon Sep 17 00:00:00 2001 From: Joel Balcaen Date: Fri, 26 Apr 2024 09:11:28 -0300 Subject: [PATCH] access body kety --- lambdas/bedrock_invoker/src/index.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lambdas/bedrock_invoker/src/index.py b/lambdas/bedrock_invoker/src/index.py index 4022b4e..13e80e8 100644 --- a/lambdas/bedrock_invoker/src/index.py +++ b/lambdas/bedrock_invoker/src/index.py @@ -68,8 +68,8 @@ def lambda_handler(event, context): ) print(response) - print(response['Body']) - response_body = response['Body'].read().decode('utf-8') + print(response['body']) + response_body = response['body'].read().decode('utf-8') print(response_body) return { 'statusCode': 200,