Fix f-string get_data_from_helicone.py (#223)

This commit is contained in:
Justin Torre
2023-07-31 09:06:04 -07:00
committed by GitHub
parent 09727467d4
commit 3a32adbce5

View File

@@ -12,7 +12,7 @@ def get_data_from_helicone(challenge: str) -> Optional[float]:
url = "https://www.helicone.ai/api/graphql"
# Set the headers, usually you'd need to set the content type and possibly an authorization token
headers = {"authorization": "Bearer {os.environ.get('HELICONE_API_KEY')}"}
headers = {"authorization": f"Bearer {os.environ.get('HELICONE_API_KEY')}"}
# Define the query, variables, and operation name
query = """