Skip to content

Commit

Permalink
Update api.py
Browse files Browse the repository at this point in the history
  • Loading branch information
hlohaus authored Nov 20, 2024
1 parent dba41cd commit c959d9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion g4f/gui/server/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def get_provider_models(provider: str, api_key: str = None) -> list[dict]:
"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
]
Expand Down

0 comments on commit c959d9b

Please sign in to comment.