Skip to content

Commit 42a7e83

Browse files
revert settings
1 parent 865869d commit 42a7e83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/apps/chat/task/llm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ def select_datasource(self):
406406
full_thinking_text = ''
407407
full_text = ''
408408
if not ignore_auto_select:
409-
if settings.EMBEDDING_ENABLED:
409+
if settings.TABLE_EMBEDDING_ENABLED:
410410
ds = get_ds_embedding(self.session, self.current_user, _ds_list, self.out_ds_instance,
411411
self.chat_question.question, self.current_assistant)
412412
yield {'content': '{"id":' + str(ds.get('id')) + '}'}
@@ -496,7 +496,7 @@ def select_datasource(self):
496496
except Exception as e:
497497
_error = e
498498

499-
if not ignore_auto_select and not settings.EMBEDDING_ENABLED:
499+
if not ignore_auto_select and not settings.TABLE_EMBEDDING_ENABLED:
500500
self.record = save_select_datasource_answer(session=self.session, record_id=self.record.id,
501501
answer=orjson.dumps({'content': full_text}).decode(),
502502
datasource=_datasource,

0 commit comments

Comments
 (0)