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
…Significant-Gravitas#4228)

Co-authored-by: Nicholas Tindle <[email protected]>
  • Loading branch information
2 people authored and ppetermann committed May 22, 2023
1 parent 914f1a5 commit ea1247e
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 ea1247e

Please sign in to comment.