We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent de7d557 commit fb137daCopy full SHA for fb137da
1 file changed
workers/executor/executors/answer_prompt.py
@@ -333,7 +333,7 @@ def handle_json(
333
return
334
335
parsed_data = repair_json_with_best_structure(answer)
336
- if isinstance(parsed_data, str):
+ if not isinstance(parsed_data, (dict, list)):
337
logger.error("Error parsing response to JSON")
338
structured_output[prompt_key] = {}
339
0 commit comments