Skip to content

Commit aa58f0f

Browse files
committed
handler return dict
1 parent fb7656e commit aa58f0f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ def handler(event: JsonType, context):
5151
# Create a response
5252
response = {
5353
"statusCode": 200,
54-
"body": chatbot_response
54+
"body": json.dumps(chatbot_response)
5555
}
5656

57-
# print("Response:", json.dumps(response, indent=2))
57+
print("Response:", json.dumps(response, indent=2))
5858

59-
return json.dumps(response)
59+
return response

0 commit comments

Comments
 (0)