Skip to content

Commit 89ead81

Browse files
committed
fixed pre-commit merge issues
1 parent a4e47bd commit 89ead81

2 files changed

Lines changed: 15 additions & 3 deletions

File tree

src/together/cli/api/endpoints.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,18 @@ def delete(client: Together, endpoint_id: str) -> None:
337337
type=click.Choice(["dedicated", "serverless"]),
338338
help="Filter by endpoint type",
339339
)
340+
@click.option(
341+
"--usage-type",
342+
type=click.Choice(["on-demand", "reserved"]),
343+
help="Filter by usage type",
344+
)
345+
@click.option(
346+
"--mine",
347+
is_flag=True,
348+
default=False,
349+
help="Show only endpoints owned by you",
350+
)
351+
340352
@click.pass_obj
341353
@handle_api_errors
342354
def list(

src/together/resources/endpoints.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def list(
3333
client=self._client,
3434
)
3535

36-
params = {}
36+
params: Dict[str, str] = {}
3737
if type is not None:
3838
params["type"] = type
3939
if usage_type is not None:
@@ -247,7 +247,7 @@ def list_hardware(self, model: Optional[str] = None) -> List[HardwareWithStatus]
247247
client=self._client,
248248
)
249249

250-
params = {}
250+
params: Dict[str, str] = {}
251251
if model is not None:
252252
params["model"] = model
253253

@@ -292,7 +292,7 @@ async def list(
292292
client=self._client,
293293
)
294294

295-
params = {}
295+
params: Dict[str, str] = {}
296296
if type is not None:
297297
params["type"] = type
298298
if usage_type is not None:

0 commit comments

Comments
 (0)