mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-01-11 08:08:08 -05:00
Added custom_search_engine_id as mandatory for official google search (#4228)
Co-authored-by: Nicholas Tindle <nick@ntindle.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user