Fix Text2SQL (#2131)

### What problem does this PR solve?

Fix exeSQL component 
Update DB Assistant template 
Fix canvas Message window size

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)

---------

Co-authored-by: Kevin Hu <kevinhu.sh@gmail.com>
This commit is contained in:
H
2024-08-28 14:14:13 +08:00
committed by GitHub
parent 5daed10136
commit b51237be17
3 changed files with 4 additions and 4 deletions

View File

@ -77,7 +77,7 @@ class ExeSQL(ComponentBase, ABC):
except Exception as e:
return ExeSQL.be_output("**Error**: \nDatabase Connection Failed! \n" + str(e))
sql_res = []
for single_sql in re.split(r';', ans):
for single_sql in re.split(r';', ans.replace(r"\n", " ")):
if not single_sql:
continue
try: