mirror of
https://github.com/xtekky/gpt4free.git
synced 2026-01-03 15:53:09 -08:00
Update api.py
This commit is contained in:
parent
dba41cda56
commit
c959d9b469
1 changed files with 1 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ class Api:
|
|||
"model": model,
|
||||
"default": model == provider.default_model,
|
||||
"vision": getattr(provider, "default_vision_model", None) == model or model in getattr(provider, "vision_models", []),
|
||||
"image": model in getattr(provider, "image_models", []),
|
||||
"image": False if provider.image_models is None else model in provider.image_models,
|
||||
}
|
||||
for model in models
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue