mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-12-23 11:02:40 +03:00
Update (g4f/gui/server/api.py)
This commit is contained in:
parent
c11bac4849
commit
0aad039ac8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user