File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments