From 8bd416a601744eeb2cbe1b283f3efdbd14961839 Mon Sep 17 00:00:00 2001 From: Asmita Dabholkar Date: Tue, 30 Jan 2024 19:21:32 -0600 Subject: [PATCH] Hotfix Nomic conversation log (#208) * testing onResponseCompletion * commented json.loads() inside log function --- ai_ta_backend/nomic_logging.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ai_ta_backend/nomic_logging.py b/ai_ta_backend/nomic_logging.py index 604041da..43946bee 100644 --- a/ai_ta_backend/nomic_logging.py +++ b/ai_ta_backend/nomic_logging.py @@ -64,7 +64,8 @@ def log_convo_to_nomic(course_name: str, conversation) -> str: """ print(f"in log_convo_to_nomic() for course: {course_name}") - conversation = json.loads(conversation) + print("type of conversation:", type(conversation)) + #conversation = json.loads(conversation) messages = conversation['conversation']['messages'] user_email = conversation['conversation']['user_email'] conversation_id = conversation['conversation']['id']