mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-05-20 00:22:31 +00:00
minor test change
This commit is contained in:
parent
02cad2aa74
commit
4e314aff0c
@ -111,7 +111,7 @@ class WebSearchTool(Tool):
|
||||
|
||||
def _effective_provider(self) -> str:
|
||||
"""Resolve the backend that execute() will actually use."""
|
||||
provider = (self.config.provider or "brave").strip().lower()
|
||||
provider = self.config.provider.strip().lower()
|
||||
if provider == "duckduckgo":
|
||||
return "duckduckgo"
|
||||
if provider == "brave":
|
||||
@ -144,7 +144,7 @@ class WebSearchTool(Tool):
|
||||
return self._effective_provider() == "duckduckgo"
|
||||
|
||||
async def execute(self, query: str, count: int | None = None, **kwargs: Any) -> str:
|
||||
provider = (self.config.provider or "brave").strip().lower()
|
||||
provider = self.config.provider.strip().lower()
|
||||
n = min(max(count or self.config.max_results, 1), 10)
|
||||
|
||||
if provider == "olostep":
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user