Fix the bug that gets all model algorithms.
Browse files
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 |
-
|
210 |
-
if model_item not in unique_models and model_item
|
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,
|