default search scope to 2, 5 as a default is way too expensive.

Kaveen Kumarasinghe 2 years ago
parent e452bc083d
commit 1d2a2c8eae

@ -31,7 +31,7 @@ from services.environment_service import EnvService
from models.openai_model import Model
__version__ = "10.2.0"
__version__ = "10.2.1"
PID_FILE = Path("bot.pid")

@ -47,7 +47,7 @@ class Search:
).load_data(urls=[url])
return documents
async def get_links(self, query, search_scope=5):
async def get_links(self, query, search_scope=2):
"""Search the web for a query"""
async with aiohttp.ClientSession() as session:
async with session.get(

Loading…
Cancel
Save