mirror of
https://github.com/BerriAI/litellm.git
synced 2026-08-28 05:25:59 +00:00
* refactor(ui): migrate auto router and credential forms to react-hook-form and shadcn Moves four antd Form surfaces onto useZodForm plus the shared FormField and FieldGroup primitives: the routing group modal, the auto router edit modal, the add auto router tab, and the reuse credentials modal. Field labels that carried an antd tooltip= keep it as a hover Tooltip on a help icon, and hardcoded greys give way to semantic color tokens. Two Base UI combobox wrappers come out of the two auto router surfaces that shared the same antd controls: AccessGroupTagsCombobox replaces mode="tags" for model access groups, and ModelChoiceCombobox replaces the searchable single select for default and embedding models. Payload building for the routing group modal moves to routingGroupPayload.ts so the JSON args parsing and the four bound fields can be asserted directly instead of through a render. handle_add_auto_router_submit now takes a resetForm callback rather than an antd form instance, which drops one any from its signature. No change to what any of these forms submit. The reuse credentials payload keeps the same key set, with the stored credential values rendered read-only and merged back in at submit rather than copied into form state. * refactor(ui): type the auto router create payload boundary handleAddAutoRouterSubmit took its values as any, so a change to either side of the auto router create payload passed static checking. It now takes an exported AddAutoRouterValues, and add_auto_router_tab annotates the object it builds with that same type, so the producer and the consumer cannot drift. Its model_info is built in one shot rather than assigned into after the fact, which drops the second any and keeps the two conditional keys exactly as they were. Adds a routing group case that saves an untouched edit of a group whose stored arguments are null, which is the shape the proxy returns for an unset field. |
||
|---|---|---|
| .. | ||
| litellm-dashboard | ||
| Dockerfile | ||
| nginx.conf | ||