litellm/ui
yogeshwaran10 e966240562 fix(ui): prevent clearing content filter patterns when editing guardrail
The generic provider params update logic loop was unintentionaly overwriting `patterns` and `blocked_words` with empty values because these fields are managed by a separate component ContentFilterManager and not available in the main form values.

Changes:
- Excluded `patterns` and `blocked_words` from the generic provider params update loop in guardrail_info.tsx
- Ensured these fields are only added to the update payload when explicitly handled by the ContentFilterManager logic (detecting changes via `useRef`).
- Added a regression test in guardrail_info.test.tsx to verify that patterns are preserved when only the guardrail name is updated.

Fixes #19639
2026-01-24 02:56:22 +05:30
..
litellm-dashboard fix(ui): prevent clearing content filter patterns when editing guardrail 2026-01-24 02:56:22 +05:30