Skip to content

Improved JSON Parsing Error Handling#2440

Open
yzhao244 wants to merge 1 commit intoconfident-ai:mainfrom
yzhao244:json-parse-improvement
Open

Improved JSON Parsing Error Handling#2440
yzhao244 wants to merge 1 commit intoconfident-ai:mainfrom
yzhao244:json-parse-improvement

Conversation

@yzhao244
Copy link
Contributor

Improved JSON Parsing Error Handling

  • File: deepeval/openai/utils.py
  • Issue: json.loads(arguments) could raise JSONDecodeError if arguments string is invalid JSON
  • Fix: Added try-except block to handle JSON parsing errors gracefully, falling back to empty dict or raw value

Signed-off-by: Yuri Zhao <yu.zhao5@huawei.com>
@greptile-apps
Copy link
Contributor

greptile-apps bot commented Jan 17, 2026

Skipped: This PR was not opened by one of your configured authors: (tanayvaswani, trevor-cai, kritinv, ...)

@vercel
Copy link

vercel bot commented Jan 17, 2026

@yzhao244 is attempting to deploy a commit to the Confident AI Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant