Skip to content

Commit c041da7

Browse files
committed
wip
1 parent 1c106f7 commit c041da7

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/together/cli/api/endpoints.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -347,9 +347,9 @@ def delete(client: Together, endpoint_id: str) -> None:
347347
)
348348
@click.option(
349349
"--mine",
350-
type=click.BOOL,
351-
default=None,
352-
help="true (only mine), default=all",
350+
is_flag=True,
351+
default=False,
352+
help="Only show endpoints owned by the caller",
353353
)
354354
@click.option(
355355
"--usage-type",
@@ -363,11 +363,13 @@ def list(
363363
json: bool,
364364
type: Literal["dedicated", "serverless"] | None,
365365
usage_type: Literal["on-demand", "reserved"] | None,
366-
mine: bool | None,
366+
mine: bool,
367367
) -> None:
368368
"""List all inference endpoints (includes both dedicated and serverless endpoints)."""
369+
# Convert False (flag not provided) to None for API call
370+
mine_param = True if mine else None
369371
endpoints: List[ListEndpoint] = client.endpoints.list(
370-
type=type, usage_type=usage_type, mine=mine
372+
type=type, usage_type=usage_type, mine=mine_param
371373
)
372374

373375
if not endpoints:

0 commit comments

Comments
 (0)