Skip to content

Commit

Permalink
update exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
sjadler2004 committed Sep 30, 2024
1 parent 2f38c39 commit 55aa69d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion evals/cli/oaieval.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def to_number(x: str) -> Union[int, float, str]:
try:
add_token_usage_to_result(result, recorder)
except Exception as e:
logger.error(f"Failed to add token usage to result: {e}")
logger.error(f"Failed to add token usage to result: {e}. Eval results will be reported and are not affected.")
recorder.record_final_report(result)

if not (args.dry_run or args.local_run):
Expand Down

0 comments on commit 55aa69d

Please sign in to comment.