Implemented a new multi-scenario dialogue architecture

This commit is contained in:
yhjun1026
2023-05-31 15:59:50 +08:00
parent 973bcce03c
commit 06bc4452d4
35 changed files with 905 additions and 743 deletions

View File

@@ -277,6 +277,7 @@ class Database:
def run(self, session, command: str, fetch: str = "all") -> List:
"""Execute a SQL command and return a string representing the results."""
print("sql run:" + command)
cursor = session.execute(text(command))
if cursor.returns_rows:
if fetch == "all":