fix: unreadable text in console and potentially over the max token

pull/2050/head
Tzeng Yuxio 2023-04-17 09:28:33 +08:00
parent 955a5b0a43
commit da72e69196
No known key found for this signature in database
GPG Key ID: 4E0901B4FB9460D0
1 changed files with 1 additions and 1 deletions

View File

@ -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":