XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 1
返回提交历史

XFEstudio/gpt4free

Update internet.py

0f81b617
H Lohaus <hlohaus@users.noreply.github.com>
提交于

代码差异

1 个文件 +1 -1
Modified g4f/gui/server/internet.py +1 -1
@@ -99,7 +99,7 @@ async def fetch_and_scrape(session: ClientSession, url: str, max_words: int = No
99 99 async def search(query: str, n_results: int = 5, max_words: int = 2500, add_text: bool = True) -> SearchResults:
100 100 if not has_requirements:
101 101 raise MissingRequirementsError('Install "duckduckgo-search" and "beautifulsoup4" package')
102 async with AsyncDDGS() as ddgs:
102 async with DDGS() as ddgs:
103 103 results = []
104 104 for result in await ddgs.atext(
105 105 query,