diff options
author | Heiner Lohaus <hlohaus@users.noreply.github.com> | 2024-11-18 02:53:50 +0100 |
---|---|---|
committer | Heiner Lohaus <hlohaus@users.noreply.github.com> | 2024-11-18 02:53:50 +0100 |
commit | 2a7770ea51237fb2a34da7b853c82139c75ca69b (patch) | |
tree | a515f0051110ecc46d2b46a12ff9a3cb1bfe8e4c /g4f/client/__init__.py | |
parent | Update docker tags in workfloe for slim images, (diff) | |
download | gpt4free-2a7770ea51237fb2a34da7b853c82139c75ca69b.tar gpt4free-2a7770ea51237fb2a34da7b853c82139c75ca69b.tar.gz gpt4free-2a7770ea51237fb2a34da7b853c82139c75ca69b.tar.bz2 gpt4free-2a7770ea51237fb2a34da7b853c82139c75ca69b.tar.lz gpt4free-2a7770ea51237fb2a34da7b853c82139c75ca69b.tar.xz gpt4free-2a7770ea51237fb2a34da7b853c82139c75ca69b.tar.zst gpt4free-2a7770ea51237fb2a34da7b853c82139c75ca69b.zip |
Diffstat (limited to '')
-rw-r--r-- | g4f/client/__init__.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/g4f/client/__init__.py b/g4f/client/__init__.py index 5ffe9288..6f679e4a 100644 --- a/g4f/client/__init__.py +++ b/g4f/client/__init__.py @@ -247,7 +247,7 @@ class Images: """ Synchronous generate method that runs the async_generate method in an event loop. """ - return asyncio.run(self.async_generate(prompt, model, provider, response_format=response_format, proxy=proxy **kwargs)) + return asyncio.run(self.async_generate(prompt, model, provider, response_format=response_format, proxy=proxy, **kwargs)) async def async_generate(self, prompt: str, model: str = None, provider: ProviderType = None, response_format: str = "url", proxy: str = None, **kwargs) -> ImagesResponse: if provider is None: @@ -343,8 +343,7 @@ class Images: def create_variation(self, image: Union[str, bytes], model: str = None, provider: ProviderType = None, response_format: str = "url", **kwargs) -> ImagesResponse: return asyncio.run(self.async_create_variation( - image, model, provider, response_format - **kwargs + image, model, provider, response_format, **kwargs )) async def async_create_variation(self, image: Union[str, bytes], model: str = None, provider: ProviderType = None, response_format: str = "url", proxy: str = None, **kwargs) -> ImagesResponse: |