Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions src/together/cli/api/endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,7 @@ def endpoints(ctx: click.Context) -> None:
help="Number of minutes of inactivity after which the endpoint will be automatically stopped. Set to 0 to disable.",
)
@click.option(
"--wait",
is_flag=True,
"--wait/--no-wait",
default=True,
help="Wait for the endpoint to be ready after creation",
)
Expand Down Expand Up @@ -276,7 +275,9 @@ def fetch_and_print_hardware_options(
@endpoints.command()
@click.argument("endpoint-id", required=True)
@click.option(
"--wait", is_flag=True, default=True, help="Wait for the endpoint to stop"
"--wait/--no-wait",
default=True,
help="Wait for the endpoint to stop",
)
@click.pass_obj
@handle_api_errors
Expand All @@ -299,7 +300,9 @@ def stop(client: Together, endpoint_id: str, wait: bool) -> None:
@endpoints.command()
@click.argument("endpoint-id", required=True)
@click.option(
"--wait", is_flag=True, default=True, help="Wait for the endpoint to start"
"--wait/--no-wait",
default=True,
help="Wait for the endpoint to start",
)
@click.pass_obj
@handle_api_errors
Expand Down