Skip to content

Commit 7a0d03c

Browse files
committed
Remove usage of LaunchOptionsDict in CLI
1 parent 360c242 commit 7a0d03c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

vec_inf/cli/_cli.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
MetricsResponseFormatter,
3232
StatusResponseFormatter,
3333
)
34-
from vec_inf.client import LaunchOptions, LaunchOptionsDict, VecInfClient
34+
from vec_inf.client import LaunchOptions, VecInfClient
3535

3636

3737
CONSOLE = Console()
@@ -142,9 +142,7 @@ def launch(
142142
try:
143143
# Convert cli_kwargs to LaunchOptions
144144
kwargs = {k: v for k, v in cli_kwargs.items() if k != "json_mode"}
145-
# Cast the dictionary to LaunchOptionsDict
146-
options_dict: LaunchOptionsDict = kwargs # type: ignore
147-
launch_options = LaunchOptions(**options_dict)
145+
launch_options = LaunchOptions(**kwargs)
148146

149147
# Start the client and launch model inference server
150148
client = VecInfClient()

0 commit comments

Comments
 (0)