mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-16 06:30:02 +00:00
refactor: Refactor datasource module (#1309)
This commit is contained in:
@@ -37,7 +37,7 @@ class ChatWithDbAutoExecute(BaseChat):
|
||||
with root_tracer.start_span(
|
||||
"ChatWithDbAutoExecute.get_connect", metadata={"db_name": self.db_name}
|
||||
):
|
||||
self.database = CFG.LOCAL_DB_MANAGE.get_connect(self.db_name)
|
||||
self.database = CFG.local_db_manager.get_connector(self.db_name)
|
||||
|
||||
self.top_k: int = 50
|
||||
self.api_call = ApiCall(display_registry=CFG.command_display)
|
||||
|
Reference in New Issue
Block a user