Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

fixed typo

Raju Komati3bf5934b20b9
diff --git a/autogpt/commands/google_search.py b/autogpt/commands/google_search.py
index fcc1a9f4fa..264daaff6f 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")