yym68686 commited on
Commit
53fe560
·
1 Parent(s): 0535e92

Fix the bug that gets all model algorithms.

Browse files
Files changed (1) hide show
  1. main.py +2 -2
main.py CHANGED
@@ -206,8 +206,8 @@ def get_all_models(token):
206
  for provider_item in config["providers"]:
207
  if provider_item['provider'] != provider:
208
  continue
209
- if model_item in provider_item['model'].keys() :
210
- if model_item not in unique_models and model_item != model:
211
  unique_models.add(model_item)
212
  model_info = {
213
  "id": model_item,
 
206
  for provider_item in config["providers"]:
207
  if provider_item['provider'] != provider:
208
  continue
209
+ for model_item in provider_item['model'].keys() :
210
+ if model_item not in unique_models and model_item == model:
211
  unique_models.add(model_item)
212
  model_info = {
213
  "id": model_item,