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,