superdup95 commited on
Commit
d7b2366
1 Parent(s): 98c28c1

Update api_usage.py

Browse files
Files changed (1) hide show
  1. api_usage.py +1 -1
api_usage.py CHANGED
@@ -37,7 +37,7 @@ def get_usage(key):
37
  queryUrl = f'https://api.openai.com/dashboard/billing/usage?start_date={start_date}&end_date={end_date}'
38
  headers = get_headers(key)
39
  r = requests.get(queryUrl, headers=headers)
40
- return r.json()['total_usage']/100.0
41
  else:
42
  return ""
43
 
 
37
  queryUrl = f'https://api.openai.com/dashboard/billing/usage?start_date={start_date}&end_date={end_date}'
38
  headers = get_headers(key)
39
  r = requests.get(queryUrl, headers=headers)
40
+ return r.json()
41
  else:
42
  return ""
43