Skip to content

Commit

Permalink
serialize response
Browse files Browse the repository at this point in the history
  • Loading branch information
joelbalcaen committed Apr 26, 2024
1 parent 7e387e8 commit 135313b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lambdas/bedrock_invoker/src/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ def lambda_handler(event, context):
'body': str(e)
}

response_body = response['Body'].read().decode('utf-8')

return {
'statusCode': 200,
'body': response
'body': response_body
}

0 comments on commit 135313b

Please sign in to comment.