Skip to content
This repository has been archived by the owner on Jun 9, 2024. It is now read-only.

Commit

Permalink
Remove graphql logs
Browse files Browse the repository at this point in the history
Signed-off-by: Merwane Hamadi <merwanehamadi@gmail.com>
  • Loading branch information
waynehamadi committed Aug 6, 2023
1 parent fa63f63 commit afadd84
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions agbenchmark/agent_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@

mock_test_str = os.getenv("MOCK_TEST")
MOCK_FLAG = mock_test_str.lower() == "true" if mock_test_str else False
helicone_graphql_logs = os.getenv("HELICONE_GRAPHQL_LOGS")
HELICONE_GRAPHQL_LOGS = (
helicone_graphql_logs.lower() == "true" if helicone_graphql_logs else False
)


def run_agent(
Expand Down
7 changes: 4 additions & 3 deletions agbenchmark/utils/get_data_from_helicone.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import requests

from agbenchmark.agent_interface import HELICONE_GRAPHQL_LOGS
from agbenchmark.start_benchmark import BENCHMARK_START_TIME


Expand All @@ -22,7 +23,6 @@ def get_data_from_helicone(challenge: str) -> Optional[float]:
}
}
"""
print(query)

variables = {
"properties": [
Expand All @@ -37,8 +37,9 @@ def get_data_from_helicone(challenge: str) -> Optional[float]:
{"value": {"equals": challenge}, "name": "challenge"},
]
}

print(json.dumps(variables, indent=4))
if HELICONE_GRAPHQL_LOGS:
print(query)
print(json.dumps(variables, indent=4))

operation_name = "ExampleQuery"

Expand Down

0 comments on commit afadd84

Please sign in to comment.