sasaki-saku
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -113,10 +113,12 @@ def get_key_mistral_info(key):
|
|
113 |
key_avai = check_key_mistral_availability(key)
|
114 |
info_dict = {#"account_name": "",
|
115 |
"key_type": "Mistral AI",
|
116 |
-
"key_availability": key_avai,
|
117 |
-
"has_quota": ""
|
|
|
118 |
if key_avai:
|
119 |
info_dict['has_quota'] = check_mistral_quota(key)
|
|
|
120 |
return info_dict
|
121 |
|
122 |
def get_key_replicate_info(key):
|
|
|
113 |
key_avai = check_key_mistral_availability(key)
|
114 |
info_dict = {#"account_name": "",
|
115 |
"key_type": "Mistral AI",
|
116 |
+
"key_availability": True if key_avai else False,
|
117 |
+
"has_quota": "",
|
118 |
+
"models": ""}
|
119 |
if key_avai:
|
120 |
info_dict['has_quota'] = check_mistral_quota(key)
|
121 |
+
info_dict['models'] = key_avai
|
122 |
return info_dict
|
123 |
|
124 |
def get_key_replicate_info(key):
|