diff --git a/packages/googlecloud/functions/getanswer/main.py b/packages/googlecloud/functions/getanswer/main.py index 9a29cf00..8630267f 100644 --- a/packages/googlecloud/functions/getanswer/main.py +++ b/packages/googlecloud/functions/getanswer/main.py @@ -101,7 +101,7 @@ def getanswer(request): citations_data = answer.get("citations") end = time.time() - elapsed = math.ceil(end - start) + elapsed = int((end - start) * 1000) update_supabase(responses_data, citations_data, card_id, elapsed) logging.info(f"Completed getanswer in {elapsed} seconds") print(f"\n\t--------- Completed getanswer in {elapsed} seconds --------\n")