Remove graphql logs (#264)

Signed-off-by: Merwane Hamadi <merwanehamadi@gmail.com>
This commit is contained in:
merwanehamadi
2023-08-06 12:22:49 -07:00
committed by GitHub
parent 5a7ad44221
commit aa37109707
2 changed files with 8 additions and 3 deletions

View File

@@ -14,6 +14,10 @@ load_dotenv()
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(

View File

@@ -4,6 +4,7 @@ from typing import Optional
import requests
from agbenchmark.agent_interface import HELICONE_GRAPHQL_LOGS
from agbenchmark.start_benchmark import BENCHMARK_START_TIME
@@ -22,7 +23,6 @@ query ExampleQuery($properties: [PropertyFilter!]){
}
}
"""
print(query)
variables = {
"properties": [
@@ -37,8 +37,9 @@ query ExampleQuery($properties: [PropertyFilter!]){
{"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"