Skip to content
Open
Show file tree
Hide file tree
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
11 changes: 11 additions & 0 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion workers/executor/executors/answer_prompt.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,11 @@ def handle_json(
structured_output[prompt_key] = None
return

parsed_data = repair_json_with_best_structure(answer)
# _run_completion has already stamped the hash onto this same metadata
# dict, so it is present by the time the repair runs.
parsed_data = repair_json_with_best_structure(
answer, whisper_hash=(metadata or {}).get(PSKeys.WHISPER_HASH)
)
if not isinstance(parsed_data, (dict, list)):
logger.error("Error parsing response to JSON")
structured_output[prompt_key] = {}
Expand Down
Loading
Loading