mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
feat: check chart config None
This commit is contained in:
@@ -700,6 +700,8 @@ class LLMService:
|
||||
def check_save_chart(self, res: str) -> Dict[str, Any]:
|
||||
|
||||
json_str = extract_nested_json(res)
|
||||
if json_str is None:
|
||||
raise Exception("Cannot parse chart config from answer")
|
||||
data = orjson.loads(json_str)
|
||||
|
||||
chart: Dict[str, Any] = {}
|
||||
|
||||
Reference in New Issue
Block a user