diff --git a/src/together/cli/api/endpoints.py b/src/together/cli/api/endpoints.py index 271f864..3475689 100644 --- a/src/together/cli/api/endpoints.py +++ b/src/together/cli/api/endpoints.py @@ -348,8 +348,8 @@ def delete(client: Together, endpoint_id: str) -> None: @click.option( "--mine", type=click.BOOL, - default=None, - help="true (only mine), default=all", + default=True, + help="Show only endpoints owned by the caller (default: true)", ) @click.option( "--usage-type", @@ -363,11 +363,13 @@ def list( json: bool, type: Literal["dedicated", "serverless"] | None, usage_type: Literal["on-demand", "reserved"] | None, - mine: bool | None, + mine: bool, ) -> None: """List all inference endpoints (includes both dedicated and serverless endpoints).""" + # Convert False to None for API call (False means show all, not just mine) + mine_param = True if mine else None endpoints: List[ListEndpoint] = client.endpoints.list( - type=type, usage_type=usage_type, mine=mine + type=type, usage_type=usage_type, mine=mine_param ) if not endpoints: