Commit
·
b3872f3
1
Parent(s):
58255e2
Update api_usage.py
Browse files- api_usage.py +4 -1
api_usage.py
CHANGED
@@ -33,7 +33,10 @@ def get_subscription(key):
|
|
33 |
rpm = r.headers['x-ratelimit-limit-requests']
|
34 |
org = r.headers['openai-organization']
|
35 |
quota = ""
|
36 |
-
|
|
|
|
|
|
|
37 |
except Exception as e:
|
38 |
error_message = str(e)
|
39 |
print(e)
|
|
|
33 |
rpm = r.headers['x-ratelimit-limit-requests']
|
34 |
org = r.headers['openai-organization']
|
35 |
quota = ""
|
36 |
+
else:
|
37 |
+
rpm = ""
|
38 |
+
org = ""
|
39 |
+
quota = ""
|
40 |
except Exception as e:
|
41 |
error_message = str(e)
|
42 |
print(e)
|