We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d0406a1 commit 5b7272dCopy full SHA for 5b7272d
2 files changed
backend/apps/chat/task/llm.py
@@ -802,7 +802,7 @@ def run_task(self, in_chat: bool = True):
802
SQLBotLogUtil.info(full_sql_text)
803
804
# todo row permission
805
- if is_normal_user(self.current_user):
+ if is_normal_user(self.current_user) and not self.current_assistant:
806
sql_json_str = extract_nested_json(full_sql_text)
807
data = orjson.loads(sql_json_str)
808
backend/apps/system/crud/assistant.py
@@ -192,6 +192,7 @@ def get_ds_engine(ds: AssistantOutDsSchema) -> Engine:
192
extraJdbc=ds.extraParams,
193
dbSchema=ds.db_schema or ''
194
)
195
+ conf.extraJdbc = ''
196
from apps.db.db import get_uri_from_config
197
uri = get_uri_from_config(ds.type, conf)
198
if ds.type == "pg" and ds.db_schema:
0 commit comments