From 70e8b07428e50cadc8d601441f1cfe4b09bd1710 Mon Sep 17 00:00:00 2001 From: Scott Schluer Date: Thu, 6 Jul 2023 13:44:53 -0700 Subject: [PATCH] Utilize environment variables for all agent key bindings (#3774) Co-authored-by: Reinier van der Leer --- autogpt/agent/agent.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/autogpt/agent/agent.py b/autogpt/agent/agent.py index a21197cc..3975c0b5 100644 --- a/autogpt/agent/agent.py +++ b/autogpt/agent/agent.py @@ -196,8 +196,9 @@ class Agent: # to exit self.user_input = "" logger.info( - "Enter 'y' to authorise command, 'y -N' to run N continuous commands, 's' to run self-feedback commands, " - "'n' to exit program, or enter feedback for " + f"Enter '{self.config.authorise_key}' to authorise command, " + f"'{self.config.authorise_key} -N' to run N continuous commands, " + f"'{self.config.exit_key}' to exit program, or enter feedback for " f"{self.ai_name}..." ) while True: @@ -225,8 +226,8 @@ class Agent: user_input = "GENERATE NEXT COMMAND JSON" except ValueError: logger.warn( - "Invalid input format. Please enter 'y -n' where n is" - " the number of continuous tasks." + f"Invalid input format. Please enter '{self.config.authorise_key} -n' " + "where n is the number of continuous tasks." ) continue break