mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-10 03:28:53 +00:00
* feat(ui): dry-run an auto-router config against the backend before saving it Both auto-router forms built a payload and posted it, so anything the write gate refused came back as a raw 400 with the backend's message buried in it. They now POST the exact payload to /auto_router/validate_complexity_router_config first and surface its verdict inline. One dryRunRejection owns the gate, and it reads valid alone. The verdict's two fields arrive independently, so gating on the error message would let a rejection that carried none through to the write. A transport failure fails open as valid, leaving the write gate authoritative rather than blocking a save on a flaky network. Applies to every auto-router, built-in tiers included. * fix(ui): hold the auto-router create closed for the full dry-run and create sequence A second submit while the dry-run round-trip was pending started another create against the non-idempotent /model/new. The submit handler now refuses re-entry and the button disables for the whole sequence, matching the edit modal's loading guard. Also drops the explanatory comments this PR had added. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> --------- Co-authored-by: Claude Fable 5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| litellm-dashboard | ||
| Dockerfile | ||
| nginx.conf | ||