Track live model instances in PollinationsAI, LMArena, OpenaiTemplate, and base_provider classes

This commit is contained in:
hlohaus 2025-09-06 11:48:21 +02:00
parent 1cbf9dfb6a
commit 5bfea4611a
4 changed files with 9 additions and 1 deletions

View file

@ -155,6 +155,7 @@ class PollinationsAI(AsyncGeneratorProvider, ProviderModelMixin):
cls.model_aliases[alias] = model.get("name")
elif model.get("name") not in cls.text_models:
cls.text_models.append(model.get("name"))
cls.live += 1
except Exception as e:
# Save default models in case of an error