yangtb24 commited on
Commit
a3b6df5
·
verified ·
1 Parent(s): 6b0a5df

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 < 500 :
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