From 5078ac0ce2f65d3e66f3a764b92985357132b9ea Mon Sep 17 00:00:00 2001 From: Debanjum Date: Mon, 11 Nov 2024 19:16:12 -0800 Subject: [PATCH] Await on conversation save when generate conversation title via API --- src/khoj/routers/api_chat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/khoj/routers/api_chat.py b/src/khoj/routers/api_chat.py index 6752de78..599d6df7 100644 --- a/src/khoj/routers/api_chat.py +++ b/src/khoj/routers/api_chat.py @@ -556,7 +556,7 @@ async def generate_chat_title( conversation.slug = new_title - conversation.asave() + await conversation.asave() return {"status": "ok", "title": new_title}