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

pull/5612/head
Reinier van der Leer 2023-10-17 13:08:23 -07:00
parent 70f617ddd6
commit 69094139bf
No known key found for this signature in database
GPG Key ID: CDC1180FDAE06193
1 changed files with 1 additions and 1 deletions

View File

@ -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,