helicone push 2

This commit is contained in:
Silen Naihin
2023-07-31 13:26:49 +01:00
parent 94ea25a755
commit db49e8de15

View File

@@ -60,6 +60,8 @@ query ExampleQuery($properties: [PropertyFilter!]){
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)
)