summaryrefslogtreecommitdiffstats
path: root/g4f/gui/server
diff options
context:
space:
mode:
authorkqlio67 <kqlio67@users.noreply.github.com>2024-10-29 09:11:56 +0100
committerkqlio67 <kqlio67@users.noreply.github.com>2024-10-29 09:11:56 +0100
commit0aad039ac8554c4a011501e5e232a1237e69eacb (patch)
tree98157012fce89a5bf27345d79c2c7f8449336558 /g4f/gui/server
parentUpdate (g4f/Provider/Blackbox.py) (diff)
downloadgpt4free-0aad039ac8554c4a011501e5e232a1237e69eacb.tar
gpt4free-0aad039ac8554c4a011501e5e232a1237e69eacb.tar.gz
gpt4free-0aad039ac8554c4a011501e5e232a1237e69eacb.tar.bz2
gpt4free-0aad039ac8554c4a011501e5e232a1237e69eacb.tar.lz
gpt4free-0aad039ac8554c4a011501e5e232a1237e69eacb.tar.xz
gpt4free-0aad039ac8554c4a011501e5e232a1237e69eacb.tar.zst
gpt4free-0aad039ac8554c4a011501e5e232a1237e69eacb.zip
Diffstat (limited to 'g4f/gui/server')
-rw-r--r--g4f/gui/server/api.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/g4f/gui/server/api.py b/g4f/gui/server/api.py
index 92700611..7aac650a 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", "Blackbox"):
+ if provider:
kwargs['web_search'] = True
else:
from .internet import get_search_message