Update (g4f/gui/server/api.py)

This commit is contained in:
kqlio67 2024-10-29 10:11:56 +02:00
parent c11bac4849
commit 0aad039ac8

View File

@ -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