mirror of
https://github.com/xtekky/gpt4free.git
synced 2025-12-24 13:07:53 +08:00
Test search
This commit is contained in:
@@ -290,7 +290,6 @@ def iter_run_tools(
|
||||
# Note: Using asyncio.run inside sync function is not ideal, but maintaining original pattern
|
||||
messages[-1]["content"], sources = asyncio.run(do_search(messages[-1]["content"], search_query))
|
||||
except Exception as e:
|
||||
raise e
|
||||
debug.error(f"Couldn't do web search:", e)
|
||||
|
||||
# Get API key if needed
|
||||
|
||||
@@ -14,8 +14,7 @@ try:
|
||||
from ddgs.exceptions import DDGSException
|
||||
from bs4 import BeautifulSoup
|
||||
has_requirements = True
|
||||
except ImportError as e:
|
||||
raise e
|
||||
except ImportError:
|
||||
has_requirements = False
|
||||
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user