Skip to content

Commit f76f875

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

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

backend/apps/datasource/crud/datasource.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
from apps.db.constant import DB
1414
from apps.db.db import get_tables, get_fields, exec_sql, check_connection
1515
from apps.db.engine import get_engine_config, get_engine_conn
16+
from common.core.config import settings
1617
from common.core.deps import SessionDep, CurrentUser, Trans
1718
from common.utils.utils import deepcopy_ignore_extra
1819
from .table import get_tables_by_ds_id
@@ -402,7 +403,7 @@ def get_table_schema(session: SessionDep, current_user: CurrentUser, ds: CoreDat
402403
all_tables.append(t_obj)
403404

404405
# do table embedding
405-
if embedding and tables:
406+
if embedding and tables and settings.TABLE_EMBEDDING_ENABLED:
406407
tables = get_table_embedding(session, current_user, tables, question)
407408
# splice schema
408409
if tables:

0 commit comments

Comments
 (0)