From aba4b96f23ef38ca75195b3b78a88bb92035b4a9 Mon Sep 17 00:00:00 2001 From: Heiner Lohaus Date: Mon, 12 Feb 2024 11:41:27 +0100 Subject: Add new Client API with Docs Use object urls for the preview of image uploads. Fix upload images in You provider Fix create image. It's now a single image. Improve system message for create images. --- g4f/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'g4f/__init__.py') diff --git a/g4f/__init__.py b/g4f/__init__.py index 93e4aa86..ec4a1743 100644 --- a/g4f/__init__.py +++ b/g4f/__init__.py @@ -16,7 +16,8 @@ def get_model_and_provider(model : Union[Model, str], stream : bool, ignored : list[str] = None, ignore_working: bool = False, - ignore_stream: bool = False) -> tuple[str, ProviderType]: + ignore_stream: bool = False, + **kwargs) -> tuple[str, ProviderType]: """ Retrieves the model and provider based on input parameters. -- cgit v1.2.3