mirror of
https://github.com/xtekky/gpt4free.git
synced 2025-12-15 14:51:19 -08:00
Update models list
This commit is contained in:
parent
078a214adc
commit
85d1379427
2 changed files with 6 additions and 2 deletions
|
|
@ -323,17 +323,19 @@ class Api:
|
|||
"created": 0,
|
||||
"owned_by": "",
|
||||
"image": isinstance(model, g4f.models.ImageModel),
|
||||
"vision": isinstance(model, g4f.models.VisionModel),
|
||||
"provider": False,
|
||||
} for model in AnyProvider.get_models()] +
|
||||
[{
|
||||
"id": provider_name,
|
||||
"object": "model",
|
||||
"created": 0,
|
||||
"owned_by": getattr(provider, "label", None),
|
||||
"owned_by": getattr(provider, "label", ""),
|
||||
"image": bool(getattr(provider, "image_models", False)),
|
||||
"vision": bool(getattr(provider, "vision_models", False)),
|
||||
"provider": True,
|
||||
} for provider_name, provider in Provider.ProviderUtils.convert.items()
|
||||
if provider.working and provider_name not in ("Custom", "Puter")
|
||||
if provider.working and provider_name not in ("Custom")
|
||||
]
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue