Skip to content

Commit

Permalink
Added custom_search_engine_id as mandatory for official google search (
Browse files Browse the repository at this point in the history
…#4228)

Co-authored-by: Nicholas Tindle <[email protected]>
  • Loading branch information
k-boikov and ntindle authored May 17, 2023
1 parent 1c96a5a commit 2cd835e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autogpt/commands/google_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2cd835e

Please sign in to comment.