Skip to content

Commit a00bb70

Browse files
committed
Fix to cast user_id as string if comes in as integer
1 parent 5ea318b commit a00bb70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lambda/api/lambda_invoke.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ def lambda_handler(event, context):
214214
else:
215215
# Get inference id and user id from request, or generate a new ones
216216
inference_id = body.get("inference_id", str(uuid.uuid4()))
217-
user_id = body.get("user_id", str(uuid.uuid4()))
217+
user_id = str(body.get("user_id", uuid.uuid4()))
218218

219219
if endpoint_variant is None:
220220
try:

0 commit comments

Comments
 (0)