We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57f4ded commit ea63d70Copy full SHA for ea63d70
backend/apps/chat/task/llm.py
@@ -672,6 +672,8 @@ def generate_chart(self):
672
self.chart_message]).decode())
673
def check_sql(self, res: str) -> tuple[any]:
674
json_str = extract_nested_json(res)
675
+ if json_str is None:
676
+ raise Exception("Cannot parse sql from answer")
677
data: dict = orjson.loads(json_str)
678
sql = ''
679
message = ''
0 commit comments