Commit 2c0ad42
fix(api): report the pin a load would actually use
Eighth review pass:
- effective.pinned reported the saved value, but Router::load_model keeps
a live process's own pin instead, so the field contradicted both
reality and its documented meaning. It now reports the live pin when
the model is loaded.
- DELETE no longer resets a pin that was never saved; a pin a /load
request applied to the process is not part of the entry being erased.
- Validation errors no longer name the config.json section for an
endpoint whose keys are recipe option names.
- The user-model test cleans up its recipe_options.json entry, and the
round-trip test covers a second recipe so options with no global-config
counterpart are exercised.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 8d30389 commit 2c0ad42
2 files changed
Lines changed: 74 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2828 | 2828 | | |
2829 | 2829 | | |
2830 | 2830 | | |
| 2831 | + | |
2831 | 2832 | | |
2832 | | - | |
| 2833 | + | |
2833 | 2834 | | |
2834 | | - | |
2835 | | - | |
| 2835 | + | |
| 2836 | + | |
| 2837 | + | |
| 2838 | + | |
| 2839 | + | |
| 2840 | + | |
| 2841 | + | |
| 2842 | + | |
| 2843 | + | |
| 2844 | + | |
2836 | 2845 | | |
2837 | 2846 | | |
2838 | 2847 | | |
| |||
2888 | 2897 | | |
2889 | 2898 | | |
2890 | 2899 | | |
| 2900 | + | |
| 2901 | + | |
| 2902 | + | |
| 2903 | + | |
| 2904 | + | |
| 2905 | + | |
| 2906 | + | |
| 2907 | + | |
| 2908 | + | |
| 2909 | + | |
2891 | 2910 | | |
2892 | 2911 | | |
2893 | 2912 | | |
2894 | 2913 | | |
2895 | | - | |
| 2914 | + | |
2896 | 2915 | | |
2897 | 2916 | | |
2898 | 2917 | | |
| |||
2985 | 3004 | | |
2986 | 3005 | | |
2987 | 3006 | | |
2988 | | - | |
2989 | | - | |
2990 | | - | |
| 3007 | + | |
| 3008 | + | |
| 3009 | + | |
| 3010 | + | |
2991 | 3011 | | |
2992 | 3012 | | |
2993 | 3013 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1344 | 1344 | | |
1345 | 1345 | | |
1346 | 1346 | | |
| 1347 | + | |
| 1348 | + | |
| 1349 | + | |
| 1350 | + | |
| 1351 | + | |
| 1352 | + | |
| 1353 | + | |
| 1354 | + | |
| 1355 | + | |
| 1356 | + | |
| 1357 | + | |
| 1358 | + | |
| 1359 | + | |
| 1360 | + | |
| 1361 | + | |
| 1362 | + | |
| 1363 | + | |
| 1364 | + | |
| 1365 | + | |
| 1366 | + | |
| 1367 | + | |
| 1368 | + | |
| 1369 | + | |
| 1370 | + | |
1347 | 1371 | | |
1348 | 1372 | | |
1349 | 1373 | | |
| |||
1356 | 1380 | | |
1357 | 1381 | | |
1358 | 1382 | | |
1359 | | - | |
1360 | | - | |
1361 | | - | |
1362 | | - | |
1363 | | - | |
1364 | | - | |
1365 | | - | |
1366 | | - | |
1367 | | - | |
1368 | | - | |
1369 | | - | |
| 1383 | + | |
| 1384 | + | |
| 1385 | + | |
| 1386 | + | |
| 1387 | + | |
| 1388 | + | |
| 1389 | + | |
| 1390 | + | |
| 1391 | + | |
| 1392 | + | |
| 1393 | + | |
| 1394 | + | |
| 1395 | + | |
| 1396 | + | |
| 1397 | + | |
| 1398 | + | |
| 1399 | + | |
| 1400 | + | |
| 1401 | + | |
| 1402 | + | |
1370 | 1403 | | |
1371 | 1404 | | |
1372 | 1405 | | |
| |||
1436 | 1469 | | |
1437 | 1470 | | |
1438 | 1471 | | |
| 1472 | + | |
| 1473 | + | |
| 1474 | + | |
1439 | 1475 | | |
1440 | 1476 | | |
1441 | 1477 | | |
| |||
0 commit comments