mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-01-10 07:38:04 -05:00
Fix costs helicone (#226)
Signed-off-by: Merwane Hamadi <merwanehamadi@gmail.com>
This commit is contained in:
@@ -22,6 +22,7 @@ query ExampleQuery($properties: [PropertyFilter!]){
|
||||
}
|
||||
}
|
||||
"""
|
||||
print(query)
|
||||
|
||||
variables = {
|
||||
"filters": [
|
||||
@@ -40,6 +41,7 @@ query ExampleQuery($properties: [PropertyFilter!]){
|
||||
{"property": {"value": {"equals": challenge}, "name": "challenge"}},
|
||||
]
|
||||
}
|
||||
print(json.dumps(variables, indent=4))
|
||||
|
||||
operation_name = "ExampleQuery"
|
||||
|
||||
@@ -72,4 +74,6 @@ query ExampleQuery($properties: [PropertyFilter!]){
|
||||
if data is None or data.get("data") is None:
|
||||
raise ValueError("Invalid response received from server: no data")
|
||||
|
||||
return data.get("data", {}).get("aggregatedHeliconeRequest", {}).get("cost", None)
|
||||
return (
|
||||
data.get("data", {}).get("aggregatedHeliconeRequest", {}).get("costUSD", None)
|
||||
)
|
||||
|
||||
Submodule agent/Auto-GPT updated: 410a1496ba...3651d22147
Submodule agent/gpt-engineer updated: 47bc50b71c...9bb81041ac
Submodule agent/smol-developer updated: 2bdb7f24a8...a23d01369c
Reference in New Issue
Block a user