Update litellm/router.py

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
Krrish Dholakia 2026-04-20 14:58:39 -07:00 • committed by GitHub
parent 4a96a4dc31
commit 119f3de752
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -7028,6 +7028,7 @@ class Router:
# Reset per-strategy router registries so hot-reload doesn't leave
# stale routers pointing at the old model_list.
self.quality_routers = {}
self.complexity_routers = {}
self._invalidate_model_group_info_cache()
self._invalidate_access_groups_cache()
# we add api_base/api_key each model so load balancing between azure/gpt on api_base1 and api_base2 works