Skip to content

Commit a22f0fe

Browse files
authored
Fix launch CLI bug in launch endpoints delete causing the command to fail with a TypeError (#165)
* modify launch.cli.delete_endpoint to pass endpoint_name directly into client.delete_model_endpoint rather than within a ModelEndpoint object * remove unused ModelEndpoint import
1 parent 6434613 commit a22f0fe

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

launch/cli/endpoints.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
from launch.cli.client import init_client
1111
from launch.cli.console import pretty_print, spinner
1212
from launch.hooks import PostInferenceHooks
13-
from launch.model_endpoint import ModelEndpoint
1413

1514

1615
@click.group("endpoints")
@@ -104,8 +103,7 @@ def delete_endpoint(ctx: click.Context, endpoint_name: str):
104103
client = init_client(ctx)
105104

106105
with spinner(f"Deleting model endpoint '{endpoint_name}'"):
107-
endpoint = ModelEndpoint(name=endpoint_name)
108-
res = client.delete_model_endpoint(endpoint)
106+
res = client.delete_model_endpoint(endpoint_name)
109107

110108
pretty_print(res)
111109

0 commit comments

Comments
 (0)