From d1fdf64aa87e1148b65dcc672336abd7131ea713 Mon Sep 17 00:00:00 2001 From: jesus Date: Tue, 8 Sep 2026 23:24:42 +0000 Subject: [PATCH] style(auth): format session token grant refresh Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- litellm/proxy/auth/user_api_key_auth.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/litellm/proxy/auth/user_api_key_auth.py b/litellm/proxy/auth/user_api_key_auth.py index 53b382a0180..b7b7c8d7f1c 100644 --- a/litellm/proxy/auth/user_api_key_auth.py +++ b/litellm/proxy/auth/user_api_key_auth.py @@ -2373,7 +2373,10 @@ async def _refresh_session_token_team_grants( except HTTPException: return valid_token return valid_token.model_copy( - update={"team_models": list(team_obj.models), "team_alias": team_obj.team_alias} # mutable-ok: auth model requires a fresh list + update={ # mutable-ok: model_copy requires a mutable update mapping + "team_models": list(team_obj.models), # mutable-ok: auth model requires a fresh list + "team_alias": team_obj.team_alias, + } )