mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-16 23:41:43 +00:00
* test(ui): pin wire contracts for key, model and MCP server forms Add vitest cases that pin what the key edit, key create, model edit and MCP server edit forms put on the wire: an edited field reaches the request with its new value, a cleared field reaches it as an explicit null, and the dirty-only body is pinned as an expected failure until each form moves to pickDirty. Model edit also pins the cost-map-derived model_info fields as an expected failure. KeyEditView hands a cleared max_budget to KeyInfoView as an empty string and handleKeyUpdate maps it to null, so the null is pinned at the /key/update boundary in key_info_view.test.tsx and the KeyEditView case is an expected failure. buildEditServerPayload passes a cleared description through as an empty string, so that case is an expected failure too. * test(ui): split masked model_info pins and retarget the create tracker The model_info expected-failure case held three assertions, and it.fails stops at the first one, so a later revamp that fixed max_input_tokens while leaving mode leaking would still report an expected failure. Split it into one case per pinned field group so each flips on its own. The key create tracker asserted a body of only key_alias, which a create can never send: key_type, user_id, duration and metadata are always mounted. Retarget it at the real over-send, which is the Optional Settings section adding fifteen undefined-valued keys when the user opens it without filling anything in. |
||
|---|---|---|
| .. | ||
| litellm-dashboard | ||
| Dockerfile | ||
| nginx.conf | ||