AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
Added custom_search_engine_id as mandatory for official google search (#4228)
k-boikov2cd835e5a4e0
diff --git a/autogpt/commands/google_search.py b/autogpt/commands/google_search.pyindex 1fc974cdff..0290944867 100644--- a/autogpt/commands/google_search.py+++ b/autogpt/commands/google_search.py@@ -41,8 +41,8 @@ def google_search(query: str, num_results: int = 8) -> str:"google","Google Search",'"query": "<query>"',- bool(CFG.google_api_key),- "Configure google_api_key.",+ bool(CFG.google_api_key) and bool(CFG.custom_search_engine_id),+ "Configure google_api_key and custom_search_engine_id.",)def google_official_search(query: str, num_results: int = 8) -> str | list[str]:"""Return the results of a Google search using the official Google API