From 92ef77da3523f051cf17a854b2e5c2c767bbf64f Mon Sep 17 00:00:00 2001 From: Zeeland Date: Thu, 13 Jul 2023 13:58:36 +0800 Subject: [PATCH] fix: remove useless variable k (#6524) remove useless variable k --------- Co-authored-by: Bagatur --- langchain/tools/ddg_search/tool.py | 2 +- langchain/utilities/duckduckgo_search.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/langchain/tools/ddg_search/tool.py b/langchain/tools/ddg_search/tool.py index 2020b31340..33b357cee1 100644 --- a/langchain/tools/ddg_search/tool.py +++ b/langchain/tools/ddg_search/tool.py @@ -44,7 +44,7 @@ class DuckDuckGoSearchRun(BaseTool): class DuckDuckGoSearchResults(BaseTool): - """Tool that queries the Duck Duck Go Search API and get back json.""" + """Tool that queries the DuckDuckGo search API and get back json.""" name = "DuckDuckGo Results JSON" description = ( diff --git a/langchain/utilities/duckduckgo_search.py b/langchain/utilities/duckduckgo_search.py index f90fdf7fec..4349d86f1d 100644 --- a/langchain/utilities/duckduckgo_search.py +++ b/langchain/utilities/duckduckgo_search.py @@ -12,10 +12,9 @@ from pydantic.class_validators import root_validator class DuckDuckGoSearchAPIWrapper(BaseModel): """Wrapper for DuckDuckGo Search API. - Free and does not require any setup + Free and does not require any setup. """ - k: int = 10 region: Optional[str] = "wt-wt" safesearch: str = "moderate" time: Optional[str] = "y"