Skip to content

Commit

Permalink
Logs output to console if we're not on speak mode (Significant-Gravit…
Browse files Browse the repository at this point in the history
…as#3715)

Co-authored-by: k-boikov <[email protected]>
  • Loading branch information
2 people authored and ppetermann committed May 22, 2023
1 parent 157007d commit 4418ac2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions autogpt/logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}")

0 comments on commit 4418ac2

Please sign in to comment.