superdup95
commited on
Commit
·
550dfd0
1
Parent(s):
5f3a318
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ def get_key_info(key):
|
|
7 |
openai.api_key = key
|
8 |
key_avai = check_key_availability()
|
9 |
info_dict = {"account_name": "",
|
10 |
-
"key_availability": key_avai,
|
11 |
"gpt4_availability": "",
|
12 |
"gpt4_32k_availability": "",
|
13 |
"requests_per_minute": "",
|
@@ -15,7 +15,7 @@ def get_key_info(key):
|
|
15 |
"organization": "",
|
16 |
"quota": ""}
|
17 |
if key_avai:
|
18 |
-
info = get_subscription(key)
|
19 |
# info_dict["account_name"] = info["account_name"]
|
20 |
info_dict["gpt4_availability"] = info["has_gpt4"]
|
21 |
info_dict["gpt4_32k_availability"] = info["has_gpt4_32k"]
|
|
|
7 |
openai.api_key = key
|
8 |
key_avai = check_key_availability()
|
9 |
info_dict = {"account_name": "",
|
10 |
+
"key_availability": True if key_avai else False,
|
11 |
"gpt4_availability": "",
|
12 |
"gpt4_32k_availability": "",
|
13 |
"requests_per_minute": "",
|
|
|
15 |
"organization": "",
|
16 |
"quota": ""}
|
17 |
if key_avai:
|
18 |
+
info = get_subscription(key, key_avai)
|
19 |
# info_dict["account_name"] = info["account_name"]
|
20 |
info_dict["gpt4_availability"] = info["has_gpt4"]
|
21 |
info_dict["gpt4_32k_availability"] = info["has_gpt4_32k"]
|