mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-16 09:22:22 +00:00
fix(proxy): add mutable-ok suppressions for exception detail dicts
This commit is contained in:
parent
4a3422f644
commit
f5f65d3d7b
1 changed files with 2 additions and 2 deletions
|
|
@ -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."
|
||||
},
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue