Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

AutoGPT: accept "y" as input for proceeding with action

Reinier van der Leer69094139bfd7
diff --git a/autogpts/autogpt/autogpt/app/agent_protocol_server.py b/autogpts/autogpt/autogpt/app/agent_protocol_server.py
index 2bbc49b546..5264f9c303 100644
--- a/autogpts/autogpt/autogpt/app/agent_protocol_server.py
+++ b/autogpts/autogpt/autogpt/app/agent_protocol_server.py
@@ -192,7 +192,7 @@ class AgentProtocolServer:
if agent.event_history.current_episode.action.name == "ask_user": # HACK
execute_result = ActionSuccessResult(outputs=step_request.input)
agent.event_history.register_result(execute_result)
- elif not step_request.input:
+ elif not step_request.input or step_request.input == "y":
step = await self.db.update_step(
task_id=task_id,
step_id=step.step_id,