From f5f65d3d7b7d0be44b26182329beed4d9c8a8126 Mon Sep 17 00:00:00 2001 From: amasen02 Date: Sun, 6 Sep 2026 10:25:58 +0530 Subject: [PATCH] fix(proxy): add mutable-ok suppressions for exception detail dicts --- litellm/proxy/management_endpoints/internal_user_endpoints.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litellm/proxy/management_endpoints/internal_user_endpoints.py b/litellm/proxy/management_endpoints/internal_user_endpoints.py index a1db6dfc6d8..8c1298cb02f 100644 --- a/litellm/proxy/management_endpoints/internal_user_endpoints.py +++ b/litellm/proxy/management_endpoints/internal_user_endpoints.py @@ -1501,7 +1501,7 @@ async def _update_single_user_helper( if isinstance(_caller_metadata, dict) and "blocked" in _caller_metadata: raise HTTPException( status_code=403, - detail={ + detail={ # mutable-ok: http exception detail "error": "Non-admin users cannot modify 'blocked' on their own record. Contact your proxy admin." }, ) @@ -1511,7 +1511,7 @@ async def _update_single_user_helper( if isinstance(_parsed_metadata, dict) and "blocked" in _parsed_metadata: raise HTTPException( status_code=403, - detail={ + detail={ # mutable-ok: http exception detail "error": "Non-admin users cannot modify 'blocked' on their own record. Contact your proxy admin." }, )