Update app.py
Browse files
app.py
CHANGED
@@ -140,18 +140,7 @@ def load_keys():
|
|
140 |
logging.info(f"Key {key} status: {status}")
|
141 |
|
142 |
def process_key(key, test_model):
|
143 |
-
|
144 |
-
if credit_summary is None:
|
145 |
-
return "invalid"
|
146 |
-
else:
|
147 |
-
total_balance = credit_summary.get("total_balance", 0)
|
148 |
-
if total_balance <= 0.03:
|
149 |
-
return "free"
|
150 |
-
else:
|
151 |
-
if test_model_availability(key, test_model):
|
152 |
-
return "valid"
|
153 |
-
else:
|
154 |
-
return "unverified"
|
155 |
|
156 |
def get_all_models(api_key):
|
157 |
headers = {
|
|
|
140 |
logging.info(f"Key {key} status: {status}")
|
141 |
|
142 |
def process_key(key, test_model):
|
143 |
+
return "valid"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
144 |
|
145 |
def get_all_models(api_key):
|
146 |
headers = {
|