Skip to content

Commit

Permalink
Hotfix Nomic conversation log (#208)
Browse files Browse the repository at this point in the history
* testing onResponseCompletion

* commented json.loads() inside log function
  • Loading branch information
star-nox authored Jan 31, 2024
1 parent dffc85e commit 8bd416a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ai_ta_backend/nomic_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down

0 comments on commit 8bd416a

Please sign in to comment.