perf: Assistant dynamic ds

This commit is contained in:
fit2cloud-chenyw
2025-07-28 21:39:15 +08:00
parent d0406a10cf
commit 5b7272d584
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -802,7 +802,7 @@ class LLMService:
SQLBotLogUtil.info(full_sql_text)
# todo row permission
if is_normal_user(self.current_user):
if is_normal_user(self.current_user) and not self.current_assistant:
sql_json_str = extract_nested_json(full_sql_text)
data = orjson.loads(sql_json_str)
+1
View File
@@ -192,6 +192,7 @@ def get_ds_engine(ds: AssistantOutDsSchema) -> Engine:
extraJdbc=ds.extraParams,
dbSchema=ds.db_schema or ''
)
conf.extraJdbc = ''
from apps.db.db import get_uri_from_config
uri = get_uri_from_config(ds.type, conf)
if ds.type == "pg" and ds.db_schema: