From 991577aa17de8cb026e53fea76b7d81d066bd6e8 Mon Sep 17 00:00:00 2001 From: sabaimran Date: Sat, 30 Nov 2024 14:39:08 -0800 Subject: [PATCH] Allow a None turnId to accommodate historic chat messages --- src/khoj/database/models/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/khoj/database/models/__init__.py b/src/khoj/database/models/__init__.py index 88b15404..521eee9b 100644 --- a/src/khoj/database/models/__init__.py +++ b/src/khoj/database/models/__init__.py @@ -110,7 +110,7 @@ class ChatMessage(PydanticBaseModel): queryFiles: Optional[List[Dict]] = None excalidrawDiagram: Optional[List[Dict]] = None by: str - turnId: Optional[str] + turnId: Optional[str] = None intent: Optional[Intent] = None automationId: Optional[str] = None