Skip to content

Commit 6ff1ce7

Browse files
committed
update to 3.2,4, fix create inf
1 parent 40f8a98 commit 6ff1ce7

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

centml/cli/cluster.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -260,11 +260,13 @@ def create():
260260
k, v = kv.strip().split("=")
261261
env_vars[k] = v
262262

263-
# Prompt for command and command arguments (optional)
264-
command_str = click.prompt("Enter command (space-separated) or leave blank", default="", show_default=False)
265-
command = command_str.split() if command_str.strip() else []
266-
command_args_str = click.prompt("Enter command arguments (space-separated) or leave blank", default="", show_default=False)
267-
command_args = command_args_str.split() if command_args_str.strip() else []
263+
command_str = click.prompt(
264+
"Enter command (space-separated) or leave blank",
265+
default="",
266+
show_default=False
267+
)
268+
269+
command = command_str.strip() if command_str.strip() else None
268270

269271
# Common fields
270272
min_scale = click.prompt("Minimum number of replicas", default=1, type=int)
@@ -287,7 +289,6 @@ def create():
287289
concurrency=concurrency,
288290
env_vars=env_vars if env_vars else None,
289291
command=command,
290-
command_args=command_args,
291292
)
292293
print(req)
293294
created = cclient.create_inference(req)

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ cryptography==43.0.1
99
prometheus-client>=0.20.0
1010
scipy>=1.6.0
1111
scikit-learn>=1.5.1
12-
platform-api-python-client==3.1.15
12+
platform-api-python-client==3.2.4

0 commit comments

Comments
 (0)