diff --git a/src/utils/llm.py b/src/utils/llm.py index c7535d5d2..eb82832f3 100644 --- a/src/utils/llm.py +++ b/src/utils/llm.py @@ -116,6 +116,8 @@ def extract_json_from_response(content: str) -> dict | None: if json_end != -1: json_text = json_text[:json_end].strip() return json.loads(json_text) + # Try to extract json directly + return json.loads(content) except Exception as e: print(f"Error extracting JSON from response: {e}") return None