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.

Fix google result encoding.

SBNovaScriptf02b6832e234
diff --git a/autogpt/app.py b/autogpt/app.py
index eb7cdbea40..11ab97244e 100644
--- a/autogpt/app.py
+++ b/autogpt/app.py
@@ -128,8 +128,8 @@ def execute_command(command_name: str, arguments):
return google_result
else:
google_result = google_search(arguments["input"])
- safe_message = google_result.encode("utf-8", "ignore")
- return str(safe_message)
+ safe_message = [google_result_single.encode('utf-8', 'ignore') for google_result_single in google_result]
+ return str(safe_message)
elif command_name == "memory_add":
return memory.add(arguments["string"])
elif command_name == "start_agent":