Follow-up to removing piecewise_constant from the trainable scheduler allow-list: the DiffusionTrainingStartRequest.lr_scheduler Literal still advertised it, so a client that picked it straight from the schema passed request validation and then hit the 400 from normalized(). Remove it from the enum too so the API only offers schedulers the trainers can actually run, and add a test asserting the enum never advertises a scheduler outside the validation allow-list. |
||
|---|---|---|
| .. | ||
| .gitkeep | ||
| __init__.py | ||
| auth.py | ||
| data_recipe.py | ||
| datasets.py | ||
| export.py | ||
| inference.py | ||
| mcp_servers.py | ||
| models.py | ||
| providers.py | ||
| responses.py | ||
| training.py | ||
| users.py | ||