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.
Helicone Lock Manager fix (#263)
merwanehamadie32713be684e
diff --git a/agbenchmark/generate_test.py b/agbenchmark/generate_test.pyindex 7586070b7c..d38b5d17ed 100644--- a/agbenchmark/generate_test.py+++ b/agbenchmark/generate_test.py@@ -1,5 +1,6 @@import globimport importlib+import osimport sysimport typesfrom collections import deque@@ -58,7 +59,8 @@ def create_single_test(def test_method(self, config: Dict[str, Any], request) -> None: # type: ignorefrom helicone.lock import HeliconeLockManager- HeliconeLockManager.write_custom_property("challenge", self.data.name)+ if os.environ.get("HELICONE_API_KEY"):+ HeliconeLockManager.write_custom_property("challenge", self.data.name)cutoff = self.data.cutoff or 60self.setup_challenge(config, cutoff)diff --git a/agbenchmark/start_benchmark.py b/agbenchmark/start_benchmark.pyindex 88b00289de..56ebed144f 100644--- a/agbenchmark/start_benchmark.py+++ b/agbenchmark/start_benchmark.py@@ -17,8 +17,10 @@ from agbenchmark.utils.utils import (CURRENT_DIRECTORY = Path(__file__).resolve().parentBENCHMARK_START_TIME = datetime.now().strftime("%Y-%m-%d-%H:%M")--HeliconeLockManager.write_custom_property("benchmark_start_time", BENCHMARK_START_TIME)+if os.environ.get("HELICONE_API_KEY"):+ HeliconeLockManager.write_custom_property(+ "benchmark_start_time", BENCHMARK_START_TIME+ )(HOME_DIRECTORY,