From 3bf5934b20b906f977776e2d41033027ecb5df9b Mon Sep 17 00:00:00 2001 From: Raju Komati Date: Sat, 22 Apr 2023 02:52:13 +0530 Subject: [PATCH] fixed typo --- autogpt/commands/google_search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autogpt/commands/google_search.py b/autogpt/commands/google_search.py index fcc1a9f4..264daaff 100644 --- a/autogpt/commands/google_search.py +++ b/autogpt/commands/google_search.py @@ -110,7 +110,7 @@ def safe_google_results(results: str | list) -> str: """ if isinstance(results, list): safe_message = json.dumps( - [result.enocde("utf-8", "ignore") for result in results] + [result.encode("utf-8", "ignore") for result in results] ) else: safe_message = results.encode("utf-8", "ignore").decode("utf-8")