feat: check chart config None

This commit is contained in:
ulleo
2025-07-30 16:54:20 +08:00
parent caf05aa1a5
commit 0bf09bfb64
+2
View File
@@ -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] = {}