mirror of
https://github.com/xtekky/gpt4free.git
synced 2025-12-06 02:30:41 -08:00
Track live model instances in PollinationsAI, LMArena, OpenaiTemplate, and base_provider classes
This commit is contained in:
parent
1cbf9dfb6a
commit
5bfea4611a
4 changed files with 9 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue