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

XFEstudio/gpt4free

Update GoogleAiMode.py

502b0e2e
H Lohaus <hlohaus@users.noreply.github.com>
提交于

代码差异

1 个文件 +2 -1
Modified g4f/Provider/search/GoogleAiMode.py +2 -1
@@ -5,6 +5,7 @@ import urllib.parse
5 5
6 6 from ...typing import AsyncResult, Messages
7 7 from ...requests.cdp import CDPSession
8 from ...providers.response import SearchResults
8 9 from ... import debug
9 10 from ..helper import get_last_user_message
10 11 from .GoogleSearch import GoogleSearch
@@ -44,7 +45,7 @@ class GoogleAiMode(GoogleSearch):
44 45 await session.wait_for_network_idle(idle_time=1, timeout=10.0)
45 46 search_results = await cls._read_search_results(session)
46 47 if search_results:
47 yield search_results
48 yield SearchResults(search_results)
48 49 yield "\n\n---\n\n"
49 50 except Exception as e:
50 51 debug.log(f"Google Search: Error reading search results: {e}")