File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed
Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff line change @@ -9,4 +9,4 @@ cryptography==43.0.1
99prometheus-client >= 0.20.0
1010scipy >= 1.6.0
1111scikit-learn >= 1.5.1
12- platform-api-python-client == 3.1.15
12+ platform-api-python-client == 3.2.4
You can’t perform that action at this time.
0 commit comments