Skip to content

Commit

Permalink
Merge pull request #743 from pbharrin/agentp-fix
Browse files Browse the repository at this point in the history
allows the agent interface to be run on any port
  • Loading branch information
pbharrin authored Sep 27, 2023
2 parents b84eb8e + ffcec32 commit ef62ba7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion gpt_engineer/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,4 +108,9 @@ async def step_handler(step: Step) -> Step:
return step


Agent.setup_agent(task_handler, step_handler).start()
def run_agent(port: int = 8000):
Agent.setup_agent(task_handler, step_handler).start(port=port)


if __name__ == "__main__":
run_agent()

0 comments on commit ef62ba7

Please sign in to comment.