diff options
author | Heiner Lohaus <hlohaus@users.noreply.github.com> | 2024-04-20 10:43:53 +0200 |
---|---|---|
committer | Heiner Lohaus <hlohaus@users.noreply.github.com> | 2024-04-20 10:43:53 +0200 |
commit | 932d3a3ca092756cc3025e427fabf9ab674350fc (patch) | |
tree | c26601230c54c3c1a932fb9a249cd49751193237 /g4f/gui/server/api.py | |
parent | Merge pull request #1862 from hlohaus/nem (diff) | |
download | gpt4free-932d3a3ca092756cc3025e427fabf9ab674350fc.tar gpt4free-932d3a3ca092756cc3025e427fabf9ab674350fc.tar.gz gpt4free-932d3a3ca092756cc3025e427fabf9ab674350fc.tar.bz2 gpt4free-932d3a3ca092756cc3025e427fabf9ab674350fc.tar.lz gpt4free-932d3a3ca092756cc3025e427fabf9ab674350fc.tar.xz gpt4free-932d3a3ca092756cc3025e427fabf9ab674350fc.tar.zst gpt4free-932d3a3ca092756cc3025e427fabf9ab674350fc.zip |
Diffstat (limited to '')
-rw-r--r-- | g4f/gui/server/api.py | 2 |
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 |