summaryrefslogtreecommitdiffstats
path: root/g4f/gui
diff options
context:
space:
mode:
authorH Lohaus <hlohaus@users.noreply.github.com>2024-11-15 18:23:07 +0100
committerGitHub <noreply@github.com>2024-11-15 18:23:07 +0100
commit0f81b6173916b22599b025699e85bb27406c92f0 (patch)
treefe053e0ea33175affa50b72627685dcd9d9f8ce9 /g4f/gui
parentUpdate internet.py (diff)
downloadgpt4free-0f81b6173916b22599b025699e85bb27406c92f0.tar
gpt4free-0f81b6173916b22599b025699e85bb27406c92f0.tar.gz
gpt4free-0f81b6173916b22599b025699e85bb27406c92f0.tar.bz2
gpt4free-0f81b6173916b22599b025699e85bb27406c92f0.tar.lz
gpt4free-0f81b6173916b22599b025699e85bb27406c92f0.tar.xz
gpt4free-0f81b6173916b22599b025699e85bb27406c92f0.tar.zst
gpt4free-0f81b6173916b22599b025699e85bb27406c92f0.zip
Diffstat (limited to 'g4f/gui')
-rw-r--r--g4f/gui/server/internet.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/g4f/gui/server/internet.py b/g4f/gui/server/internet.py
index 6426f608..8dea28b1 100644
--- a/g4f/gui/server/internet.py
+++ b/g4f/gui/server/internet.py
@@ -99,7 +99,7 @@ async def fetch_and_scrape(session: ClientSession, url: str, max_words: int = No
async def search(query: str, n_results: int = 5, max_words: int = 2500, add_text: bool = True) -> SearchResults:
if not has_requirements:
raise MissingRequirementsError('Install "duckduckgo-search" and "beautifulsoup4" package')
- async with AsyncDDGS() as ddgs:
+ async with DDGS() as ddgs:
results = []
for result in await ddgs.atext(
query,