This commit is contained in:
Timothy Jaeryang Baek
2026-05-21 16:44:36 +04:00
parent 1acfbb6755
commit b94245d2ee
7 changed files with 202 additions and 222 deletions
+1 -1
View File
@@ -230,7 +230,7 @@ async def search_web(
max_count = 5 if configured is None else configured
count = max(1, min(count, max_count)) if count is not None else max_count
results = await asyncio.to_thread(_search_web, __request__, engine, query, user)
results = await _search_web(__request__, engine, query, user)
# Limit results
results = results[:count] if results else []