From 2423eeca2e4529847b6524d7acef88acdf6c1ba1 Mon Sep 17 00:00:00 2001 From: Yaniv Israel Date: Sun, 9 Aug 2026 17:46:11 +0300 Subject: [PATCH] chore: converge to upstream (deepkeep feature merged as #33844) Drop the two remaining local deltas now that the DeepKeep guardrail is merged upstream and hardened there: - proxy_server.py normalize_callback string-filter (not taken upstream; belongs in a separate PR if still desired) - add_guardrail_form.tsx preserve={true} (redundant; antd v5 default) The structured_messages fix made via the PR UI is already present in upstream's version, so the branch is now identical to upstream/litellm_internal_staging. --- litellm/proxy/proxy_server.py | 8 ++------ .../guardrails/_components/add_guardrail_form.tsx | 1 - 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/litellm/proxy/proxy_server.py b/litellm/proxy/proxy_server.py index 3aec8bd521d..90daaaeae6b 100644 --- a/litellm/proxy/proxy_server.py +++ b/litellm/proxy/proxy_server.py @@ -15865,17 +15865,13 @@ async def get_config( _failure_callbacks = _litellm_settings.get("failure_callback", []) _success_and_failure_callbacks = _litellm_settings.get("callbacks", []) - # Normalize string callbacks to lists; filter out non-string entries - # (e.g. callback objects stored in litellm.callbacks at runtime) so - # that process_callback() always receives plain string names. + # Normalize string callbacks to lists def normalize_callback(callback): if isinstance(callback, str): return [callback] elif callback is None: return [] - elif isinstance(callback, list): - return [c for c in callback if isinstance(c, str)] - return [] + return callback _success_callbacks = normalize_callback(_success_callbacks) _failure_callbacks = normalize_callback(_failure_callbacks) diff --git a/ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/add_guardrail_form.tsx b/ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/add_guardrail_form.tsx index fe9fc78d66b..5f15eaceb28 100644 --- a/ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/add_guardrail_form.tsx +++ b/ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/add_guardrail_form.tsx @@ -1064,7 +1064,6 @@ const AddGuardrailForm: React.FC = ({ visible, onClose, a