diff --git a/g4f/client/async_client.py b/g4f/client/async_client.py index 51a9cf83441..8e1ee33c6e8 100644 --- a/g4f/client/async_client.py +++ b/g4f/client/async_client.py @@ -144,7 +144,7 @@ def create( proxy=self.client.get_proxy() if proxy is None else proxy, max_tokens=max_tokens, stop=stop, - api_key=self.client.api_key if api_key is None else api_key + api_key=self.client.api_key if api_key is None else api_key, **kwargs ) response = iter_response(response, stream, response_format, max_tokens, stop) @@ -207,4 +207,4 @@ async def create_variation(self, image: ImageType, model: str = None, **kwargs): result = iter_image_response(response) if result is None: raise NoImageResponseError() - return result \ No newline at end of file + return result