From 9dfb1ad79d1f382ee166ae820a92537d4996a448 Mon Sep 17 00:00:00 2001 From: Junjun Date: Mon, 29 Sep 2025 09:57:15 +0800 Subject: [PATCH] revert settings --- backend/apps/chat/task/llm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/apps/chat/task/llm.py b/backend/apps/chat/task/llm.py index bcffdc11..356e20d6 100644 --- a/backend/apps/chat/task/llm.py +++ b/backend/apps/chat/task/llm.py @@ -418,7 +418,7 @@ class LLMService: full_thinking_text = '' full_text = '' if not ignore_auto_select: - if settings.EMBEDDING_ENABLED: + if settings.TABLE_EMBEDDING_ENABLED: ds = get_ds_embedding(self.session, self.current_user, _ds_list, self.out_ds_instance, self.chat_question.question, self.current_assistant) yield {'content': '{"id":' + str(ds.get('id')) + '}'} @@ -508,7 +508,7 @@ class LLMService: except Exception as e: _error = e - if not ignore_auto_select and not settings.EMBEDDING_ENABLED: + if not ignore_auto_select and not settings.TABLE_EMBEDDING_ENABLED: self.record = save_select_datasource_answer(session=self.session, record_id=self.record.id, answer=orjson.dumps({'content': full_text}).decode(), datasource=_datasource,