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