mirror of
https://github.com/tiennm99/litellm.git
synced 2026-07-08 15:14:04 +00:00
1755a281bd
`all_models = user_api_key_dict.models` was creating an alias, so `_get_models_from_access_groups` (which uses `.pop()`/`.extend()`) would mutate the cached object in-place. Now both `.models` and `.team_models` assignments create copies via `list()`. Added test to verify the input is not mutated. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>