diff --git a/packages/googlecloud/functions/getanswer/main.py b/packages/googlecloud/functions/getanswer/main.py index 31e7110c..07717e30 100644 --- a/packages/googlecloud/functions/getanswer/main.py +++ b/packages/googlecloud/functions/getanswer/main.py @@ -105,9 +105,14 @@ def getanswer(request): logging.error(f"Failed to parse answer string to JSON: {e}") return ("Failed to process answer", 500, headers) + print(f"Answer: {answer}") responses_data = answer.get("responses") + + print(f"Responses: {responses_data}") citations_data = answer.get("citations") + print(f"Citations: {citations_data}") + end = time.time() elapsed = int((end - start) * 1000) update_supabase(responses_data, citations_data, card_id, elapsed)