Skip to content

Commit

Permalink
Merge pull request #227 from UIUC-Chatbot/nomic-fix-3
Browse files Browse the repository at this point in the history
Nomic Conversation Log Fix
  • Loading branch information
star-nox authored Feb 28, 2024
2 parents 0f5b660 + eeff121 commit 73ee134
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ai_ta_backend/nomic_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,10 @@ def log_convo_to_nomic(course_name: str, conversation) -> str:
print("type of conversation:", type(conversation))
#conversation = json.loads(conversation)
messages = conversation['conversation']['messages']
user_email = conversation['conversation']['user_email']
if 'user_email' not in conversation['conversation']:
user_email = "NULL"
else:
user_email = conversation['conversation']['user_email']
conversation_id = conversation['conversation']['id']

# we have to upload whole conversations
Expand Down

0 comments on commit 73ee134

Please sign in to comment.