diff options
author | kqlio67 <kqlio67@users.noreply.github.com> | 2024-10-29 09:09:58 +0100 |
---|---|---|
committer | kqlio67 <kqlio67@users.noreply.github.com> | 2024-10-29 09:09:58 +0100 |
commit | c11bac4849b2e51f8642f410d0bd62c855bf7e8f (patch) | |
tree | 90644595ec86d39429591655193b385544e1529d /g4f/Provider | |
parent | Update (g4f/gui/server/api.py g4f/Provider/Blackbox.py) (diff) | |
download | gpt4free-c11bac4849b2e51f8642f410d0bd62c855bf7e8f.tar gpt4free-c11bac4849b2e51f8642f410d0bd62c855bf7e8f.tar.gz gpt4free-c11bac4849b2e51f8642f410d0bd62c855bf7e8f.tar.bz2 gpt4free-c11bac4849b2e51f8642f410d0bd62c855bf7e8f.tar.lz gpt4free-c11bac4849b2e51f8642f410d0bd62c855bf7e8f.tar.xz gpt4free-c11bac4849b2e51f8642f410d0bd62c855bf7e8f.tar.zst gpt4free-c11bac4849b2e51f8642f410d0bd62c855bf7e8f.zip |
Diffstat (limited to 'g4f/Provider')
-rw-r--r-- | g4f/Provider/Blackbox.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/g4f/Provider/Blackbox.py b/g4f/Provider/Blackbox.py index 168cfe1e..4052893a 100644 --- a/g4f/Provider/Blackbox.py +++ b/g4f/Provider/Blackbox.py @@ -184,7 +184,7 @@ class Blackbox(AsyncGeneratorProvider, ProviderModelMixin): proxy (Optional[str]): Proxy URL, if needed. image (ImageType): Image data to be processed, if any. image_name (str): Name of the image file, if an image is provided. - websearch (bool): Enables or disables web search mode. + web_search (bool): Enables or disables web search mode. **kwargs: Additional keyword arguments. Yields: @@ -311,7 +311,7 @@ class Blackbox(AsyncGeneratorProvider, ProviderModelMixin): else: yield cleaned_response else: - if websearch: + if web_search: match = re.search(r'\$~~~\$(.*?)\$~~~\$', cleaned_response, re.DOTALL) if match: source_part = match.group(1).strip() |