Skip to content
Closed
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
4 changes: 2 additions & 2 deletions flo_ai/flo_ai/state/flo_json_output_collector.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import json
import regex
import re
from flo_ai.error.flo_exception import FloException
from typing import Dict, List, Any
from flo_ai.common.flo_logger import get_logger
Expand Down Expand Up @@ -64,7 +64,7 @@ def __strip_comments(self, json_str: str) -> str:

def __extract_jsons(self, llm_response):
json_pattern = r'\{(?:[^{}]|(?R))*\}'
json_matches = regex.findall(json_pattern, llm_response)
json_matches = re.findall(json_pattern, llm_response)
json_object = {}
for json_str in json_matches:
try:
Expand Down
Loading