AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
fix(benchmark/reports): Resolve error in format.py on `attempt.cost` is `None`
Reinier van der Leerc26c79c34c89
diff --git a/benchmark/reports/format.py b/benchmark/reports/format.pyindex b3d3f96e1e..8a9a872ea9 100755--- a/benchmark/reports/format.py+++ b/benchmark/reports/format.py@@ -102,7 +102,8 @@ def print_markdown_report(report_json_file: str):f"in **{attempt.run_time}** "f"and **{quantify('step', attempt.n_steps)}**\n")- click.echo(f" - **Cost:** `${round(attempt.cost, 3)}`")+ if attempt.cost is not None:+ click.echo(f" - **Cost:** `${round(attempt.cost, 3)}`")if attempt.fail_reason:click.echo(" - **Failure reason:**\n"