diff options
Diffstat (limited to '')
-rw-r--r-- | g4f/Provider/Blackbox.py | 4 | ||||
-rw-r--r-- | g4f/gui/server/api.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/g4f/Provider/Blackbox.py b/g4f/Provider/Blackbox.py index 6d8a467d..168cfe1e 100644 --- a/g4f/Provider/Blackbox.py +++ b/g4f/Provider/Blackbox.py @@ -172,7 +172,7 @@ class Blackbox(AsyncGeneratorProvider, ProviderModelMixin): proxy: Optional[str] = None, image: ImageType = None, image_name: str = None, - websearch: bool = False, + web_search: bool = False, **kwargs ) -> AsyncGenerator[Union[str, ImageResponse], None]: """ @@ -274,7 +274,7 @@ class Blackbox(AsyncGeneratorProvider, ProviderModelMixin): "clickedForceWebSearch": False, "visitFromDelta": False, "mobileClient": False, - "webSearchMode": websearch, + "webSearchMode": web_search, "userSelectedModel": cls.userSelectedModel.get(model, model) } diff --git a/g4f/gui/server/api.py b/g4f/gui/server/api.py index 51cf3d32..92700611 100644 --- a/g4f/gui/server/api.py +++ b/g4f/gui/server/api.py @@ -115,7 +115,7 @@ class Api: if api_key is not None: kwargs["api_key"] = api_key if json_data.get('web_search'): - if provider in ("Bing", "HuggingChat"): + if provider in ("Bing", "HuggingChat", "Blackbox"): kwargs['web_search'] = True else: from .internet import get_search_message |