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.
linter fixes
Silen Naihin2ec306e850fa
diff --git a/agbenchmark/reports/reports.py b/agbenchmark/reports/reports.pyindex 9abe5ea374..0cce471dd0 100644--- a/agbenchmark/reports/reports.py+++ b/agbenchmark/reports/reports.py@@ -7,10 +7,10 @@ from typing import Any, Callableimport pytestfrom agbenchmark.agent_interface import MOCK_FLAG-from agbenchmark.utils.get_data_from_helicone import get_data_from_heliconefrom agbenchmark.reports.ReportManager import ReportManagerfrom agbenchmark.start_benchmark import CONFIG_PATH, REGRESSION_TESTS_PATH, REPORTS_PATHfrom agbenchmark.utils.data_types import DIFFICULTY_MAP, DifficultyLevel, SuiteConfig+from agbenchmark.utils.get_data_from_helicone import get_data_from_heliconefrom agbenchmark.utils.utils import (AGENT_NAME,calculate_success_percentage,diff --git a/agbenchmark/utils/get_data_from_helicone.py b/agbenchmark/utils/get_data_from_helicone.pyindex f6e43e5696..272593e417 100644--- a/agbenchmark/utils/get_data_from_helicone.py+++ b/agbenchmark/utils/get_data_from_helicone.py@@ -42,6 +42,8 @@ query ExampleQuery($properties: [PropertyFilter!]){operation_name = "ExampleQuery"+ data = None+# Make the requesttry:response = requests.post(@@ -59,9 +61,7 @@ query ExampleQuery($properties: [PropertyFilter!]){print(f"HTTP error occurred: {http_err}")except Exception as err:print(f"Other error occurred: {err}")- else:- if not data:- raise Exception("No data returned from Helicone")- return (- data.get("data", {}).get("aggregatedHeliconeRequest", {}).get("cost", None)- )++ if not data:+ raise Exception("No data returned from Helicone")+ return data.get("data", {}).get("aggregatedHeliconeRequest", {}).get("cost", None)