From 0618153390440960b8c98027f4dc4c9a9b830ec2 Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 14 May 2024 19:01:45 +0100 Subject: [PATCH] fix: object id bug --- application/api/answer/routes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/api/answer/routes.py b/application/api/answer/routes.py index af3c5f0f..6c067d17 100644 --- a/application/api/answer/routes.py +++ b/application/api/answer/routes.py @@ -334,9 +334,9 @@ def api_answer(): ) result = {"answer": response_full, "sources": source_log_docs} - result["conversation_id"] = save_conversation( + result["conversation_id"] = str(save_conversation( conversation_id, question, response_full, source_log_docs, llm - ) + )) return result except Exception as e: