🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
add params to search engine
geekanfcb2ea48638d
diff --git a/examples/search_with_specific_engine.py b/examples/search_with_specific_engine.pyindex 1eee762d5..48bcc67b8 100644--- a/examples/search_with_specific_engine.py+++ b/examples/search_with_specific_engine.py@@ -13,7 +13,7 @@ async def main():question = "What are the most interesting human facts?"search = Config.default().search- kwargs = {"api_key": search.api_key, "cse_id": search.cse_id, "proxy": None}+ kwargs = {"api_key": search.api_key, "cse_id": search.cse_id, "proxy": None, "params": search.params}await Searcher(search_engine=SearchEngine(engine=search.api_type, **kwargs)).run(question)diff --git a/metagpt/configs/search_config.py b/metagpt/configs/search_config.pyindex af928b02a..38af4d91f 100644--- a/metagpt/configs/search_config.py+++ b/metagpt/configs/search_config.py@@ -18,3 +18,4 @@ class SearchConfig(YamlModel):api_key: str = ""cse_id: str = "" # for googlesearch_func: Optional[Callable] = None+ params: dict = {}