Update app.py
Browse files
app.py
CHANGED
@@ -68,7 +68,7 @@ def test_model_availability(api_key, model_name):
|
|
68 |
},
|
69 |
timeout=10)
|
70 |
# 正常返回或返回 429 都被认为是免费模型
|
71 |
-
if response.status_code == 429 or response.status_code
|
72 |
return True
|
73 |
else:
|
74 |
return False
|
|
|
68 |
},
|
69 |
timeout=10)
|
70 |
# 正常返回或返回 429 都被认为是免费模型
|
71 |
+
if response.status_code == 429 or response.status_code == 200 :
|
72 |
return True
|
73 |
else:
|
74 |
return False
|