From a285b8628cc4051deed20be607d456a95bb633d6 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Wed, 30 Jul 2025 22:32:05 +0800 Subject: [PATCH] fix: validate ds --- backend/apps/chat/task/llm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/apps/chat/task/llm.py b/backend/apps/chat/task/llm.py index b208f4e2..f5d8c68d 100644 --- a/backend/apps/chat/task/llm.py +++ b/backend/apps/chat/task/llm.py @@ -1032,7 +1032,7 @@ class LLMService: def validate_history_ds(self): _ds = self.ds if not self.current_assistant: - current_ds = self.session.exec(CoreDatasource, _ds.id) + current_ds = self.session.get(CoreDatasource, _ds.id) if not current_ds: raise Exception('ds is invalid') else: