superdup95
commited on
Commit
•
3027807
1
Parent(s):
7c42e93
Update app.py
Browse files
app.py
CHANGED
@@ -11,6 +11,7 @@ def get_key_info(key):
|
|
11 |
"gpt4_availability": "",
|
12 |
"has_payment_method": "",
|
13 |
"used": "",
|
|
|
14 |
"limit": ""}
|
15 |
if key_avai:
|
16 |
info = get_subscription(key)
|
@@ -20,6 +21,7 @@ def get_key_info(key):
|
|
20 |
info_dict["gpt4_availability"] = gpt4_avai
|
21 |
info_dict["has_payment_method"] = info["has_payment_method"]
|
22 |
# info_dict["used"] = used
|
|
|
23 |
info_dict["limit"] = info["hard_limit_usd"]
|
24 |
return info_dict
|
25 |
|
|
|
11 |
"gpt4_availability": "",
|
12 |
"has_payment_method": "",
|
13 |
"used": "",
|
14 |
+
"plan": "",
|
15 |
"limit": ""}
|
16 |
if key_avai:
|
17 |
info = get_subscription(key)
|
|
|
21 |
info_dict["gpt4_availability"] = gpt4_avai
|
22 |
info_dict["has_payment_method"] = info["has_payment_method"]
|
23 |
# info_dict["used"] = used
|
24 |
+
info_dict["plan"] = info["plan_title"] + ", " + info["plan_id"]
|
25 |
info_dict["limit"] = info["hard_limit_usd"]
|
26 |
return info_dict
|
27 |
|