From da72e69196bff960e5b5235fda22cdd59c79ebaa Mon Sep 17 00:00:00 2001 From: Tzeng Yuxio Date: Mon, 17 Apr 2023 09:28:33 +0800 Subject: [PATCH] fix: unreadable text in console and potentially over the max token --- autogpt/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autogpt/app.py b/autogpt/app.py index 78b5bd2fdeb0..f0eadfa7de4f 100644 --- a/autogpt/app.py +++ b/autogpt/app.py @@ -133,7 +133,7 @@ def execute_command(command_name: str, arguments): else: safe_message = google_result.encode('utf-8', 'ignore') - return str(safe_message) + return safe_message.decode('utf-8') elif command_name == "memory_add": return memory.add(arguments["string"]) elif command_name == "start_agent":