mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
Merge remote-tracking branch 'origin/main'
This commit is contained in:
@@ -672,6 +672,8 @@ class LLMService:
|
||||
self.chart_message]).decode())
|
||||
def check_sql(self, res: str) -> tuple[any]:
|
||||
json_str = extract_nested_json(res)
|
||||
if json_str is None:
|
||||
raise Exception("Cannot parse sql from answer")
|
||||
data: dict = orjson.loads(json_str)
|
||||
sql = ''
|
||||
message = ''
|
||||
|
||||
Reference in New Issue
Block a user