From 0aad039ac8554c4a011501e5e232a1237e69eacb Mon Sep 17 00:00:00 2001 From: kqlio67 Date: Tue, 29 Oct 2024 10:11:56 +0200 Subject: Update (g4f/gui/server/api.py) --- g4f/gui/server/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'g4f/gui/server') 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 -- cgit v1.2.3