mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2026-01-01 13:24:22 +01:00
Merge pull request #2050 from tzengyuxio/master
fix: unreadable text in console and potentially over the max token
This commit is contained in:
@@ -137,7 +137,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":
|
||||
memory = get_memory(CFG)
|
||||
return memory.add(arguments["string"])
|
||||
|
||||
Reference in New Issue
Block a user