Skip to content

Commit 9dfb1ad

Browse files
XiaJunjie2020fit2cloud-chenyw
authored andcommitted
revert settings
1 parent c2531c3 commit 9dfb1ad

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
@@ -418,7 +418,7 @@ def select_datasource(self):
418418
full_thinking_text = ''
419419
full_text = ''
420420
if not ignore_auto_select:
421-
if settings.EMBEDDING_ENABLED:
421+
if settings.TABLE_EMBEDDING_ENABLED:
422422
ds = get_ds_embedding(self.session, self.current_user, _ds_list, self.out_ds_instance,
423423
self.chat_question.question, self.current_assistant)
424424
yield {'content': '{"id":' + str(ds.get('id')) + '}'}
@@ -508,7 +508,7 @@ def select_datasource(self):
508508
except Exception as e:
509509
_error = e
510510

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

0 commit comments

Comments
 (0)