summaryrefslogtreecommitdiffstats
path: root/g4f/gui/server
diff options
context:
space:
mode:
authorH Lohaus <hlohaus@users.noreply.github.com>2024-04-20 20:12:36 +0200
committerGitHub <noreply@github.com>2024-04-20 20:12:36 +0200
commitda81d1e51aa5c625e4107bf8148cdb3c778f4001 (patch)
tree01b7677bfd51667e6b8bebe0ac72921aa48cba58 /g4f/gui/server
parentMerge pull request #1862 from hlohaus/nem (diff)
parentDisable Bing integration test (diff)
downloadgpt4free-da81d1e51aa5c625e4107bf8148cdb3c778f4001.tar
gpt4free-da81d1e51aa5c625e4107bf8148cdb3c778f4001.tar.gz
gpt4free-da81d1e51aa5c625e4107bf8148cdb3c778f4001.tar.bz2
gpt4free-da81d1e51aa5c625e4107bf8148cdb3c778f4001.tar.lz
gpt4free-da81d1e51aa5c625e4107bf8148cdb3c778f4001.tar.xz
gpt4free-da81d1e51aa5c625e4107bf8148cdb3c778f4001.tar.zst
gpt4free-da81d1e51aa5c625e4107bf8148cdb3c778f4001.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 e3244c84..211d40c6 100644
--- a/g4f/gui/server/api.py
+++ b/g4f/gui/server/api.py
@@ -99,7 +99,7 @@ class Api():
if api_key is not None:
kwargs["api_key"] = api_key
if json_data.get('web_search'):
- if provider == "Bing":
+ if provider in ("Bing", "HuggingChat"):
kwargs['web_search'] = True
else:
from .internet import get_search_message