Commit 0cf4a0f
authored
fix(nemo-agents): strip workspace qualifier in eval preflight (#934)
* fix(nemo-agents): strip workspace qualifier in eval preflight
validate_llm_models rejected workspace-qualified default models (e.g.
default/nvidia-nemotron) because the VM route takes workspace as its own
path segment. Strip a leading {workspace}/ before retrieve, mirroring
IGW's OpenAI proxy removeprefix pattern.
Fixes ASTD-271
Signed-off-by: Nathan Walston <nwalston@nvidia.com>
* fix(nemo-agents): guard empty model name after workspace strip
A model_name of exactly {workspace}/ (e.g. default/) normalized to an
empty string, bypassing the pre-strip non-empty check and reaching the
SDK. Re-check non-empty after removeprefix and skip. Adds dedup-across-
normalized-forms and empty-after-strip regression tests (CodeRabbit).
Signed-off-by: Nathan Walston <nwalston@nvidia.com>
* refactor(nemo-agents): use parse_qualified_name for model workspace resolution
Replace the manual removeprefix strip with nemo_platform_plugin.entities.
parse_qualified_name, which splits any workspace qualifier and returns the
target (workspace, name). A qualified model now routes to its own workspace
(cross-workspace correct), not just the path workspace. Dedup and NotFound
tracking move to the resolved (workspace, name) pair. Trims verbose comments
per review.
Signed-off-by: Nathan Walston <nwalston@nvidia.com>
---------
Signed-off-by: Nathan Walston <nwalston@nvidia.com>1 parent c30bac1 commit 0cf4a0f
2 files changed
Lines changed: 106 additions & 26 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
317 | 318 | | |
318 | 319 | | |
319 | 320 | | |
320 | | - | |
321 | | - | |
322 | | - | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
323 | 326 | | |
324 | 327 | | |
325 | 328 | | |
| |||
349 | 352 | | |
350 | 353 | | |
351 | 354 | | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | | - | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
357 | 358 | | |
358 | 359 | | |
359 | 360 | | |
| |||
370 | 371 | | |
371 | 372 | | |
372 | 373 | | |
373 | | - | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
374 | 380 | | |
375 | 381 | | |
376 | 382 | | |
377 | 383 | | |
378 | | - | |
379 | | - | |
| 384 | + | |
| 385 | + | |
380 | 386 | | |
381 | | - | |
| 387 | + | |
382 | 388 | | |
383 | | - | |
| 389 | + | |
384 | 390 | | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
391 | 394 | | |
392 | | - | |
| 395 | + | |
393 | 396 | | |
394 | 397 | | |
395 | 398 | | |
396 | | - | |
397 | | - | |
| 399 | + | |
| 400 | + | |
398 | 401 | | |
399 | 402 | | |
400 | 403 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1473 | 1473 | | |
1474 | 1474 | | |
1475 | 1475 | | |
| 1476 | + | |
| 1477 | + | |
| 1478 | + | |
| 1479 | + | |
| 1480 | + | |
| 1481 | + | |
| 1482 | + | |
| 1483 | + | |
| 1484 | + | |
| 1485 | + | |
| 1486 | + | |
| 1487 | + | |
| 1488 | + | |
| 1489 | + | |
| 1490 | + | |
| 1491 | + | |
| 1492 | + | |
| 1493 | + | |
| 1494 | + | |
| 1495 | + | |
| 1496 | + | |
| 1497 | + | |
| 1498 | + | |
| 1499 | + | |
| 1500 | + | |
| 1501 | + | |
| 1502 | + | |
| 1503 | + | |
| 1504 | + | |
| 1505 | + | |
| 1506 | + | |
| 1507 | + | |
| 1508 | + | |
| 1509 | + | |
| 1510 | + | |
| 1511 | + | |
| 1512 | + | |
| 1513 | + | |
| 1514 | + | |
| 1515 | + | |
| 1516 | + | |
| 1517 | + | |
| 1518 | + | |
| 1519 | + | |
| 1520 | + | |
| 1521 | + | |
| 1522 | + | |
| 1523 | + | |
| 1524 | + | |
| 1525 | + | |
| 1526 | + | |
| 1527 | + | |
| 1528 | + | |
| 1529 | + | |
| 1530 | + | |
| 1531 | + | |
| 1532 | + | |
| 1533 | + | |
| 1534 | + | |
| 1535 | + | |
| 1536 | + | |
| 1537 | + | |
| 1538 | + | |
| 1539 | + | |
| 1540 | + | |
| 1541 | + | |
| 1542 | + | |
| 1543 | + | |
| 1544 | + | |
| 1545 | + | |
| 1546 | + | |
| 1547 | + | |
| 1548 | + | |
| 1549 | + | |
| 1550 | + | |
| 1551 | + | |
| 1552 | + | |
1476 | 1553 | | |
1477 | 1554 | | |
1478 | 1555 | | |
| |||
1504 | 1581 | | |
1505 | 1582 | | |
1506 | 1583 | | |
1507 | | - | |
| 1584 | + | |
1508 | 1585 | | |
1509 | 1586 | | |
1510 | 1587 | | |
| |||
1524 | 1601 | | |
1525 | 1602 | | |
1526 | 1603 | | |
1527 | | - | |
1528 | | - | |
| 1604 | + | |
| 1605 | + | |
1529 | 1606 | | |
1530 | 1607 | | |
1531 | 1608 | | |
| |||
1738 | 1815 | | |
1739 | 1816 | | |
1740 | 1817 | | |
1741 | | - | |
| 1818 | + | |
0 commit comments