From 19767ca4a4d19fc915c8bdd88d9409263c1970cd Mon Sep 17 00:00:00 2001 From: Zorinik Date: Wed, 17 May 2023 21:17:33 +0200 Subject: [PATCH] Logs output to console if we're not on speak mode (#3715) Co-authored-by: k-boikov <64261260+k-boikov@users.noreply.github.com> --- autogpt/logs.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/autogpt/logs.py b/autogpt/logs.py index 120db39d..f14267fc 100644 --- a/autogpt/logs.py +++ b/autogpt/logs.py @@ -287,5 +287,8 @@ def print_assistant_thoughts( logger.typewriter_log("- ", Fore.GREEN, line.strip()) logger.typewriter_log("CRITICISM:", Fore.YELLOW, f"{assistant_thoughts_criticism}") # Speak the assistant's thoughts - if speak_mode and assistant_thoughts_speak: - say_text(assistant_thoughts_speak) + if assistant_thoughts_speak: + if speak_mode: + say_text(assistant_thoughts_speak) + else: + logger.typewriter_log("SPEAK:", Fore.YELLOW, f"{assistant_thoughts_speak}")