mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
revert settings
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user