Commit d050f3f
authored
fix(cli): don't print unqualified Setup complete when no default model was set (#1354)
_run_auto_mode already detects when model discovery finds nothing and
prints a warning (No default model set), but the function still fell
through to an unconditional green "Setup complete!" a few lines later
if the platform health check passed. A user running `nemo setup --auto`
against a working key but the wrong inference endpoint (or any other
path that leaves the model registry empty) saw a clean success message
despite the platform being non-functional for inference.
Gate the final banner on whether a default model was actually set:
show the existing green message only when one was, otherwise show
"Setup complete with warnings" and point back at the warnings already
printed above.
The API key validation itself is intentionally fail-open on anything
short of a definitive 401/403 rejection (see _validate_api_key's
docstring); that's a deliberate design choice for tolerating ambiguous
or unreachable providers, and this change doesn't touch it. It only
fixes the final message not reflecting a degraded state the function
already knew about.
Applied identically to both copies of this function: the SDK's
nemo_platform.cli.commands.setup and the separately-maintained
nemo_platform_ext.cli.commands.setup (see packages/nemo_platform_ext/README.md).
Fixes NMP-14.
Signed-off-by: Yamini <ykagal@gmail.com>1 parent 137a5e5 commit d050f3f
4 files changed
Lines changed: 68 additions & 4 deletions
File tree
- packages/nemo_platform_ext
- src/nemo_platform_ext/cli/commands
- tests/cli/commands
- sdk/python/nemo-platform
- src/nemo_platform/cli/commands
- tests/vendored/nemo_platform_ext/cli/commands
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2356 | 2356 | | |
2357 | 2357 | | |
2358 | 2358 | | |
2359 | | - | |
| 2359 | + | |
| 2360 | + | |
| 2361 | + | |
| 2362 | + | |
2360 | 2363 | | |
2361 | 2364 | | |
2362 | | - | |
| 2365 | + | |
| 2366 | + | |
2363 | 2367 | | |
2364 | 2368 | | |
2365 | 2369 | | |
| |||
Lines changed: 28 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2279 | 2279 | | |
2280 | 2280 | | |
2281 | 2281 | | |
| 2282 | + | |
| 2283 | + | |
| 2284 | + | |
| 2285 | + | |
| 2286 | + | |
| 2287 | + | |
| 2288 | + | |
| 2289 | + | |
| 2290 | + | |
| 2291 | + | |
| 2292 | + | |
| 2293 | + | |
| 2294 | + | |
| 2295 | + | |
| 2296 | + | |
| 2297 | + | |
| 2298 | + | |
| 2299 | + | |
| 2300 | + | |
| 2301 | + | |
| 2302 | + | |
| 2303 | + | |
| 2304 | + | |
| 2305 | + | |
| 2306 | + | |
| 2307 | + | |
| 2308 | + | |
| 2309 | + | |
2282 | 2310 | | |
2283 | 2311 | | |
2284 | 2312 | | |
| |||
Lines changed: 6 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 28 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments