revert settings

This commit is contained in:
Junjun
2025-09-29 10:24:05 +08:00
committed by fit2cloud-chenyw
parent c2531c33f0
commit 9dfb1ad79d
+2 -2
View File
@@ -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,