superdup95
commited on
Commit
·
a5d946f
1
Parent(s):
42d7a9a
Update app.py
Browse files
app.py
CHANGED
@@ -13,11 +13,6 @@ def get_key_info(key):
|
|
13 |
"rpm": "",
|
14 |
"organization": "",
|
15 |
"quota": ""}
|
16 |
-
# "has_payment_method": "",
|
17 |
-
# "used": "",
|
18 |
-
# "plan": "",
|
19 |
-
# "soft_limit": "",
|
20 |
-
# "hard_limit": ""}
|
21 |
if key_avai:
|
22 |
info = get_subscription(key)
|
23 |
# used = get_usage(key)
|
@@ -26,14 +21,9 @@ def get_key_info(key):
|
|
26 |
# info_dict["account_name"] = info["account_name"]
|
27 |
info_dict["gpt4_availability"] = gpt4_avai
|
28 |
info_dict["gpt4_32k_availability"] = gpt4_32k_avai
|
29 |
-
info_dict["
|
30 |
info_dict["organization"] = info["organization"]
|
31 |
info_dict["quota"] = info["quota"]
|
32 |
-
# info_dict["has_payment_method"] = info["has_payment_method"]
|
33 |
-
# info_dict["used"] = used
|
34 |
-
# info_dict["plan"] = info["plan"]
|
35 |
-
# info_dict["soft_limit"] = info["soft_limit_usd"]
|
36 |
-
# info_dict["hard_limit"] = info["hard_limit_usd"]
|
37 |
return info_dict
|
38 |
|
39 |
|
|
|
13 |
"rpm": "",
|
14 |
"organization": "",
|
15 |
"quota": ""}
|
|
|
|
|
|
|
|
|
|
|
16 |
if key_avai:
|
17 |
info = get_subscription(key)
|
18 |
# used = get_usage(key)
|
|
|
21 |
# info_dict["account_name"] = info["account_name"]
|
22 |
info_dict["gpt4_availability"] = gpt4_avai
|
23 |
info_dict["gpt4_32k_availability"] = gpt4_32k_avai
|
24 |
+
info_dict["requests_per_minute"] = info["rpm"] + " (gpt4)" if gpt4_avai else info["rpm"] + " (turbo)"
|
25 |
info_dict["organization"] = info["organization"]
|
26 |
info_dict["quota"] = info["quota"]
|
|
|
|
|
|
|
|
|
|
|
27 |
return info_dict
|
28 |
|
29 |
|