Skip to content

Commit

Permalink
update default local_mode value of ServerLauncher
Browse files Browse the repository at this point in the history
  • Loading branch information
pan-x-c committed Jan 25, 2024
1 parent 5cebdcf commit 4716b20
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 6 deletions.
2 changes: 0 additions & 2 deletions docs/sphinx_doc/source/tutorial/208-distribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ server_a = RpcAgentServerLauncher(
},
host=ip_a,
port=12001,
local_mode=False,
)
server_a.launch()
server_a.wait_until_terminate()
Expand All @@ -116,7 +115,6 @@ server_b = RpcAgentServerLauncher(
},
host=ip_b,
port=12001,
local_mode=False,
)
server_b.launch()
server_b.wait_until_terminate()
Expand Down
1 change: 0 additions & 1 deletion examples/distributed/distributed_debate.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ def setup_server(parsed_args: argparse.Namespace) -> None:
agent_kwargs=config,
host=host,
port=port,
local_mode=False,
)
server_launcher.launch()
server_launcher.wait_until_terminate()
Expand Down
1 change: 0 additions & 1 deletion examples/distributed/distributed_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ def setup_assistant_server(assistant_host: str, assistant_port: int) -> None:
},
host=assistant_host,
port=assistant_port,
local_mode=False,
)
assistant_server_launcher.launch()
assistant_server_launcher.wait_until_terminate()
Expand Down
4 changes: 2 additions & 2 deletions src/agentscope/agents/rpc_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def __init__(
port: int = None,
max_pool_size: int = 100,
max_timeout_seconds: int = 1800,
local_mode: bool = True,
local_mode: bool = False,
) -> None:
"""Init a rpc agent server launcher.
Expand All @@ -324,7 +324,7 @@ def __init__(
Max number of task results that the server can accommodate.
max_timeout_seconds (`int`, defaults to `1800`):
Timeout for task results.
local_mode (`bool`, defaults to `True`):
local_mode (`bool`, defaults to `False`):
Whether the started rpc server only listens to local
requests.
"""
Expand Down

0 comments on commit 4716b20

Please sign in to comment.