Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/utils/llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down