Add MetaAI Provider and some small improvments

This commit is contained in:
Heiner Lohaus
2024-04-20 10:43:53 +02:00
parent a27d908696
commit 932d3a3ca0
12 changed files with 221 additions and 12 deletions

View File

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