Skip to content

Commit

Permalink
Merge pull request #71 from russellb/output-check-fix
Browse files Browse the repository at this point in the history
generate_data: Fix check for `output` in results
  • Loading branch information
russellb authored Jul 8, 2024
2 parents 08938f3 + 8b3b0e7 commit 23f2cb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/instructlab/sdg/generate_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def _get_question(logger, synth_example):
if "question" in synth_example:
return synth_example["question"]

if "output" not in synth_example:
if not synth_example.get("output"):
raise utils.GenerateException(
f"Error: output not found in synth_example: {synth_example}"
)
Expand Down

0 comments on commit 23f2cb7

Please sign in to comment.