Skip to content

Commit

Permalink
fixbug
Browse files Browse the repository at this point in the history
  • Loading branch information
kaqijiang committed Apr 21, 2023
1 parent 301267f commit 0d1ab4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autogpt/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,10 @@ def execute_command(command_name: str, arguments):
# search method
key = CFG.google_api_key
if key and key.strip() and key != "your-google-api-key":
google_result = google_official_search(arguments["input"])
google_result = google_official_search(arguments["query"])
return google_result
else:
google_result = google_search(arguments["input"])
google_result = google_search(arguments["query"])

# google_result can be a list or a string depending on the search results
if isinstance(google_result, list):
Expand Down

0 comments on commit 0d1ab4b

Please sign in to comment.