From 788639276861927937006393a0be2b1d34c0d4af Mon Sep 17 00:00:00 2001 From: ulleo Date: Wed, 30 Jul 2025 15:17:02 +0800 Subject: [PATCH] fix: select_datasource id error --- 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 b0ec1cfb..fcaf3bed 100644 --- a/backend/apps/chat/task/llm.py +++ b/backend/apps/chat/task/llm.py @@ -439,7 +439,7 @@ class LLMService: _ds = self.out_ds_instance.get_ds(data['id']) self.ds = _ds self.chat_question.engine = _ds.type - self.chat_question.db_schema = self.out_ds_instance.get_db_schema(ds.id) + self.chat_question.db_schema = self.out_ds_instance.get_db_schema(self.ds.id) _engine_type = self.chat_question.engine _chat.engine_type = _ds.type else: