Skip to content

Commit

Permalink
fixed json decode error
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonalaird committed Aug 24, 2024
1 parent f30969a commit cea438b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vision_agent/agent/agent_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

def extract_json(json_str: str) -> Dict[str, Any]:
try:
json_str = json_str.replace("\n", " ")
json_dict = json.loads(json_str)
except json.JSONDecodeError:
if "```json" in json_str:
Expand Down

0 comments on commit cea438b

Please sign in to comment.