Skip to content

Commit

Permalink
fix(eval): use seperate status emoji for timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Jan 24, 2025
1 parent 583a6b4 commit 00fdd18
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion gptme/eval/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,11 @@ def print_model_results_table(model_results: dict[str, list[EvalResult]]):
try:
result = next(r for r in results if r.name == test_name)
passed = all(case.passed for case in result.results)
checkmark = "✅" if result.status == "success" and passed else "❌"
checkmark = (
"✅"
if result.status == "success" and passed
else ("🟡" if result.status == "timeout" else "❌")
)
duration = sum(result.timings.values())
gen_tokens = len_tokens(result.gen_stdout, "gpt-4")
run_tokens = len_tokens(result.run_stdout, "gpt-4")
Expand Down

0 comments on commit 00fdd18

Please sign in to comment.