mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-12-24 19:53:11 +03:00
12 lines
394 B
Python
12 lines
394 B
Python
|
class ImageModels():
|
||
|
gemini = Gemini
|
||
|
openai = OpenaiChat
|
||
|
you = You
|
||
|
|
||
|
def __init__(self, client: Client) -> None:
|
||
|
self.client = client
|
||
|
self.default = BingCreateImages(proxy=self.client.get_proxy())
|
||
|
|
||
|
def get(self, name: str, default: ImageProvider = None) -> ImageProvider:
|
||
|
return getattr(self, name) if hasattr(self, name) else default or self.default
|