Skip to content

🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming

simplify code

geekanf051104bce12
diff --git a/examples/search_with_specific_engine.py b/examples/search_with_specific_engine.py
index 48bcc67b8..276431ed8 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, "params": search.params}
+ kwargs = search.model_dump()
await Searcher(search_engine=SearchEngine(engine=search.api_type, **kwargs)).run(question)