Skip to content

Commit

Permalink
minor changes to exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
liamjxu committed Nov 5, 2024
1 parent f542292 commit 490501a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helm/benchmark/metrics/ifeval_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def evaluate_generation(
instruction_kwargs = request_state.instance.extra_data["instruction_kwargs"]
assert len(instruction_ids) > 0
assert request_state.result
assert len(request_state.result.completions) == 1, len(request_state.result.completions)
assert len(request_state.result.completions) == 1, f"Got {len(request_state.result.completions)} completions"
response = request_state.result.completions[0].text.strip()

# The following logic was reproduced with minor modifications from the following URL:
Expand Down

0 comments on commit 490501a

Please sign in to comment.