superdup95
commited on
Commit
•
dca23cf
1
Parent(s):
5424919
Update app.py
Browse files
app.py
CHANGED
@@ -10,9 +10,10 @@ def get_key_info(key):
|
|
10 |
"key_availability": key_avai,
|
11 |
"gpt4_availability": "",
|
12 |
"has_payment_method": "",
|
13 |
-
"used": "",
|
14 |
"plan": "",
|
15 |
-
"
|
|
|
16 |
if key_avai:
|
17 |
info = get_subscription(key)
|
18 |
# used = get_usage(key)
|
@@ -22,7 +23,8 @@ def get_key_info(key):
|
|
22 |
info_dict["has_payment_method"] = info["has_payment_method"]
|
23 |
# info_dict["used"] = used
|
24 |
info_dict["plan"] = info["plan"]
|
25 |
-
info_dict["
|
|
|
26 |
return info_dict
|
27 |
|
28 |
|
|
|
10 |
"key_availability": key_avai,
|
11 |
"gpt4_availability": "",
|
12 |
"has_payment_method": "",
|
13 |
+
# "used": "",
|
14 |
"plan": "",
|
15 |
+
"soft_limit": "",
|
16 |
+
"hard_limit": ""}
|
17 |
if key_avai:
|
18 |
info = get_subscription(key)
|
19 |
# used = get_usage(key)
|
|
|
23 |
info_dict["has_payment_method"] = info["has_payment_method"]
|
24 |
# info_dict["used"] = used
|
25 |
info_dict["plan"] = info["plan"]
|
26 |
+
info_dict["soft_limit"] = info["soft_limit_usd"]
|
27 |
+
info_dict["hard_limit"] = info["hard_limit_usd"]
|
28 |
return info_dict
|
29 |
|
30 |
|